Qwen3.8-Max Self-Host vs API Break-Even
A worksheet for production teams to compare GPU spend, cache hits, and hosted token prices before renting a cluster.

You are choosing between renting the Qwen3.8-Max API and standing up a GPU cluster. Qwen3.8-Max has 2.4 trillion total parameters and activates 95 billion parameters per query. Self-hosting trades fixed cluster spend for per-token control: multiply tokens per second by seconds per month, divide monthly GPU spend by those tokens, and compare that per-token cost with the hosted price after cache hits. Self-hosting is worth it only when that per-token cost is below the blended API cost per token.
Keep the worksheet in one sheet:
- Total weights: record total parameters and active parameters per query.
- Storage and VRAM: divide compressed weight size by usable memory per node, then add KV cache, batching, and replica headroom.
- Node count: map traffic peaks to nodes, including a spare for maintenance and failure.
- Per-token GPU cost: divide monthly GPU spend by monthly tokens.
- Break-even: compare C/T with the blended API price, including input, output, and cache hits.
Start with the model spec, not the cluster
The open weights of Qwen3.8-2.4T-A95B were released around August 13. The active count drives compute; the total count drives storage and memory pressure. Quantization changes quality and speed, so benchmark the compressed build against your acceptance tests before you trust the memory math. Put the model card, context limits, and test results in the same sheet.
Size memory before you size nodes
Unsloth AI compressed the original 4.9 TB Qwen3.8-2.4T-A95B model to 397 GB using dynamic 1-bit layered selective quantization, a 91% storage reduction. With Unsloth-Desktop, the compressed model can run locally when a machine has more than 410 GB of combined RAM and VRAM. Use that floor as the minimum for compressed weights, then add headroom for KV cache, batch size, context length, and replicas, because a cluster that fits the weights can still miss latency targets.
Load test with your real prompt distribution, then record tokens per second, tail latency, and error rate. Keep a spare node for maintenance and failure. Map traffic peaks to node count in the capacity table, not just show that the weights fit.
Price the hosted path with cache
The Qwen3.8-Max API is priced at 12 yuan per million input tokens and 36 yuan per million output tokens in mainland China, with 1.5 yuan per million implicit cache hits; overseas, it is 2 USD per million input tokens and 6 USD per million output tokens, with 0.25 USD per million implicit cache hits. Repeating prefixes turn input tokens into cache hits at a much lower rate. Blended API cost equals non-cached input times input price plus cached input times cache price plus output times output price.
Let C be monthly GPU spend and T be monthly tokens. Include every recurring cost in C: compute, storage, network, monitoring, on-call, and upgrades. Exclude initial setup from the break-even, but keep it in the business case. Add dedicated-team labor to the monthly cost if the cluster needs one. Model throttled-request penalties for rate-limited APIs.
Choose self-hosting when C divided by T is below the blended API cost per token. Break-even tokens equal C divided by the blended API price, adjusted for input, output, and cache mix. Use that number as the minimum sustained volume. Show a monthly cost curve for several traffic scenarios in the sheet, and re-run the calculation when traffic mix, cache behavior, or GPU pricing changes.
Subtract the features the API hides
The open Qwen3.8-2.4T-A95B has a 262,144-token native context and can be extended to 1.01 million tokens. The official Qwen3.8-Max release, dated August 3, adds visual input, 1-million-token native context handling, and official built-in tools. When your product needs those capabilities, the self-host path includes engineering work that the API hides.
List the capabilities your product depends on, then mark each as hosted, self-hosted, or missing. Assign an owner and a deadline to every missing item. A missing feature can erase the savings if it blocks launch. Review the delta monthly, because hosted services change. Show owners, effort estimates, and a launch date for each missing capability in the feature sheet.