Last refreshed 2026-04-18. Next refresh: weekly.
Why use Qwen-7B on Replicate API?
Replicate API offers Qwen-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.
Input / 1M
$0.050
Output / 1M
$0.25
Cache
Not sourced
Batch
Not sourced
Setup recipe
Python + curlInstall
pip install replicateAuth
export REPLICATE_API_TOKEN=...Call
import replicate
output = replicate.run(
"qwen-7b",
input={"prompt": "Hello"}Model ID
qwen-7bRequest example
import replicate
# reads REPLICATE_API_TOKEN from env
# qwen-7b format: "owner/model-name" (latest version) or "owner/model-name:version-hash"
output = replicate.run(
"qwen-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.
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.05 |
| Output tokens | $0.25 |
Capabilities
No model capability flags are currently sourced.
About Qwen-7B
Base dense model in first Qwen generation with strong instruction-tuned variants.
FAQ
What does Qwen-7B cost on Replicate API?
On Replicate API, Qwen-7B costs $0.05 per 1M input tokens and $0.25 per 1M output tokens.
What is the context window for Qwen-7B on Replicate API?
Qwen-7B supports a 8,000 token context window on Replicate API.
Who created Qwen-7B?
Qwen-7B was created by Alibaba as part of the Qwen model family.
Is Qwen-7B open source?
Qwen-7B is open source under Apache 2.0 according to the seed data.
Get Started
Model Specs
Released2023-08-03
Parameters7B
Context8K
ArchitectureDecoder Only