Alibaba · Text
Qwen3-Coder API pricing
qwen/qwen3-coder
Code generation. Qwen3-Coder by Alibaba, called through one INFRO key alongside every other model you run. We price it 25% below Alibaba's direct rate — the same model, the same weights, reached through a different integration.
Pricing
Alibaba direct
$1.80
per 1M tokens
INFRO
$1.35
per 1M tokens
You save
25%
on every unit
Per-token rates
$0.90 / 1M input tokens·$4.50 / 1M output tokens
The headline figure above is these two blended at a 3:1 input:output ratio, so one number is comparable across modalities. Your own ratio will move it.
Illustrative launch rates, reconciled against published provider pricing on 2026-08-24. Live rates come from GET /v1/models once your key is active.
Calling Qwen3-Coder
POST /v1/chat/completionsAt launch — Committed to the first release. In build now, not usable yet.import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["INFRO_API_KEY"],
base_url="https://api.infro.io/v1",
)
response = client.chat.completions.create(
model="qwen/qwen3-coder",
messages=[{"role": "user", "content": "Hello"}],
)What this modality supports
- Streaming
- Tool calling
- Structured outputs
- Prompt caching
Frontier and open-weight language models behind an OpenAI-compatible endpoint. Streaming, tool calling, structured outputs, and vision pass straight through — and prompt caching is billed at the provider's cached rate, so the discount compounds.
Alternatives for code generation
Same modality, nearest in price. All of them share the request shape above, so comparing them is a one-word change.
Work out what Qwen3-Coder would cost you
Put your current spend on this model into the calculator and see the same workload priced here — or have us read your real usage.