LLM ReferenceLLM Reference
Replicate API

Stable LM 7B on Replicate API

StableLM · Stability AI

Serverless

Last refreshed 2026-04-15. Next refresh: weekly.

Why use Stable LM 7B on Replicate API?

Replicate API offers Stable LM 7B with pay-as-you-go pricing at $0.05/1M input tokens. Replicate is a cloud-based platform that enables users to run machine learning models easily and efficiently.

Compare Stable LM 7B across 2 providers to find the best fit for your use case
Input / 1M
$0.050
Output / 1M
$0.25
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install replicate
Auth
export REPLICATE_API_TOKEN=...
Call
import replicate
output = replicate.run(
    "stable-lm-7b",
    input={"prompt": "Hello"}
Model ID
stable-lm-7b

Request example

import replicate

# reads REPLICATE_API_TOKEN from env
# stable-lm-7b format: "owner/model-name" (latest version) or "owner/model-name:version-hash"
output = replicate.run(
    "stable-lm-7b",
    input={"prompt": "Hello"}
)
# Output is a list or generator depending on the model
print("".join(output))

Gotchas

  • Replicate uses "owner/model-name" format (e.g. "meta/meta-llama-3-8b-instruct") for the latest version, or "owner/model-name:version-sha" to pin to a specific version. The REST endpoint splits owner and model-name into the path: /v1/models/{owner}/{model-name}/predictions.
  • The examples expect REPLICATE_API_TOKEN; rename it only if your application config maps the new variable.

Compare Stable LM 7B Across Providers

ProviderInput (per 1M)Output (per 1M)
Stability Developer Platform
Replicate API$0.05$0.25

Pricing

TypePrice (per 1M)
Input tokens$0.05
Output tokens$0.25

Capabilities

No model capability flags are currently sourced.

About Stable LM 7B

StableLM 7B, a large language model by Stability AI, features a 7-billion parameter, decoder-only architecture designed to predict subsequent words based on context. Built on the robust NeoX transformer framework, it excels in managing long text sequences with its 4096-token context window. Pre-trained on a substantial dataset of about 1.5 trillion tokens, this model demonstrates strong capabilities in generating human-like text, performing tasks such as summarization and translation. However, it shares common limitations with other LLMs, including the potential for bias and generating inappropriate content. Although StableLM 7B is versatile, it has been succeeded by improved versions like StableLM-Base-Alpha-7B-v2, which address certain shortcomings of the original model.

FAQ

What does Stable LM 7B cost on Replicate API?

On Replicate API, Stable LM 7B costs $0.05 per 1M input tokens and $0.25 per 1M output tokens.

How does Replicate API compare to other Stable LM 7B providers?

Stable LM 7B is available from 2 providers. The cheapest input pricing is $0.05/1M tokens from Replicate API.

Who created Stable LM 7B?

Stable LM 7B was created by Stability AI as part of the StableLM model family.

Is Stable LM 7B open source?

Stable LM 7B's open source status is unknown in the seed data.

Get Started

Model Specs

Released2023-04-20
Parameters7B
ArchitectureDecoder Only

Related Models on Replicate API