- Context window
- 1,000,000
- You save
- 90%
About Qwen 3.8 Flash API pricing
Qwen 3.8 Flash is available through the zrouter gateway behind one API key, alongside every other model in the catalog. Qwen 3.8 Flash API pricing is pay-as-you-go: $0.015 per 1M input tokens and $0.047 per 1M output tokens — no subscription, no monthly minimum, and the same OpenAI-compatible endpoint your tools already use.
Against the official API — $0.15 input and $0.47 output per 1M tokens — zrouter runs about 90% cheaper, so sustained workloads cost a fraction of list price. Every request is metered per token and settled in real time, and live rates stay visible on the pricing page. The model provides a 1,000,000 token context window, so long documents, large codebases and extended agent sessions fit in a single request.
For predictable spend, prepaid Token Plans for Qwen 3.8 Flash start at $1 and are consumed first; PAYG covers anything beyond the plan. With chat completions, responses, messages, streaming support, Qwen 3.8 Flash slots into existing OpenAI-compatible and Anthropic-compatible tooling after a one-line base-URL change — a practical fit for chat products, coding agents and batch jobs that need frontier quality without official-API prices.
Price comparison
PAYG rates · per 1M tokens
input
90%- $0.15
- Official price
- $0.015
- zrouter price
output
90%- $0.47
- Official price
- $0.047
- zrouter price
Cache read $0.0097Cache write $0.015
Token Plan tiers
Token Plans are tied to one model. Your plan balance is used first, then PAYG covers the remainder.
94,300,000 tokens
188,600,000 tokens
471,500,000 tokens
943,000,000 tokens
Capabilities
Qwen 3.8 Flash price per 1M tokens: zrouter vs official
Pay as you go, billed per token used. The official column is the list price of the model creator; the zrouter column is what you pay.
| Token type | Official | zrouter | You save |
|---|---|---|---|
| Input | $0.15 | $0.015 | 90% |
| Output | $0.47 | $0.047 | 90% |
Prices are in USD per 1,000,000 tokens. When the provider serves part of your prompt from its cache, that part is billed at a discounted read rate; the usage page shows the exact split for every request.
Context and output limits
Qwen 3.8 Flash accepts up to 1,000,000 tokens of context in one request (prompt plus answer). Set max_tokens to cap the length of the answer, and stream the response to see the first tokens sooner.
Call Qwen 3.8 Flash with your zrouter key
One zr_ key works on every endpoint. Replace the key and keep the model name qwen3.8-flash.
curl (OpenAI-compatible)
curl https://api.zrouter.dev/v1/chat/completions \
-H "Authorization: Bearer $ZROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "qwen3.8-flash", "messages": [{"role": "user", "content": "Hello"}]}'Python (openai SDK)
from openai import OpenAI
client = OpenAI(base_url="https://api.zrouter.dev/v1", api_key="zr_...")
reply = client.chat.completions.create(
model="qwen3.8-flash",
messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)Anthropic SDK / Claude Code
export ANTHROPIC_BASE_URL="https://api.zrouter.dev"
export ANTHROPIC_AUTH_TOKEN="zr_..."
export ANTHROPIC_MODEL="qwen3.8-flash"
claudeGet started with Qwen 3.8 Flash in three steps
- Sign in with Google and create an API key. The key starts with zr_ and is shown once, so store it somewhere safe.
- Top up a pay-as-you-go balance with QRIS, USDT or USDC, or buy a Token Plan for this model. No credit card is required.
- Send your first request to qwen3.8-flash with the curl or Python example above. Usage and cost show up in your dashboard right away.
How billing works for Qwen 3.8 Flash
Every request is billed by the tokens it actually used, as reported by the model provider: input tokens and output tokens are priced separately, which is why the table above has one row for each.
If you hold a Token Plan for this model, it is spent first. When it runs out, the request falls back to your pay-as-you-go balance. If neither has funds, the gateway answers 402 instead of running the request.
The usage page lists each request with its token counts and cost, and you can export it as CSV or JSON. Your balance does not expire and is not reset on a schedule.
Why call Qwen 3.8 Flash through zrouter
- One key and one balance for every model, instead of a separate account per provider.
- OpenAI-compatible and Anthropic-compatible endpoints, so existing SDKs and coding tools keep working with a different base URL.
- Streaming responses, per-request usage, and a public status page so you can see how the service is doing.
Qwen 3.8 Flash API: frequently asked questions
- How much does the Qwen 3.8 Flash API cost on zrouter?
- Pay-as-you-go is $0.015 per 1M input tokens and $0.047 per 1M output tokens, 90% below the official price. You only pay for tokens you use, and the balance does not expire.
- How do I call Qwen 3.8 Flash with the OpenAI SDK?
- Create a zrouter key, set the base URL to https://api.zrouter.dev/v1 and use the model name qwen3.8-flash. The request and response shapes are the same as the OpenAI Chat Completions API.
- Can I use Qwen 3.8 Flash with Claude Code or the Anthropic SDK?
- Yes. The gateway also speaks the Anthropic messages protocol. Point ANTHROPIC_BASE_URL at https://api.zrouter.dev, use your zr_ key as the auth token and set the model to qwen3.8-flash.
- Is there a Token Plan for Qwen 3.8 Flash?
- Yes. Token Plans start at $1 and are used before your pay-as-you-go balance. The balance never expires and there is no 5-hour window.
- How do I pay without a credit card?
- Top up with QRIS, USDT or USDC. No credit card is needed, and one balance works for every model.
Related models
Other models you can call with the same key: