- Qwen
- Text
- 1M context
- Reasoning
Qwen3.8 Max API: pricing, capabilities and setup
Qwen3.8 Max API through llmbox: Alibaba's flagship for code, agents and long documents with a 1M-token context window, on one key with models from other vendors.
pay as you go · no subscription · key right after sign-up
How much Qwen3.8 Max costs
- Input$0.225per 1M tokens
$2.00−89% - Output$0.7875per 1M tokens
$6.00−87% - Cache read$0.225per 1M tokens
- Cache write$0.225per 1M tokens · same as input
Cost calculator
50 M tokens
75%
The rest is output
- Direct from the provider
$150- With llmbox
- $18
- Savings
- $132
What a typical task costs
| Task | Tokens (input / output) | With llmbox | Direct |
|---|---|---|---|
| Short chat | 2 000 / 500 | $0.00084 | $0.007 |
| Code review | 20 000 / 2 000 | $0.00608 | $0.052 |
| Document summary | 40 000 / 2 000 | $0.01058 | $0.092 |
| Agent session | 600 000 / 30 000 | $0.15863 | $1.38 |
Specs
- Context1Mtokens
- Max output131Ktokens
- Inputtext
Capabilities
- Tool calling
- JSON schema output
- Reasoning
- Streaming
- Prompt caching
Endpoints
/v1/chat/completions/v1/responses/v1/messages
Setup in three steps
- 01Get a key
Sign up and create an API key in the dashboard.
Get a key → - 02Set the base URL
In any OpenAI-compatible client, point the API address to:
- 03Pass the model id
Put this identifier in the model field:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://llmbox.cc/v1",
api_key=os.environ["LLMBOX_API_KEY"],
)
resp = client.chat.completions.create(
model="qwen/qwen3.8-max",
messages=[{"role": "user", "content": "Hi! Tell me about yourself in two sentences."}],
)
print(resp.choices[0].message.content)What Qwen3.8 Max is good for
Qwen3.8 Max is Alibaba's flagship model in the Qwen line. According to the Alibaba Cloud Model Studio documentation, it's an MoE model with 2.4 trillion parameters, built for programming, office work and professional fields — law, finance, design — as well as for autonomous planning of long tasks. The context window is 1,000,000 tokens and a single response can run up to 131,072 tokens. Through llmbox the model accepts and returns text.
What it's good for
Qwen3.8 Max is the choice for tasks where a mistake costs more than the tokens: complex code edits, agents with a multi-step plan, analysis of whole long documents. A million-token window fits a large contract, an exported email thread or several modules of a repository in a single request — in many cases without splitting it into chunks.
What sets it apart from the previous flagship, Qwen3.7 Max, is the new generation and the caching available on llmbox. For a flagship this matters: an agent on Max often sends a long instruction and the shared task context with every request, and that repeated prefix can hit the cache. The cache-read rate is listed on this page.
When to pick another model
- High-volume uniform requests — classification, support replies, labeling: the per-token rate matters more there, so Qwen3.8 Flash is a better fit.
- Analyzing screenshots, photos and scans — through llmbox, Qwen3.7 Plus accepts images as input.
- Image generation — the line has Qwen-Image-3.0 for that.
How to connect
The model is available in two formats: Chat Completions for Cursor, OpenCode and the OpenAI SDK, and the Responses API for Codex CLI. You don't need a separate Alibaba Cloud account — an llmbox key, the model ID qwen/qwen3.8-max and the base URL from the Quickstart are enough. Ready-made tool settings are in Integrations. All Qwen models are collected on the Qwen API page.
Pricing and billing
Rates per 1M input tokens, output tokens and cache reads are listed on this page. Reasoning tokens count as output and are billed at the output rate, so test simple agent steps on Qwen3.8 Flash. You pay from a prepaid balance as you go, with no subscription. Every request with its tokens and cost appears in the request log in your dashboard, and totals by day and by model are in the Usage section.
Typical tasks
- Coding agents in Codex CLI and Cursor
- Long multi-step tasks with planning
- Reviewing contracts, reports and other long documents
- Analysis and drafts for legal and financial work
Qwen3.8 Max or Qwen3.7 Max?
| Model | Input · 1M | Output · 1M |
|---|---|---|
| Qwen3.8 Max | $0.225 | $0.7875 |
| Qwen3.7 Max | $0.19 | $0.57 |
Qwen3.8 Max vs neighbours
| Model | Input · 1M | Output · 1M |
|---|---|---|
| Qwen3.8 Max | $0.225 | $0.7875 |
| Qwen3.8 Flash | $0.072 | $0.2115 |
| Qwen3.7 Plus | $0.11 | $0.44 |
| Qwen3.7 Max | $0.19 | $0.57 |
| Qwen3.8 Omni Flash | $0.216 | $0.666 |
| Gemini 3.7 Flash Google | $0.225 | $1.125 |
Qwen3.8 Max is also compared with
- GLM-5.3
GLM-5.3 is the open-weight flagship model from Z.ai (Zhipu): a 1M-token context window and responses up to 128K tokens, for complex software development, agents and finding vulnerabilities in code.
- Kimi K3
Kimi K3 is Moonshot AI's open-weight model with 2.8T parameters: a 1M-token context window and text, image and video input, for long coding tasks, knowledge work and reasoning.
- Kimi K3.1 Pro
Kimi K3.1 Pro is Moonshot AI's strongest open-weight model in the 3T-parameter class: a 1M-token context window and text, image and video input, for agents and code.
Other Qwen models
Articles about the model

How much does 1M tokens cost: GPT, Gemini, DeepSeek, Qwen
Current per-million-token rates for GPT, Gemini, DeepSeek and Qwen models: what input, output, cache and reasoning mean, and how to estimate a project's usage.

How to get a Qwen API key
Two ways to get a Qwen API key: directly in Alibaba Cloud Model Studio, or with one llmbox key for all models, including a ready-to-run request example.

llmbox: one key for GPT, Gemini, DeepSeek, Qwen and other models
llmbox launched in August 2026: one key and one API address for models from different vendors — text, images, video and audio. You pay from a balance as you go.
FAQ
How is Qwen3.8 Max different from Qwen3.7 Max?
Both models are the flagships of their generations, with the same 1M-token context window and a 131,072-token response cap. Qwen3.8 Max is the newer model, which Alibaba describes as a 2.4-trillion-parameter flagship for code, office and professional work; on llmbox it also has context caching.
Do I need a Qwen or Alibaba Cloud API key?
No. You don't need an Alibaba Cloud account or a DashScope key: create an llmbox key in the API keys section of your dashboard. The same key works with every other model in the catalog.
What model name do I pass to the API?
Pass qwen/qwen3.8-max. The model is available in the Chat Completions and Responses formats, so it works with the OpenAI SDK, Cursor, OpenCode and Codex CLI. Setup steps are in the Integrations section of the docs.
When is Qwen3.8 Flash the better choice?
When there are many requests and the tasks are routine: labeling, short answers, auxiliary agent steps. As Alibaba describes it, Flash is built for high load and Max for complex tasks; make the final call based on quality and spend on your own data.
How is Qwen3.8 Max billed?
Per input and output token, from a prepaid balance as you go, with no subscription. The rates, including cache reads, are listed on this page. A repeated request prefix, such as a long agent instruction, can hit the cache.