Qwen3.8 Max API pricing and setup
Qwen3.8 Max (qwen3.8-max) is a Alibaba model. It is available through the relay.fast API with one relay.fast key and pay-as-you-go billing.
Prices checked from the live catalog. "From" is the lowest price among the relay.fast sources that currently serve the model. The price you pay depends on the source your request uses and can change on any day. The pricing page always shows current values.
| Official input price | $2 per 1M tokens |
|---|---|
| Official output price | $6 per 1M tokens |
| relay.fast input from | $0.0667 per 1M tokens |
| relay.fast output from | $0.2 per 1M tokens |
| Cache read from | $0.00833 per 1M tokens |
| Lower than the official price by | up to 96% |
| Context window | 1M tokens |
| Endpoints | /v1/chat/completions |
Example request
Keep the key in the RELAY_FAST_API_KEY environment variable.
curl https://relay.fast/v1/chat/completions \
-H "Authorization: Bearer $RELAY_FAST_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"qwen3.8-max","messages":[{"role":"user","content":"Hello"}]}'Use Qwen3.8 Max in coding tools
Setup guides: Claude Code, Codex, Cursor, Cline, Kilo Code, OpenCode, Aider. The API docs have one-command installers.
Frequently asked questions
How much does the Qwen3.8 Max API cost?
On 2026-11-05, relay.fast charges from $0.0667 per 1M input tokens and $0.2 per 1M output tokens for Qwen3.8 Max, against the official $2 and $6. The price depends on the source your request uses and can change; https://relay.fast/pricing/qwen3.8-max shows the current value.
What is the context window of Qwen3.8 Max?
Qwen3.8 Max accepts up to 1M tokens of context in the relay.fast catalog. Output limits depend on the model and client settings.
Which API endpoint does Qwen3.8 Max use?
Call /v1/chat/completions with a relay.fast API key. OpenAI-compatible SDKs use the base URL https://relay.fast/v1.
Do I need a Alibaba account to use Qwen3.8 Max?
No. You use a relay.fast account and API key. relay.fast is an independent API gateway and is not affiliated with Alibaba.