Alibaba Qwen
Qwen 3.8 Flash
High-throughput 1M-context multimodal model ideal for interactive studio workflows.
Published API pricing
See all tiers$0.16537 in / $0.51818 out / 1M
Input / 1M$0.16537
Output / 1M$0.51818
Cached / 1M$0.01764
API model ID
OpenAI-compatible API
qwen3.8-flash- Endpoint
POST /api/v1/chat/completions- Input
- Text · Image
- Output
- Text · JSON · Tool calls
- Rate
- $0.16537 in / $0.51818 out / 1M
- Context window
- 1,000,000 tokens
Sample prompt“Design a concise 3-shot storyboard for a 10-second architectural lighting reel, returning valid JSON.”
Best for
- Drop-in OpenAI SDK compatibility via POST /api/v1/chat/completions with a 1,000,000-token context window
- Strict JSON schema outputs and tool calling for reliable agent and pipeline automation
- Exact USD billing returned in usage.cost on every reply, with per-key spend caps enforced at submission
- API model ID
qwen3.8-flash- Model developer
- Alibaba Qwen
- Modality
- Language & Reasoning
- Input
- Text · Image
- Output
- Text · JSON · Tool calls
- Endpoints
POST /api/v1/chat/completionsGET /api/v1/modelsMCP runstage_chat- Infrastructure
- Direct GPU fleet
- Context window
- 1,000,000 tokens
- Max output
- 128,000 tokens (gateway cap)
- JSON schema
- Structured JSON schema
- Stop sequences
- Supported
Request parameters
modelstring · requiredExact Runstage model slug (qwen3.8-flash).
messagesarray · requiredOpenAI-compatible conversation array with role and content.
max_tokensinteger · optionalMaximum completion tokens supported by the Runstage gateway (up to 128,000).
temperaturenumber · optionalSampling temperature controlling determinism vs. creativity (0.0 – 2.0).
Additional parameters
top_presponse_formattoolstool_choicestop
Quickstart
Copy a working request using model ID qwen3.8-flash. Check a free pre-run quote first (final cost settles on completion), then run with your Runstage API key.
curl -X POST 'https://runstage.dev/api/v1/chat/completions' \
-H "Authorization: Bearer $RUNSTAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "qwen3.8-flash", "max_tokens": 512, "messages": [ { "role": "user", "content": "Design a concise 3-shot storyboard for a 10-second architectural lighting reel, returning valid JSON." } ] }'Pricing
| Billable unit and options | Rate (USD) |
|---|---|
| Input tokensPer 1,000,000 prompt tokens | $0.16537 |
| Output tokensPer 1,000,000 completion tokens (including reasoning) | $0.51818 |
| Cached input readPer 1,000,000 cached prompt tokens | $0.01764 |
| Typical studio turnExample 4,000 input + 500 output tokens | $0.00092 |
Billing notes
- Read live per-token pricing from GET /v1/models. Always set maxRetries: 0 on chat completions.
- Billed per prompt and completion token from your prepaid Runstage wallet with per-key USD spend caps.
Live catalog rates on Runstage. Prepaid USD credits with per-key spend caps.
Compare in full catalog