---
title: "Qwen API: Qwen 3.7 Plus, Qwen 3 & Pricing | Inference.net"
description: "Run Qwen 3.7 Plus, Qwen 3 30B A3B, and Qwen 3 14B on one API. Live per-token pricing, up to 1M context, implicit caching on 3.7 Plus, and OpenAI SDKs."
url: "https://inference.net/models/qwen/"
---

QWEN API

# 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

[Get Qwen API key](https://inference.net/register/?model=qwen3-7-plus) [Estimate monthly cost](https://inference.net/tools/llm-pricing-calculator/) [Full model catalog](https://inference.net/models/)

LIVE CATALOG & PRICING

## 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](https://inference.net/models/qwen3-7-plus/) `qwen3.7-plus` | 1M | 128K | $0.40 | $0.08 | $1.60 | Vision, Tools | [Use API](https://inference.net/register/?model=qwen3-7-plus) |
| [Qwen 3 30B A3B](https://inference.net/models/qwen3-30b-a3b/) `qwen3-30b-a3b` | 41K | 16K | $0.12 | N/A | $0.50 | Text | [Use API](https://inference.net/register/?model=qwen3-30b-a3b) |
| [Qwen 3 14B](https://inference.net/models/qwen3-14b/) `qwen3-14b` | 131K | 8K | $0.227 | N/A | $0.91 | Text | [Use API](https://inference.net/register/?model=qwen3-14b) |

QUICKSTART

## 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`.

QUICKSTART [Get API key](https://inference.net/register/?model=qwen3-7-plus)

```typescript
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' }],
})
```

```python
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
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" }
    ]
  }'
```

CLAUDE CODE & ANTHROPIC /V1/MESSAGES

Point Claude Code or any Anthropic SDK client at Inference.net with zero proxy setup and full prompt-cache support.

```bash
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]'
claude
```

[Claude Code setup guide](https://inference.net/docs/integrations/claude-code/) [Anthropic SDK docs](https://inference.net/docs/api/anthropic-sdk/)

COMPARISONS, GUIDES & TOOLS

## Benchmark, compare, and model Qwen costs

Verify unit economics across prompt-cache hit rates, compare providers, and explore engineering guides for Qwen.

[COMPARISON Inference.net vs OpenRouter Compare unified multi-model routing, 0% markup PAYG credits, and direct open-weight hosting. Read comparison](https://inference.net/compare/inference-net-vs-openrouter/) [COMPARISON Inference.net vs Together AI Compare serverless open-weight model pricing, prompt caching, and OpenAI or Anthropic SDK support. Read comparison](https://inference.net/compare/inference-net-vs-together-ai/) [COMPARISON Inference.net vs Fireworks AI Compare multi-model serverless APIs across open-weight and frontier models. Read comparison](https://inference.net/compare/inference-net-vs-fireworks-ai/) [GUIDE Best Open-Source LLMs Guide Workload-by-workload guide to selecting Qwen, DeepSeek, Kimi, and GLM models. Read guide](https://inference.net/guides/best-open-source-llms/) [GUIDE Cheapest LLM API Guide Verified per-1M token rates and cached-read math across serverless LLM APIs. Read guide](https://inference.net/guides/cheapest-llm-api/) [GUIDE OpenRouter Alternatives Guide Compare multi-model inference providers on transparent billing and SDK support. Read guide](https://inference.net/guides/openrouter-alternatives/) [CALCULATOR LLM Pricing Calculator Estimate monthly token spend across live Qwen models and sibling open-weight tiers. Open calculator](https://inference.net/tools/llm-pricing-calculator/) [CALCULATOR Prompt Cache Calculator Model 50%, 75%, and 90% cache hit-rate savings for multi-turn coding agents and RAG workflows. Calculate savings](https://inference.net/tools/prompt-cache-calculator/) [INTEGRATION Claude Code Integration Connect Claude Code directly to Qwen models on Inference.net using native /v1/messages. Read docs](https://inference.net/docs/integrations/claude-code/)

MODEL FAMILIES

## Explore other open-weight model families

Switch across DeepSeek, Kimi, GLM, and the full catalog with one API key and one OpenAI-compatible client.

[DEEPSEEK API DeepSeek API DeepSeek V4.1 Flash, V4 Pro, and V3.2 with up to 1M context and automatic prompt caching on supported V4.1 and V4 Pro routes, plus default ZDR on hosted routes. Explore DeepSeek models](https://inference.net/models/deepseek/) [KIMI API Kimi API Kimi K3.1 Pro, K3, K3 Fast, and K2.6 for agentic coding, multimodal reasoning, and up to 1M context on K3 models. Explore Kimi models](https://inference.net/models/kimi/) [GLM API GLM API GLM-5.3, GLM-5.3 Flash, and GLM-5.2 for low-cost coding agents, tool calling, and up to 1M context. Explore GLM models](https://inference.net/models/glm/) [SCHEMATRON API Schematron API Schematron V2 Turbo and V2 Small for high-throughput HTML-to-JSON structured extraction with 128K context, US residency, and default ZDR. Explore Schematron models](https://inference.net/models/schematron/) [GROK API Grok API Grok 4.6 and Grok 4.5 with 500K context, vision, configurable reasoning, and x-grok-conv-id prompt caching over one API key. Explore Grok models](https://inference.net/models/grok/) [FULL CATALOG All Models & Pricing Search, sort, and compare every live open-weight and frontier model on Inference.net. Browse all models](https://inference.net/models/)

FAQ

## Frequently asked questions.

Quick answers to help you get started

### How much does the Qwen API cost on Inference.net?

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.

### Does Inference.net support prompt caching for Qwen models?

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.

### Can I call Qwen models with the OpenAI SDK, Anthropic SDK, or Claude Code?

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.

### Does Inference.net offer Zero Data Retention for the Qwen API?

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](https://inference.net/zero-data-retention/) for full details. Live Qwen routes run over the global https://api.inference.net/v1 endpoint.

### What context windows and capabilities do Qwen models support?

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.

GET STARTED

## 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.

[Create free API key](https://inference.net/register/?model=qwen3-7-plus) [API quickstart docs](https://inference.net/docs/api/quickstart/)
