Qwen (Alibaba) Models
Access the Qwen 3.x family through AI Gateway — Qwen3.8-Max, Qwen3.8-Flash and more via one OpenAI-compatible API with per-token credit billing.
Alibaba's Qwen family covers a wide capability/speed range, with strong multilingual performance. The tiers below are available through AI Gateway's single OpenAI-compatible endpoint.
Available Models
| Model | Context | Best For |
|---|---|---|
qwen3.8-max | 1M | Flagship quality |
qwen3.8-flash | 128K | Fast everyday calls |
qwen3.7-max | 1M | Complex reasoning tasks |
qwen3.7-plus | 1M | Balanced production default |
qwen3.7-flash | 128K | High-volume, low-latency |
qwen3.6-plus / qwen3.6-flash | 1M / 128K | Previous-generation value |
qwen3.5-plus | 1M | Stable long-context work |
Live per-model credit pricing is on the Models page.
Quick Start
Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://your-domain.com/api/ai/v1"
)
response = client.chat.completions.create(
model="qwen3.8-max",
messages=[{"role": "user", "content": "翻译这段产品文档为英文。"}]
)
print(response.choices[0].message.content)
Replace
your-domain.comwith your AI Gateway site domain. Get your API key from the dashboard after sign-up.
Why through AI Gateway
- One API key across Qwen, GPT, Claude, Gemini, DeepSeek…
- OpenAI-compatible — existing SDKs work unchanged
- Credits never expire — pay per token
Related Pages
| Model | Context | Type |
|---|---|---|
qwen3.5-plus | 1M | chat |
qwen3.6-flash | 131K | chat |
qwen3.6-plus | 1M | chat |
qwen3.7-flash | 131K | chat |
qwen3.7-max | 1M | chat |
qwen3.7-plus | 1M | chat |
qwen3.8-flash | 131K | chat |
qwen3.8-max | 1M | chat |
qwen3.8-max-0902 | 131K | chat |
| Model | Context | Type |
|---|---|---|
qwen3.5-plus | 1M | chat |
qwen3.6-flash | 131K | chat |
qwen3.6-plus | 1M | chat |
qwen3.7-flash | 131K | chat |
qwen3.7-max | 1M | chat |
qwen3.7-plus | 1M | chat |
qwen3.8-flash | 131K | chat |
qwen3.8-max | 1M | chat |
qwen3.8-max-0902 | 131K | chat |
| Model | Context | Type |
|---|---|---|
qwen3.5-plus | 1M | chat |
qwen3.6-flash | 131K | chat |
qwen3.6-plus | 1M | chat |
qwen3.7-flash | 131K | chat |
qwen3.7-max | 1M | chat |
qwen3.7-plus | 1M | chat |
qwen3.8-flash | 131K | chat |
qwen3.8-max | 1M | chat |
qwen3.8-max-0902 | 131K | chat |
| Model | Context | Type |
|---|---|---|
qwen3.5-plus | 1M | chat |
qwen3.6-flash | 131K | chat |
qwen3.6-plus | 1M | chat |
qwen3.7-flash | 131K | chat |
qwen3.7-max | 1M | chat |
qwen3.7-plus | 1M | chat |
qwen3.8-flash | 131K | chat |
qwen3.8-max | 1M | chat |
qwen3.8-max-0902 | 131K | chat |
| Model | Context | Type |
|---|---|---|
qwen3.5-plus | 1M | chat |
qwen3.6-flash | 131K | chat |
qwen3.6-plus | 1M | chat |
qwen3.7-flash | 131K | chat |
qwen3.7-max | 1M | chat |
qwen3.7-plus | 1M | chat |
qwen3.8-flash | 131K | chat |
qwen3.8-max | 1M | chat |
qwen3.8-max-0902 | 131K | chat |
Why through AI Gateway
- One unified interface: call every provider through a single OpenAI-compatible base URL
- One key: no per-vendor accounts; credits are shared and never expire
- Per-token billing: cache hits billed at steep discounts
- Flexible switching: change one string to move between models or vendors
About this data
Specs and prices come from the platform live catalog; performance figures from vendor or third-party publications. Updated 2026-10-13.
| Model | Context | Type |
|---|---|---|
qwen3.5-plus | 1M | chat |
qwen3.6-flash | 131K | chat |
qwen3.6-plus | 1M | chat |
qwen3.7-flash | 131K | chat |
qwen3.7-max | 1M | chat |
qwen3.7-plus | 1M | chat |
qwen3.8-flash | 131K | chat |
qwen3.8-max | 1M | chat |
qwen3.8-max-0902 | 131K | chat |
Why through AI Gateway
- One unified interface: call every provider through a single OpenAI-compatible base URL
- One key: no per-vendor accounts; credits are shared and never expire
- Per-token billing: cache hits billed at steep discounts
- Flexible switching: change one string to move between models or vendors
Capabilities
9 shipping models, context windows from 131K to 1M tokens; tiers: light ×3, flagship ×2, balanced ×2, previous generation ×2.
Pricing & billing
Per-token credit billing; cache hits at steep discounts. Live rates on the Models pricing page — numbers intentionally not fixed here.
FAQ
How large is the context window of Qwen (Alibaba)?
1,000,000 Token (1M)
How is it billed?
Per-token credit billing with cache-hit discounts. Live rates on the Models page.
Do I need a provider account?
No. One AI Gateway API key covers this model and every other model on the site.
About this data
Specs and prices come from the platform live catalog; performance figures from vendor or third-party publications. Updated 2026-10-13.
All Models
Each model has its own page with specs, official reference pricing, credit prices and code examples.
qwen3-235b-a22b-2507qwen3-vl-30b-a3b-instructqwen3-vl-235b-a22b-instructqwen3-next-80b-a3b-thinkingqwen3-next-80b-a3b-instructqwen3-coder-nextqwen3-coder-flashqwen3-coder-30b-a3b-instructqwen3-coderqwen3-235b-a22b-thinking-2507qwen3-vl-30b-a3b-thinkingqwen2.5-vl-72b-instructqwen-plusqwen3.8-2.4t-a95bqwen3.8-omni-flashqwen3.8-max-primeqwen3.8-27bqwen3.6-35b-a3bqwen3.6-27bqwen3.5-plus-02-15qwen3.5-flash-02-23qwen3.5-397b-a17bqwen3.5-35b-a3bqwen3.5-122b-a10bqwen3-vl-8b-instructqwen3.8-maxqwen3.7-plusqwen3.7-maxqwen3.7-flashqwen3.6-flashqwen3.5-plusqwen3.8-max-0902qwen3.8-flashqwen3.6-plusReady to build with Qwen?
One API Key, every model. Transparent pay-as-you-go pricing with credits that never expire.
Create free account