Qwen3 Coder 480B-A35B is an Apache 2.0 coding model you can call through almost any OpenAI-compatible API: get a key, swap the base URL, and set the model ID. This guide covers providers, working Python and curl code, agent setup, and costs for the 480-billion-parameter mixture-of-experts model.
Key takeaways
- Qwen3 Coder 480B-A35B is a mixture-of-experts model with 480B total parameters but only 35B active per token, released under Apache 2.0, so commercial use is permitted.
- The model card lists a 256K-token native context window, extendable to 1M tokens with YaRN, which is why coding agents use it for whole-repo tasks.
- Any OpenAI-compatible provider works: the integration is a base-URL swap plus an API key, roughly five lines of Python.
- The FP8 checkpoint alone is about half a terabyte, so self-hosting means an 8-GPU node; API access bills per token with no infrastructure to run.
- Pricing varies by provider and is typically a fraction of frontier closed-API pricing. Compare current rates on each provider's pricing page or DeAI's model catalog.
What is Qwen3 Coder 480B, and why do coding agents use it?
Qwen3 Coder 480B-A35B-Instruct is Alibaba's flagship open-weight coding model. Three properties explain its adoption in agent tooling:
Architecture. It is a mixture-of-experts model: 480 billion parameters total, but only about 35 billion are active for any given token. That gives it the capacity of a very large model with inference costs closer to a mid-sized one, and that's the main reason providers can serve it at open-weight prices.
Context. According to the Hugging Face model card, it supports 262,144 tokens natively, extendable to roughly 1M tokens with YaRN extrapolation. Agentic coding workloads (multi-file refactors, long tool-call transcripts, repo-scale search) are the ones that choke on small context windows.
License. The weights ship under Apache 2.0. You can use the model commercially, fine-tune it, and redistribute derivatives, with no copyleft and no usage restrictions beyond attribution. For teams building products on top of a coding model, that removes the license-review friction that comes with custom community licenses.
The Qwen team reports strong results on agentic-coding evaluations. Treat those as vendor-reported claims: benchmark scores transfer imperfectly to real codebases, so validate on your own tasks before committing.
How much does Qwen3 Coder 480B A35B cost via API?
There is no single price. Every provider sets its own per-million-token rates, and they change often enough that any number printed here would be stale. A few structural points hold regardless:
- Input and output tokens are billed separately, with output tokens costing more. Agent loops are input-heavy: every turn resends the conversation history, so prompt caching (where offered) matters more than the headline rate.
- Precision tiers exist. Some providers serve the FP8 checkpoint at a lower price than full-precision weights. For most coding tasks the quality difference is small; test both if your provider exposes them.
- Open-weight models typically cost a fraction of frontier closed APIs for comparable coding tasks, because multiple providers compete on the same weights.
The practical move: estimate your tokens per task (run a representative agent session and count), then compare providers on dollars per completed task rather than dollars per million tokens. Check each provider's published pricing page for current rates, and DeAI's /models catalog for a side-by-side view of who serves what.
Where can you get a Qwen3 Coder API key?
Model availability shifts, so confirm the exact model ID in each provider's catalog before wiring anything up. The main routes:
First-party hosting. Alibaba Cloud Model Studio (DashScope) serves the Qwen family directly and offers an OpenAI-compatible endpoint mode. This is the canonical source and usually carries the full-precision variant.
Aggregators. OpenRouter fronts multiple upstream providers behind one key and one API, so you can compare price, latency, and uptime per upstream and fail over between them.
Serverless inference clouds. Providers such as Together, Fireworks, and Novita have historically carried the Qwen3 Coder family at launch. Each exposes an OpenAI-compatible endpoint; check their model lists for the 480B variant.
Decentralized marketplaces. A decentralized inference marketplace such as Morpheus routes requests to independent GPU operators rather than a single company's datacenter. The integration surface is the same: an OpenAI-compatible endpoint, a key, and a model ID. So are the evaluation criteria: price, latency, context length supported, and retention terms.
On privacy: any provider's "we don't retain prompts" language is a policy statement, not a verified fact, regardless of whether the provider is centralized or decentralized. If you are sending proprietary code, read the retention terms and prefer providers whose policies you have actually reviewed.
Quickstart: call the Qwen3 Coder API with an OpenAI-compatible client
Every provider above speaks the OpenAI chat-completions schema. The entire integration is a base URL, a key, and a model ID. The exact model string varies by provider, so copy it from their catalog.
Python
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["PROVIDER_BASE_URL"], # e.g. https://api.example.com/v1
api_key=os.environ["PROVIDER_API_KEY"],
)
response = client.chat.completions.create(
model="Qwen3-Coder-480B-A35B-Instruct", # exact ID varies by provider
messages=[
{"role": "system", "content": "You are a senior software engineer."},
{"role": "user", "content": "Write a Python async function that retries an HTTP request with exponential backoff and jitter."},
],
temperature=0.2,
max_tokens=2048,
)
print(response.choices[0].message.content)
curl
curl "$PROVIDER_BASE_URL/chat/completions" \
-H "Authorization: Bearer $PROVIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "Qwen3-Coder-480B-A35B-Instruct",
"messages": [
{"role": "user", "content": "Refactor this function to be iterative instead of recursive."}
],
"temperature": 0.2,
"stream": true
}'
Two practical notes. First, keep temperature low (0–0.3) for code generation; the model is well-behaved at low sampling temperatures and you want determinism. Second, always enable streaming for agent workloads. Long generations over a non-streaming connection are how you hit spurious timeouts.
How do you wire Qwen3 Coder into a coding agent?
Most agent harnesses (CLI coding assistants, IDE plugins, custom loops) accept an OpenAI-compatible endpoint through environment variables:
export OPENAI_BASE_URL="$PROVIDER_BASE_URL"
export OPENAI_API_KEY="$PROVIDER_API_KEY"
export AGENT_MODEL="Qwen3-Coder-480B-A35B-Instruct"
The Qwen team maintains Qwen Code, an open-source coding CLI built for this model family, with setup instructions in the Qwen3-Coder GitHub repository. Other harnesses work too, since the model was trained for agentic tool use: function calling follows the standard OpenAI tools schema on every provider listed above.
Three things to verify before trusting it in a loop:
- Tool-call formatting. Providers occasionally mangle the
tool_callsfield on streaming responses. Run one full tool-use round trip before scaling up. - Context accounting. A 256K window fills faster than you think when the agent pastes file contents. Track cumulative input tokens per session; they drive both cost and truncation risk.
- Refusal behavior. Some providers layer moderation that refuses benign security-adjacent coding tasks. DeAI's refusal-index methodology is designed to score exactly this; until public results ship, test your own edge cases (exploit-writeups, fuzzers, auth code) against each provider you shortlist.
Should you self-host instead?
The math is unforgiving but simple. FP8 weights for 480B parameters occupy roughly 480GB; BF16 doubles that to nearly a terabyte. Add KV cache for long contexts and you are looking at a single 8-GPU node (H100/H200 class) as the realistic minimum for the FP8 variant. With that hardware, vLLM or SGLang serves an OpenAI-compatible endpoint in one command:
vllm serve Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8 \
--tensor-parallel-size 8 \
--max-model-len 262144
Self-hosting wins when you have sustained volume (an always-on node beats per-token billing only if you keep it busy), strict data-residency requirements, or fine-tuning plans. APIs win on everything else: no capacity planning, no on-call, and you can switch providers by changing one environment variable. If you want local inference without the datacenter, the smaller Qwen3 Coder 30B-A3B variant runs on a single high-end GPU and covers lighter agent tasks.
What is the best coding open model API?
Honest answer: it depends on your workload, and anyone claiming a single winner is selling something. The comparison criteria that actually matter are tool-calling reliability on your harness, effective context length as served (some providers cap it below the model's native window), latency at your concurrency, price per completed task, and retention policy. Qwen3 Coder 480B is a strong default because of its Apache 2.0 license and wide provider availability, but the open-weight coding field moves fast. For a maintained cross-provider comparison, see DeAI's guide to the best LLM API for AI agents and the /models catalog.
FAQ
How much does the Qwen3 Coder 480B A35B API cost?
Providers bill per million tokens and rates vary, so check each provider's pricing page. Open-weight models like this typically cost a fraction of frontier closed APIs. Self-hosting only undercuts APIs at sustained high volume.
What is the best coding open model API?
There is no single winner. Compare on tool-calling reliability, context length, latency, and price. Qwen3 Coder 480B is a leading Apache 2.0 option; DeAI's best LLM API for AI agents guide compares the field.
Is Qwen3 Coder 480B licensed for commercial use?
Yes. The weights are released under Apache 2.0, which permits commercial use, modification, and redistribution with attribution and no copyleft. Confirm the terms on the Hugging Face model card before shipping.
Can I run Qwen3 Coder 480B locally?
Only with serious hardware: the FP8 checkpoint alone is roughly half a terabyte, so plan on an 8-GPU node. The smaller Qwen3 Coder 30B-A3B variant fits a single high-end GPU for local agent work.
Does Qwen3 Coder support tool calling for agents?
Yes. It was trained for agentic coding with function calling, and OpenAI-compatible providers expose the standard tools schema. Test your harness end to end, because tool-call formatting differs across providers.
Questions
- How much does the Qwen3 Coder 480B A35B API cost?
- Providers bill per million tokens and rates vary, so check each provider's pricing page. Open-weight models like this typically cost a fraction of frontier closed APIs. Self-hosting only undercuts APIs at sustained high volume.
- What is the best coding open model API?
- There is no single winner. Compare on tool-calling reliability, context length, latency, and price. Qwen3 Coder 480B is a leading Apache 2.0 option; DeAI's best-llm-api-for-ai-agents guide compares the field.
- Is Qwen3 Coder 480B licensed for commercial use?
- Yes. The weights are released under Apache 2.0, which permits commercial use, modification, and redistribution with attribution and no copyleft. Confirm the terms on the Hugging Face model card before shipping.
- Can I run Qwen3 Coder 480B locally?
- Only with serious hardware: the FP8 checkpoint alone is roughly half a terabyte, so plan on an 8-GPU node. The smaller Qwen3 Coder 30B-A3B variant fits a single high-end GPU for local agent work.
- Does Qwen3 Coder support tool calling for agents?
- Yes. It was trained for agentic coding with function calling, and OpenAI-compatible providers expose the standard tools schema. Test your harness end to end, because tool-call formatting differs across providers.
Sources
- Qwen3-Coder-480B-A35B-Instruct model card — Qwen / Hugging Face
- Qwen3-Coder GitHub repository — QwenLM
- Apache License, Version 2.0 — Apache Software Foundation
- Alibaba Cloud Model Studio — Alibaba Cloud
- OpenRouter model catalog — OpenRouter
- vLLM documentation — vLLM Project
About DeAI
DeAI is an independent publication covering open-weight AI models, private inference, and decentralized infrastructure — the tools for running AI you actually control. We test providers on price, privacy, and refusal behavior and publish the numbers, not the vibes. DeAI is powered by Morpheus (mor.org), a decentralized inference marketplace, and covers it on the same terms as every other provider.
Powered by Morpheus and StrandCMS
Morpheus is a decentralized inference marketplace, covered on the same terms as every other provider — we rank it wherever the data lands. StrandCMS is the open-source, agent-first framework this site is built on.
