Qwen API
Run live Qwen models through one serverless Inference.net API with OpenAI /v1/chat/completions, /v1/responses, and native Anthropic /v1/messages support. Compare live per-token pricing, context windows up to 1M tokens, and implicit prompt caching across Qwen 3.7 Plus, Qwen 3 30B A3B, and Qwen 3 14B. Externally routed Qwen catalog models follow their upstream provider's data-handling and retention terms (default Zero Data Retention applies to eligible Inference.net-hosted routes).
- Serverless per-token billing across Qwen 3.7 Plus and Qwen 3 checkpoints
- Up to 1M-token context with text, image, and video input on Qwen 3.7 Plus
- Automatic implicit prompt caching on Qwen 3.7 Plus (80% cached-read savings)
- OpenAI /v1/chat/completions, /v1/responses, and Anthropic /v1/messages support
All live Qwen models on Inference.net
Every rate, context limit, and capability below is pulled directly from the live public catalog. Select any model for full specs, live latency benchmarks, and prompt-caching guidance.
| Model | Context | Max output | Input / 1M | Cached / 1M | Output / 1M | Capabilities | Start |
|---|---|---|---|---|---|---|---|
Qwen 3.7 Plus qwen3.7-plus | 1M | 128K | $0.40 | $0.08 | $1.60 | Vision, Tools | Use API |
Qwen 3 30B A3B qwen3-30b-a3b | 41K | 16K | $0.12 | N/A | $0.50 | Text | Use API |
Qwen 3 14B qwen3-14b | 131K | 8K | $0.227 | N/A | $0.91 | Text | Use API |
Call Qwen over OpenAI or Anthropic SDKs
Use the top live model ID (qwen3.7-plus) with the standard OpenAI SDK, curl, or Claude Code over native /v1/messages.
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://api.inference.net/v1',
apiKey: process.env.INFERENCE_API_KEY,
})
const completion = await client.chat.completions.create({
model: 'qwen3.7-plus',
messages: [{ role: 'user', content: 'Hello' }],
})import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.inference.net/v1",
api_key=os.environ["INFERENCE_API_KEY"],
)
completion = client.chat.completions.create(
model="qwen3.7-plus",
messages=[{"role": "user", "content": "Hello"}],
)curl https://api.inference.net/v1/chat/completions \
-H "Authorization: Bearer $INFERENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.7-plus",
"messages": [
{ "role": "user", "content": "Hello" }
]
}'Point Claude Code or any Anthropic SDK client at Inference.net with zero proxy setup and full prompt-cache support.
export ANTHROPIC_BASE_URL="https://api.inference.net"
export ANTHROPIC_AUTH_TOKEN="$INFERENCE_API_KEY"
export ANTHROPIC_MODEL='qwen3.7-plus[1m]'
export ANTHROPIC_DEFAULT_OPUS_MODEL='qwen3.7-plus[1m]'
export ANTHROPIC_DEFAULT_SONNET_MODEL='qwen3.7-plus[1m]'
export ANTHROPIC_DEFAULT_HAIKU_MODEL='qwen3.7-plus[1m]'
export CLAUDE_CODE_SUBAGENT_MODEL='qwen3.7-plus[1m]'
claudeBenchmark, compare, and model Qwen costs
Verify unit economics across prompt-cache hit rates, compare providers, and explore engineering guides for Qwen.
Explore other open-weight model families
Switch across DeepSeek, Kimi, GLM, and the full catalog with one API key and one OpenAI-compatible client.
Frequently asked questions.
Quick answers to help you get started
Inference.net currently serves 3 live Qwen models with transparent pay-as-you-go per-token billing. Input rates start at $0.12 per 1M input tokens ($0.50 per 1M output tokens) on Qwen 3 30B A3B. Every rate in the comparison table above pulls directly from the live public catalog.
Yes, on Qwen 3.7 Plus. On Qwen 3.7 Plus, keeping repeated system instructions, tool schemas, and context byte-identical across turns unlocks automatic implicit prompt caching with no extra cache key (prompt-cache discounts are not currently listed on Qwen 3 30B A3B or Qwen 3 14B). On Qwen 3.7 Plus, cached input reads are $0.08 per 1M tokens (80% less than standard input). Estimate multi-turn savings with the Prompt Cache Calculator.
Yes. Point the official OpenAI TypeScript or Python SDK to https://api.inference.net/v1 with your INFERENCE_API_KEY and set model to "qwen3.7-plus". All live Qwen catalog models support /v1/chat/completions, /v1/responses, and native Anthropic /v1/messages for Anthropic SDK apps and Claude Code.
No for the current externally routed Qwen catalog models (Qwen 3.7 Plus, Qwen 3 30B A3B, and Qwen 3 14B). Externally routed models are excluded from Inference.net's Zero Data Retention (ZDR) policy and follow their upstream provider's data-handling and retention terms. Default ZDR under SOC 2 Type II controls applies to eligible Inference.net-hosted routes; review our ZDR policy for full details. Live Qwen routes run over the global https://api.inference.net/v1 endpoint.
Live Qwen models on Inference.net scale up to a 1M-token context window (1,000,000 tokens) and up to 128K output tokens on Qwen 3.7 Plus. Context limits and caching vary by checkpoint, so check each model row above for exact specs and multimodal capabilities.
Start calling Qwen in minutes
Create a project API key with Zero Data Retention enabled by default on eligible Inference.net-hosted routes and route requests to qwen3.7-plus with pay-as-you-go billing.