Back to Models

Qwen3 Coder 30B

qwenqwen/qwen3-coder-30b

Qwen3's efficient coding model (30B MoE, 3B active). Fast code generation at low cost.

Qwen3-Coder-30B-A3B-Instruct is the efficient member of Alibaba Qwen's Qwen3-Coder family: a 30.5B-total / 3.3B-active Mixture-of-Experts coding model built for agentic coding, tool calls, and repository-scale context at much lower serving cost than the 480B flagship. The model card positions it as a streamlined coder that preserves strong performance on agentic coding, browser-use, and foundational coding tasks while improving throughput and deployability.

For TheRouter users, this is the practical high-throughput Qwen coder: choose it for Cursor-style assistants, Cline, code review prefilters, test generation, and batch coding workflows where the 480B model would be overkill. It keeps the same 262K native context headline and non-thinking output behavior, so production clients do not need to strip <think> blocks from responses.

Best for
  • β€’ High-throughput coding agents β€” repeated code edits, test generation, static-analysis summaries, and batch PR triage where cost per request matters
  • β€’ Cursor/Cline-style developer tools β€” OpenAI-compatible chat, streaming, tools, and response_format through TheRouter
  • β€’ Long-context code understanding β€” 262K native context for large files, dependency maps, and migration notes without jumping to flagship pricing
  • β€’ Teams that need an open-weight coding fallback with stronger agent behavior than generic small chat models
Reach for something else if
  • β€’ Highest-stakes autonomous refactors β€” route to qwen/qwen3-coder-480b or a frontier coding model when failure cost is high
  • β€’ Native multimodal inputs β€” this is text-in / text-out; use qwen/qwen3-vl-plus or another vision-capable model for images
  • β€’ Explicit reasoning trace UX β€” Qwen states this model is non-thinking and does not emit <think> blocks
Context Length
200K
Max Output
66K
Input Priceper 1M tokens
$0.486/ 1M tokens
Output Priceper 1M tokens
$2.43/ 1M tokens

Modalities

text→text

Pricing Breakdown

TypeRate
Input$0.486 / 1M tokens
Output$2.43 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatreasoningstop

Specifications

ArchitectureMixture-of-Experts causal language modelhuggingface.co β†—verified
Parameters30.5B total / 3.3B activatedhuggingface.co β†—verified
Layers48huggingface.co β†—verified
Experts128 experts; 8 activated per tokenhuggingface.co β†—verified
Native context262,144 tokens; extendable to 1M with YaRN in self-hosted deploymentshuggingface.co β†—verified
Output modeNon-thinking only; does not generate <think> blockshuggingface.co β†—verified

Benchmarks

BenchmarkDistributionScoreSource
Agentic Coding / Browser-Use / Foundational Coding
The 30B model card states significant performance among open models on agentic coding, agentic browser-use, and foundational coding tasks, but does not publish exact scores in the fetched text.
Strong open-model performance; exact 30B-specific score not exposed in fetched model-card texthuggingface.co/Qwen β†—
SWE-Bench Verified
Qwen's family announcement discusses SWE-Bench Verified for Qwen3-Coder and the flagship 480B model; do not infer a 30B score until Alibaba publishes one.
β€”Not publicly disclosedβ€”

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "qwen/qwen3-coder-30b",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'

Chat completion

Use the standard OpenAI-compatible chat completions endpoint for code edits, tests, and explanations. Keep prompts concrete: include the target file, failing assertion, or API contract.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen/qwen3-coder-30b",
    "messages": [
      {"role": "system", "content": "You are a senior software engineer. Return concise patches and tests."},
      {"role": "user", "content": "Write unit tests for this parser and cover edge cases: ..."}
    ],
    "temperature": 0.7,
    "max_tokens": 4096
  }'

More from qwen

Similar models

Cross-provider sibling models

News & changes

2025-07-29

Qwen releases Qwen3-Coder-30B-A3B-Instruct

Qwen introduced a streamlined 30.5B-total / 3.3B-active coder that keeps the family emphasis on long context, agentic coding, browser-use, and tool-use while lowering deployment and routing cost.

re-authored by TheRouterhuggingface.co/Qwen β†—
2025-07-22

Qwen launches the Qwen3-Coder family and Qwen Code

The initial Qwen3-Coder announcement introduced the family as an agentic coding line with Qwen Code, OpenAI-compatible API examples, Cline setup notes, and Claude Code-style integration paths.

re-authored by TheRouterqwenlm.github.io β†—

Frequently asked

How is qwen/qwen3-coder-30b different from qwen/qwen3-coder-480b?

The 30B model is the efficient sibling: 30.5B total and 3.3B active parameters versus 480B total and 35B active for the flagship. Use 30B for high-throughput coding, tests, summaries, and cost-sensitive agents; reserve 480B for higher-stakes autonomous edits or harder repository reasoning.

Does Qwen3-Coder-30B support tool calling?

Yes. The model card highlights agentic coding and includes an OpenAI-compatible tool-calling example. Through TheRouter, use the normal tools and tool_choice fields on /v1/chat/completions.

Does it return hidden reasoning or <think> blocks?

No. Qwen states this model supports only non-thinking mode and does not generate <think></think> blocks. That makes it easier to use in production code clients that expect direct output.

Can I use it from Cursor, Cline, or another OpenAI-compatible client?

Yes. TheRouter exposes the model through the OpenAI-compatible chat endpoint, so clients that let you set baseURL, API key, and model name can route to qwen/qwen3-coder-30b.

Is the 262K context a TheRouter guarantee?

The curated model card records the model's native context claim, while operational context and max completion values still come from standard-models.yaml and the selected upstream route. Validate your largest prompts before production rollout.

Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Architecturehuggingface.co β†—2026-06-03verified
Parametershuggingface.co β†—2026-06-03verified
Layershuggingface.co β†—2026-06-03verified
Expertshuggingface.co β†—2026-06-03verified
Native contexthuggingface.co β†—2026-06-03verified
Output modehuggingface.co β†—2026-06-03verified
Agentic Coding / Browser-Use / Foundational Codinghuggingface.co/Qwen β†—2026-06-03verified
SWE-Bench Verifiedqwenlm.github.io β†—2026-06-03unknown
Qwen releases Qwen3-Coder-30B-A3B-Instructhuggingface.co/Qwen β†—2026-06-03verified
Qwen launches the Qwen3-Coder family and Qwen Codeqwenlm.github.io β†—2026-06-03verified
How is qwen/qwen3-coder-30b different from qwen/qwen3-coder-480b?huggingface.co β†—2026-06-03to verify
Does Qwen3-Coder-30B support tool calling?huggingface.co β†—2026-06-03to verify
Does it return hidden reasoning or <think> blocks?huggingface.co β†—2026-06-03to verify
Can I use it from Cursor, Cline, or another OpenAI-compatible client?qwenlm.github.io β†—2026-06-03to verify
Is the 262K context a TheRouter guarantee?huggingface.co β†—2026-06-03to verify
Help & contact