Qwen API
Alibaba's Qwen 3.8 Max and Qwen 3.5 397B through one key, billed per token from prepaid credit. No Alibaba Cloud account required.
Qwen (Alibaba) models and pricing
| Model | Context | Input / 1M | Output / 1M | Cached / 1M |
|---|---|---|---|---|
Qwen 3.8 Max qwen/qwen3.8-max |
1M | $2.60 | $7.80 | $0.26 |
Qwen 3.5 397B A17B qwen/qwen3.5-397b-a17b |
131K | $0.715 | $4.55 | $0.144 |
Qwen3 Embedding 0.6B qwen/qwen3-embedding-0.6b · embeddings |
— | $0.052 | — | — |
Qwen3 TTS (voice design) qwen/qwen3-tts · speech |
— | $0.026 / 1K characters | ||
USD per million tokens. Billed from prepaid credit; every response reports its exact cost.
Quick start
curl https://solorouter.ai/api/v1/chat/completions \ -H "Authorization: Bearer $SOLO_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "qwen/qwen3.8-max", "messages": [{"role": "user", "content": "Hello"}]}'
Works with LangChain, Cline, Continue, Open WebUI and any tool that lets you set a base URL: use https://solorouter.ai/api/v1. See the docs.
How to get your Qwen API key
- Sign in with Google. New accounts get free credit (one per person).
- Copy the API key created for you on the Keys page, or create one with its own spending limit.
- Send requests to
https://solorouter.ai/api/v1/chat/completionswith"model": "qwen/qwen3.8-max". Top up from $5 when you need more.
Why use Qwen (Alibaba) through Solo Router
- One key for every model: switch between Qwen (Alibaba), DeepSeek, GLM, Kimi, Qwen and more by changing the model string.
- Prepaid, no surprises: each request reserves its cost first, every response reports its exact price, and keys can have spending limits.
- Works with your tools: LangChain, Cline, Continue, Open WebUI and anything that accepts a base URL.
- Private: we do not store your prompts or responses.
Related guides
- The cheapest LLM APIs right now
- Free LLM API options (and their limits)
- Solo Router as an OpenRouter alternative
Frequently asked questions
How do I use the Qwen API?
Sign in, create a key and call qwen/qwen3.8-max or qwen/qwen3.5-397b-a17b with the standard chat-completions request.
How much does the Qwen API cost?
Per-token prices are in the table above. Qwen 3.5 397B is the budget option; Qwen 3.8 Max is the flagship.
Do I need an Alibaba Cloud account?
No. Your Solo Router key works for every Qwen model, billed from one prepaid balance.
What context length does Qwen support?
Qwen 3.8 Max supports up to 1M tokens and Qwen 3.5 397B up to 131K tokens on Solo Router.
Get your API key in 30 seconds
Sign in with Google. New accounts get free credit (one per person) to try the models.
Get started freeAlso on Solo Router: DeepSeek API · Kimi API · GLM API · MiniMax API · Llama API · Gemma API · all models