Qwen 4 Max & 3.8 Flash API Pricing, Keys & OpenAI SDK
Compare Qwen 4 Max, Qwen 3.8 Max & 3.8 Flash USD token and cache rates. Call via OpenAI SDK with $1–$2 free test credits and USDT, Binance Pay or Lava top-ups.
New accounts receive a random $1–$2 welcome bonus (1,000–2,000 credits) to test requests
Test live models side-by-side before signing up
Verify real model outputs, streaming TTFT, and exact USD token cost before creating an account. Pick 1 or 2 models to race live.
Measured latency, strict-JSON pass rate & live uptime
Published directly from Modelseed production relay telemetry and scheduled streaming JSON benchmark probes — real measured numbers, never synthetic estimates.
| Model ID | Measured TTFT | Throughput | Strict JSON | 30d Success | Measured 1-req cost |
|---|---|---|---|---|---|
qwen3.8-flash | 1.85s | 63.5 tok/s | PASS | Probe OK | $0.00010 |
qwen4-max | 2.34s | 39.1 tok/s | Media / Relay | — | — |
deepseek-v4-1-flash | 1.99s | 39.8 tok/s | PASS | 99.94% (6404) | $0.00003 |
Qwen API cost calculator
Choose a version and pricing tier. Enter total project input and output volumes; this estimate uses the published uncached rates.
Context tiers apply per request, not to the monthly token total. For DeepSeek, select the period. See the full table for cache and other components.
qwen3.8-flash$0.3518351.768 credits1 × $0.1908 + 0.25 × $0.6439
Modelseed base rates. Actual usage determines charges. Payment fees and plan bonuses are excluded from this estimate.
All components and rates ↓Choosing a version
Qwen is a language model family. Modelseed lists Qwen 4 Max, Qwen 3.8 Flash and Qwen 3.8 Max. Compare the versions on your own text, code or translation task before choosing.
Qwen 3.8 Flash
qwen3.8-flashEvaluate recurring text costs including input, output and actual cache hits.
View rates ↓Qwen 3.8 Max
qwen3.8-maxCompare with Flash on the same examples. Keep the exact ID, output limit and acceptance criteria fixed.
View rates ↓qwen4-max
qwen4-maxCompare with Qwen 3.8 Max across input, output, cache read and cache write rates.
View rates ↓Estimating cost
Compare Flash and Max on the same task and response limit. For long instructions, account for repeated input and caching; for long generated responses, focus on output tokens.
- The reference separates cache reads and writes.
- Implicit caching does not mean every repeated request is billed as a cache hit.
- Start with a text request. Verify JSON, streaming and tool calls for the selected version.
Models & rates
Exact model names and all published rate components.
Qwen 3.8 Flash
qwen3.8-flash| Tier | Component | Per unit | Price |
|---|---|---|---|
| Beijing · context ≤1M | Input · no cache | 1M tokens | $0.19079190.7895 credits |
| Beijing · context ≤1M | Output | 1M tokens | $0.643915643.9146 credits |
| Beijing · context ≤1M | Explicit cache write · 5 min | 1M tokens | $0.298109298.1086 credits |
| Beijing · context ≤1M | Explicit cache read | 1M tokens | $0.02384923.8487 credits |
| Beijing · context ≤1M | Implicit cache read | 1M tokens | $0.02384923.8487 credits |
Qwen 3.8 Max
qwen3.8-max| Tier | Component | Per unit | Price |
|---|---|---|---|
| Beijing · context ≤1M | Input · no cache | 1M tokens | $2.8618432,861.8426 credits |
| Beijing · context ≤1M | Output | 1M tokens | $8.5855288,585.5279 credits |
| Beijing · context ≤1M | Explicit cache write · 5 min | 1M tokens | $3.5773033,577.3033 credits |
| Beijing · context ≤1M | Explicit cache read | 1M tokens | $0.238487238.4869 credits |
| Beijing · context ≤1M | Implicit cache read | 1M tokens | $0.35773357.7303 credits |
qwen4-max
qwen4-max| Tier | Component | Per unit | Price |
|---|---|---|---|
| Standard | Input · no cache | 1M tokens | $0.836431836.4306 credits |
| Standard | Output | 1M tokens | $2.5092922,509.2919 credits |
| Standard | Cache read | 1M tokens | $0.04182241.8215 credits |
| Standard | Cache write | 1M tokens | $1.0455381,045.5383 credits |
Base rates from the active reference, shown in USD. Checkout confirms the final amount. A listed rate is not a route availability check. Check the console for current models and key permissions.
Get a key and connect Qwen API
Access Qwen through a Modelseed account and key. Payments fund your Modelseed balance; they do not top up your account on the model developer’s official website.
- 01
Account and model
Sign in, choose an exact ID and check key permissions. For video, images and agents, confirm the required format and mode first.
Create an API key → - 02
Balance or plan
For occasional use, choose a top-up: credits last 365 days. Pro, Max and Ultra add credits for 30 days. Model usage draws from your shared balance.
Pay with Lava or USDT → - 03
A small test
Create a project key, send a small request and check its output and actual usage in the console. Then connect your application workload.
Create account and get key →
Qwen API with Python: first request
Install the package with python -m pip install openai. Set the MODELSEED_API_KEY environment variable on your computer or server, then run the example. The Base URL already includes /v1.
This Chat Completions example spends credits when run. Check Responses support for Codex and Messages support for Claude Code separately.
Node.js, cURL and environment setup →import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.modelseed.dev/v1",
api_key=os.environ["MODELSEED_API_KEY"],
)
response = client.chat.completions.create(
model="qwen3.8-flash",
messages=[{"role": "user", "content": "Explain the difference between input and output tokens in two sentences."}],
max_tokens=256,
)
print(response.choices[0].message.content)Modelseed is an independent API service, not the official Qwen website. The active route determines model availability and supported features.
Before you connect
How do I get a Qwen API key in Modelseed?
Register with Modelseed and create a project key. For an OpenAI-compatible text request, set https://api.modelseed.dev/v1 and qwen3.8-flash or qwen3.8-max. Check balance and key permissions before generation.
How does caching affect Qwen cost?
The rate reference separates cache reads and creation. Repeating a similar prompt does not guarantee a cache hit. Budget from actual usage details instead of assuming the entire prompt will be cached.
Can I use Qwen for documents and translation?
Evaluate the text model on translation, summaries and drafts. Convert documents into a supported input format first; a text model does not imply automatic parsing of arbitrary PDFs or spreadsheets.
From an idea to your first request.
One key and a familiar API. New verified accounts receive a random $1–$2 welcome bonus (1,000–2,000 credits) to test requests before topping up.