GPT-4.1 Mini vs Qwen2.5 Coder 32B API pricing
Updated
GPT-4.1 Mini: USD 0.40 input, USD 1.60 output per 1M tokens (OpenAI and 1 other). Qwen2.5 Coder 32B: USD 0.66 input, USD 1 output per 1M tokens (Cloudflare Workers AI). At 3 input tokens per output token, Qwen2.5 Coder 32B costs 6.4% more than GPT-4.1 Mini (USD 0.745 vs USD 0.70 per 1M).
How do GPT-4.1 Mini and Qwen2.5 Coder 32B differ on price?
- Cheapest input price: GPT-4.1 Mini USD 0.40 against USD 0.66 per 1M tokens, so Qwen2.5 Coder 32B costs 1.65× as much (65% more).
- Cheapest output price: Qwen2.5 Coder 32B USD 1 against USD 1.60 per 1M tokens, so GPT-4.1 Mini costs 1.6× as much (60% more).
- Among the 201 indexed models, GPT-4.1 Mini ranks 111th cheapest and Qwen2.5 Coder 32B 117th on the 3:1 blend.
- The cheaper model changes at 2.3 input tokens per output token.
- Only GPT-4.1 Mini lists a cached-input discount: GPT-4.1 Mini at 2 standard prices of 2, from USD 0.10 (OpenAI, 75% below that provider's input price). Qwen2.5 Coder 32B's cached tokens bill at the input price.
- Only Qwen2.5 Coder 32B has a stated context window (32,768 tokens); no provider of GPT-4.1 Mini states one on its pricing page.
- Both have 2 providers with a standard price; no provider sells both, so using both means two accounts.
- Shopping around matters more for Qwen2.5 Coder 32B: its dearest standard price is 1.09× its cheapest, against 1× for GPT-4.1 Mini.
- OpenAI's own API is one of 2 providers tied for the lowest standard price we found for GPT-4.1 Mini, USD 0.70 at 3:1.
- GPT-4.1 Mini has a batch price at 2 providers, from USD 0.35 at 3:1 (OpenAI); Qwen2.5 Coder 32B has no batch price on file.
- For the one-developer coding agent preset, the gap is USD 10,476 a year in GPT-4.1 Mini's favour (GPT-4.1 Mini USD 405.00 a month, Qwen2.5 Coder 32B USD 1,278).
GPT-4.1 Mini and Qwen2.5 Coder 32B prices side by side
USD per 1M tokens, standard tier. "Cheapest" is the lowest price at 3 input tokens to 1 output token; each line can come from a different provider.
| Price | GPT-4.1 Mini | Qwen2.5 Coder 32B |
|---|---|---|
| Model page | GPT-4.1 Mini OpenAI · 2 providers | Qwen2.5 Coder 32B Instruct Qwen · 2 providers |
| Cheapest standard price, blended 3:1 | USD 0.70 lower USD 0.40 in / USD 1.60 out at OpenAI and 1 other OpenAI page checked 2026-11-14 | USD 0.745 USD 0.66 in / USD 1 out at Cloudflare Workers AI Cloudflare Workers AI page checked 2026-11-14 |
| Cheapest input | USD 0.40 lower OpenAI source | USD 0.66 Cloudflare Workers AI source |
| Cheapest cached input | USD 0.10 OpenAI source | No standard price lists a cache price; cached tokens bill at the input price. |
| Cheapest output | USD 1.60 OpenAI source | USD 1 lower Cloudflare Workers AI source |
| Maker's own API | USD 0.40 / USD 1.60 OpenAI source | Qwen publishes no paid standard price on its own API that we found. |
| Median standard price | USD 0.40 / USD 1.60 input / output, 2 prices | USD 0.67 / USD 1.10 input / output, 2 prices |
| Context window | No provider states one on its pricing page. | 32,768 tokens, largest stated |
| Providers with a standard price | 2 | 2 |
- Lower marks the lower price on a line; tie, equal prices. Other tiers and free rows are on the model pages.
Report a wrong price or number (email to info@broadnet.ai, with this page's link filled in).
What do GPT-4.1 Mini and Qwen2.5 Coder 32B cost for a real workload?
30 days at each model's cheapest standard price for the workload (presets of the cost calculator; cached input at the cached price where listed).
| Workload | GPT-4.1 Mini | Qwen2.5 Coder 32B | Difference |
|---|---|---|---|
| Support chatbot 2,000 requests a day, 1,500 input tokens (60% cached), 300 output | USD 48.60 OpenAI | USD 77.40 Cloudflare Workers AI | USD 28.80 GPT-4.1 Mini lower |
| RAG over documents 1,000 requests a day, 8,000 input tokens (30% cached), 500 output | USD 98.40 OpenAI | USD 173.40 Cloudflare Workers AI | USD 75.00 GPT-4.1 Mini lower |
| Coding agent (one developer) 1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning | USD 405.00 OpenAI | USD 1,278 Cloudflare Workers AI | USD 873.00 GPT-4.1 Mini lower |
GPT-4.1 Mini is cheaper on all three workloads. The widest gap is on Coding agent (one developer): the dearer model costs 3.2× as much as the cheaper one.
Does the cheaper model change with your input:output ratio?
The cheaper model changes with the mix: below 2.3 input tokens per output token, Qwen2.5 Coder 32B is cheaper; above 2.3, GPT-4.1 Mini is cheaper. At the site's 3:1 blend, GPT-4.1 Mini is cheaper. More input per output token, as with retrieval or agents that resend long contexts, favours the lower input price; long answers favour the lower output price.
| Input : output tokens | GPT-4.1 Mini | Qwen2.5 Coder 32B |
|---|---|---|
| 1 : 3 (long answers) | USD 1.30 OpenAI | USD 0.915 lower Cloudflare Workers AI |
| 1 : 1 | USD 1 OpenAI | USD 0.83 lower Cloudflare Workers AI |
| 3 : 1 (the site’s blend) | USD 0.70 lower OpenAI | USD 0.745 Cloudflare Workers AI |
| 10 : 1 (retrieval, long prompts) | USD 0.5091 lower OpenAI | USD 0.6909 Cloudflare Workers AI |
| 30 : 1 (agents, big contexts) | USD 0.4387 lower OpenAI | USD 0.671 Cloudflare Workers AI |
USD per 1M tokens at the cheapest standard provider for each mix, before cache discounts. Thinking tokens bill as output.
What do GPT-4.1 Mini and Qwen2.5 Coder 32B cost per character in other languages?
Not measured: the real cost by language dataset covers only tokenizers we could measure from published files, and Qwen2.5 Coder 32B is not among them. Count tokens on your own text with the counters below.
Check it on your own traffic
- GPT-4.1 Mini API pricing: all 2 providers and other tiers.
- Qwen2.5 Coder 32B Instruct API pricing: all 2 providers and other tiers.
- Cost calculator with GPT-4.1 Mini and Qwen2.5 Coder 32B preloaded
- GPT token counter
- Qwen token counter
- Prompt caching calculator
More comparisons: GPT-5 Mini vs GPT-4.1 Mini · GPT-4.1 Mini vs GPT-4.1 · every GPT-4.1 Mini comparison · every Qwen2.5 Coder 32B comparison · all 662 price comparisons
Questions
Is GPT-4.1 Mini cheaper than Qwen2.5 Coder 32B?
Yes. On a blend of 3 input tokens to 1 output token, GPT-4.1 Mini costs USD 0.70 per 1M tokens and Qwen2.5 Coder 32B USD 0.745, at each model's cheapest standard price. For input alone, GPT-4.1 Mini is cheaper (USD 0.40 against USD 0.66 per 1M); for output alone, Qwen2.5 Coder 32B is (USD 1 against USD 1.60). This compares price only, not quality.
What do GPT-4.1 Mini and Qwen2.5 Coder 32B cost per 1M tokens?
GPT-4.1 Mini: from USD 0.40 input and USD 1.60 output at OpenAI and 1 other; OpenAI's own API charges USD 0.40 / USD 1.60; median of 2 standard prices USD 0.40 / USD 1.60. Qwen2.5 Coder 32B: from USD 0.66 input and USD 1 output at Cloudflare Workers AI; median of 2 standard prices USD 0.67 / USD 1.10. Each price is read from the provider's own pricing page; the source is linked in the table.
Which providers sell both GPT-4.1 Mini and Qwen2.5 Coder 32B?
None of the providers we track sells both at a standard price. GPT-4.1 Mini is cheapest at OpenAI and 1 other and Qwen2.5 Coder 32B at Cloudflare Workers AI, so running both means two accounts.
Which is cheaper for a coding agent or a chatbot, GPT-4.1 Mini or Qwen2.5 Coder 32B?
For a coding agent (1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning): USD 405.00 a month on GPT-4.1 Mini (OpenAI) against USD 1,278 on Qwen2.5 Coder 32B (Cloudflare Workers AI), a difference of USD 873.00. For a support chatbot (2,000 requests a day, 1,500 input tokens (60% cached), 300 output): USD 48.60 a month on GPT-4.1 Mini (OpenAI) against USD 77.40 on Qwen2.5 Coder 32B (Cloudflare Workers AI), a difference of USD 28.80. Each uses the cheapest standard price for that workload, cached input included. Try your own numbers.
At what input:output ratio does the cheaper of GPT-4.1 Mini and Qwen2.5 Coder 32B change?
The cheaper model changes with the mix: below 2.3 input tokens per output token, Qwen2.5 Coder 32B is cheaper; above 2.3, GPT-4.1 Mini is cheaper. At the site's 3:1 blend, GPT-4.1 Mini is cheaper. More input per output token, as with retrieval or agents that resend long contexts, favours the lower input price; long answers favour the lower output price.
Do GPT-4.1 Mini and Qwen2.5 Coder 32B have cached input pricing?
GPT-4.1 Mini from USD 0.10 per 1M cached input tokens (OpenAI; 2 of 2 standard prices list a discount). Qwen2.5 Coder 32B: no standard price lists a cached-input discount. Cached tokens are billed at the input price where no cache price is published.