Qwen3.8 Flash API pricing and cost calculator

A Qwen3.8 Flash call with 30K input and 3K output costs $0.00591 uncached or $0.0039 with half the input cached. At 10,000 calls a month that's $39.

Qwen3.8 Flash is Alibaba's multimodal reasoning model, and it takes text, images and video as input. On the API it costs $0.15 per million input tokens and $0.47 per million output tokens. Input that hits the cache costs $0.016 per million, a discount of 89% against uncached input, so a shared system prompt or a reused document is worth putting first in the request. The API model is the production version of the open Qwen3.8-Flash-Next, with a 1M token context by default and official built-in tools. Because it reasons before it answers, the output side of a request can grow in ways a prompt estimate won't show, so this page prices complete workloads and not just one prompt.

By TechCompare · Updated

Qwen: Qwen3.8 Flash

Alibaba's own price

Input
$0.15
Output
$0.47
Cached
$0.016

per 1M tokens

Price checked 2026-11-07

Calculator

Cost Comparison

Based on 30,000 input tokens (50% cached), 3,000 output tokens, and 10,000 requests.Prices come live from OpenRouter at each maker's own price where it's listed. Temporary deals are left out.

How this is calculated

The calculator starts with 30,000 input tokens and 3,000 output tokens per call. With half the input read from cache, one call costs $0.0039: $0.00249 for input and $0.00141 for output. With no cache hits it costs $0.00591, and with all the input read from cache it costs $0.00189. At 10,000 calls a month the chart's starting total is $39. Now try a chat product. Suppose each turn sends 6,000 input tokens, most of them a system prompt and history that come from cache, and returns 700 output tokens. At 500,000 turns a month that costs $292.90. A document or video pass looks different. A job with 800,000 input tokens and a 4,000 token summary costs $0.12188 with no cache hits. How many tokens a video or an image takes depends on its length and resolution, so test your own files before you multiply anything by a thousand. Reasoning is the part that surprises people. A hard problem with 10,000 input tokens that produces 20,000 output tokens costs $0.0109. Output bills at $0.47 per million and uncached input at $0.15, so log both when a task runs long reasoning, since either side can drive the bill. The API allows up to 131,072 output tokens per call, and one call that uses all of it after a 10,000 token prompt costs $0.06310384. Set an output cap on unattended jobs and read the usage the API returns, so you know whether reasoning tokens are counted in the output total you pay for. The context window is 1,000,000 tokens on the API.

Verdict

Measure the output side first. For a reasoning model, the length of its answers and its thinking decides the bill more than the prompt does, so log real output tokens from a sample of your traffic and price that sample in the calculator. Then look at the cache. Put the instructions and shared context at the start of each request so repeated calls can reuse them. No batch prices are listed right now, so spread work out by capping output and trimming prompts instead. If your volume gets high enough that you'd consider running the open Qwen3.8-Flash-Next weights yourself, price the hardware with the VRAM calculator and put it next to the monthly API figure from this page. Read the Qwen community license before any commercial use, and test that the open weights behave like the API model on your task.

More API Standalones scenarios

Frequently asked questions

How much does Qwen3.8 Flash cost per million tokens?
Uncached input costs $0.15 per million tokens, cached input costs $0.016 per million, and output costs $0.47 per million. A request is the sum of its uncached input, its cached input and its output. A call with 30,000 input tokens and 3,000 output tokens costs $0.00591 with no cache hits. Alibaba lists its current rates on its Model Studio pricing page, which is the place to confirm them before you commit to a budget.
How much does caching save on Qwen3.8 Flash?
A cache hit is 89% cheaper than uncached input, and only the tokens that hit the cache get that rate. With 30,000 input tokens and 3,000 output tokens, reading half the input from cache moves a call from $0.00591 to $0.0039, and reading all of it brings the call to $0.00189. Output has no cache discount. In this example the output alone is $0.00141 per call, so once the input is mostly cached, output is the larger share of the bill.
What would a chat product on Qwen3.8 Flash cost per month?
Take 500,000 turns a month, each with 6,000 input tokens and 700 output tokens. If most of the input is read from cache, the month costs $292.90. With no cache hits at all, the same traffic costs $614.50. Use your own turn counts and average reply length instead of these, and remember that conversations tend to grow as they go on, which pushes the input average up over time.
What is the context window and output limit for Qwen3.8 Flash?
The API has a context window of 1,000,000 tokens and a maximum output of 131,072 tokens. A full 1,000,000 token prompt with no cache hits and a 4,000 token reply costs $0.15188 for one call. That's a useful number to know before you build anything that keeps appending to a long history. The open Qwen3.8-Flash-Next has a smaller native context than this, which matters if you plan to self host.
Does Qwen3.8 Flash have batch pricing?
Not in the current price data. Every call is billed at the standard rates, so the uncached example with 30,000 input tokens and 3,000 output tokens stays at $0.00591. Check Alibaba's pricing page, since offers like this can change.
Can I self host Qwen3.8 Flash?
The API model is the production version of the open Qwen3.8-Flash-Next, and Hugging Face has the Next weights under the Qwen community license (version 1.0). Read that license before commercial use. The VRAM calculator has a page for the open weights that shows how much memory they need at different context lengths. Whether hardware beats the API depends on how many tokens you really send, so price both for your own traffic and include the time it takes to run the servers.