Qwen 3.8 Max API
Alibaba's largest Qwen model, with a million-token context window. Served through RouterHub at $0.20 input / $0.60 output per million tokens (prices as of ).
Qwen 3.8 Max pricing
−90% vs the official API price of $2.00 input / $6.00 output per 1M tokens (source, checked 2026-10-20).
- Input
- $0.20
- Cached input
- $0.025
- Cache write
- $0.25
- Output
- $0.60
- Typical message
- ≈ 0.050¢
USD per 1 million tokens. A typical message is about 1,000 input and 500 output tokens. Cached input uses the cache-read rate when the provider reports a cache hit. Billed from your prepaid balance.
Compare Qwen 3.8 Max variants
| Model / exact API ID | Input / 1M | Output / 1M | Actions |
|---|---|---|---|
qwen3.8-max |
Chat | ||
qwen3.8-max-uncensored |
Chat |
API compatibility and context
- Exact model ID
qwen3.8-max- Provider
- Qwen
- Variant
- Standard
- Supported API
- OpenAI-compatible Chat Completions API (
/v1/chat/completions) - Availability
- Available
- Context window
- 1,000,000 tokens
- Maximum input
- 983,000 tokens
- Maximum output
- 131,000 tokens
Use Qwen 3.8 Max through the API
Create a RouterHub account, add prepaid credits and create an API key. Set ROUTERHUB_API_KEY locally, then send a first request with the exact model ID.
curl --connect-timeout 30 --max-time 600 https://routerhub.si/v1/chat/completions \
-H "Authorization: Bearer $ROUTERHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"qwen3.8-max","messages":[{"role":"user","content":"Write a short noir scene set in a lighthouse."}],"max_tokens":256}'Python: install openai with pip. The example requests 256 output tokens and disables automatic retries, so check Usage before resending a paid request.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["ROUTERHUB_API_KEY"],
base_url="https://routerhub.si/v1",
timeout=600.0,
max_retries=0,
)
response = client.chat.completions.create(
model="qwen3.8-max",
messages=[{"role": "user", "content": "Write a short noir scene set in a lighthouse."}],
max_tokens=256,
)
print(response.choices[0].message.content)Coding tools that work with Qwen 3.8 Max
Common questions
What is Qwen 3.8 Max?
Qwen 3.8 Max is a Qwen language model served through RouterHub using the OpenAI-compatible Chat Completions API. Its exact API model ID is qwen3.8-max.
How much does Qwen 3.8 Max cost?
RouterHub charges $0.20 input, $0.025 cached input and $0.60 output per million tokens (prices as of 2026-11-08). A typical chat message of about 1,000 input and 500 output tokens costs about 0.050¢. Usage is billed against your prepaid balance.
What is the Qwen 3.8 Max context window?
Context window: 1,000,000 tokens. Maximum input: 983,000 tokens. Maximum output: 131,000 tokens.
Which API does Qwen 3.8 Max support?
Use the OpenAI-compatible Chat Completions API at https://routerhub.si/v1/chat/completions with the exact model ID qwen3.8-max and your RouterHub API key (Authorization: Bearer header).
Which coding tools work with Qwen 3.8 Max?
OpenCode, VS Code + Continue, VS Code + Cline, Hermes Agent. Each setup guide lists only compatible model IDs.
Can I try Qwen 3.8 Max for free?
Qwen 3.8 Max needs a free RouterHub account with prepaid credits. New accounts get $5 free on their first top-up of $20 or more.