Comparison · OpenAI and Qwen

GPT-5.4 Mini vs Qwen3.8 27B

Listed API prices of GPT-5.4 Mini and Qwen3.8 27B turned into the cost of the same three standard tasks, with speed from our own test requests in the United States and what each provider’s API documentation says about features that break on a switch. Output quality and answer length are not compared.

Calculated impact cost per task and per month

For an L2 task (deep analysis over a 50,000-token document, 3 steps), GPT-5.4 Mini costs $0.133 and Qwen3.8 27B $0.139 at the prices listed in the United States on , so GPT-5.4 Mini is 4.6 % less than Qwen3.8 27B, counting visible output only, without cache discounts or hidden reasoning.

Head to head: GPT-5.4 Mini: $0.133; Qwen3.8 27B: $0.139 Calculated from published rates Input and visible output are priced separately for the same task. 159,000 input + 3,000 visible output tokens per task. No cache discount; hidden reasoning excluded.
Head to head.Calculated from published rates Input and visible output are priced separately for the same task. 159,000 input + 3,000 visible output tokens per task. No cache discount; hidden reasoning excluded. Open image · Explore the chart · Measured Lab · CC BY 4.0
TaskGPT-5.4 Mini, per taskQwen3.8 27B, per taskGPT-5.4 Mini, per monthQwen3.8 27B, per monthGPT-5.4 Mini vs Qwen3.8 27B, per task
L1Micro-task (classification or strict JSON extraction)$0.0020per L1 task$0.0020per L1 task$29.57per month$29.20per month+1.3 %
L2Deep analysis over a 50,000-token document$0.133per L2 task$0.139per L2 task$1,938.15per month$2,032.32per month−4.6 %
L3Agentic coding loop, 15 steps$1.03per L3 task$1.09per L3 task$14,996.02per month$15,890.64per month−5.6 %

Calculated Per month: 20 tasks an hour around the clock, 730 hours.

Prices USD per 1M tokens

PriceGPT-5.4 MiniQwen3.8 27B
Input, per 1M tokens$0.750$0.800
Output, per 1M tokens$4.50$4.00
Price fromProvider's price list · source page PublishedProvider's price list · source page Published
Read · the United States · the United States
Context window400,000 tokens1,024,000 tokens

What can I use it for? six common tasks, our data checks

Quality on your task: not measured by Measured Lab yet.

TaskGPT-5.4 MiniQwen3.8 27B
Answer customer messagesFits on price and context—
Pull data from invoices and documents with strict JSON and page imagesFits on price and context—
Summarize documents and meetingsFits on price and context—
Translate contentFits on price and context—
Chat assistant on your websiteFits on price and context—
Write and review code with tool callsFits on price and context—
Tasks it fits6 of 6—

Checks of our data for six common tasks: a published price, a context window and answer length for the task and, where the task needs them, strict JSON output, page images and tool calls; prices, cost a month and terms for each model on its model card. Qwen3.8 27B is not in the model picker. Compare models for your own task in the model picker.

Speed in the US Observed our test requests

In our test requests from the United States, the median time to the first answer token was 663 ms for GPT-5.4 Mini (Direct API · OpenAI) and 139 ms for Qwen3.8 27B (Hosted by Cerebras).

Model and routeTime to first answer token, medianOutput speed, medianAnswers
GPT-5.4 MiniDirect API · OpenAI663 ms range 319 ms–30,568 ms156 tokens/s range 47.6 tokens/s–265 tokens/s120 answers on 23 dates
Qwen3.8 27BHosted by Cerebras139 ms range 98 ms–16,848 ms610 tokens/s range 199 tokens/s–627 tokens/s115 answers on 23 dates
Qwen3.8 27BHosted by Groq195 ms range 102 ms–1,095 ms494 tokens/s range 210 tokens/s–528 tokens/s115 answers on 23 dates

The same short request to every model, sent from a measurement point in the United States; medians of successful answers on at least 2 different dates, latest on . How we measure

What breaks when you switch Published provider documentation

Moving from OpenAI to Qwen, 3 of the 5 features may not carry over, by each provider’s documentation:

  • Strict JSON schemas — OpenAI: yes; Qwen: partly. Code that parses answers without checks starts failing where a provider promises only valid JSON, not your schema.
  • Streamed tool arguments — OpenAI: yes; Qwen: not stated. An interface that shows arguments as they are written sees nothing until the whole call is ready.
  • Cache covers tool definitions — OpenAI: yes; Qwen: not stated. Where the cache does not cover tool definitions, a long tool list is paid as fresh input on every request.

Moving from Qwen to OpenAI: every feature that Qwen’s documentation lists as supported is also listed as supported by OpenAI.

Feature of the APIOpenAIQwen
Strict JSON schemasYesPartly
Parallel tool callsYesYes
Streamed tool argumentsYesNot stated
Reasoning with toolsYesYes
Cache covers tool definitionsYesNot stated

What each provider’s own API documentation says, read ; “not stated” is not the same as “no”. Quotes and sources: what breaks when you switch AI APIs.

Price changes in the last 30 days

  • The listed price of Qwen3.8 27B changed on on OpenRouter: input $0.24 → $0.04, output $2.20 → $1.35 per 1M tokens.
  • The listed price of Qwen3.8 27B changed on on OpenRouter: input $0.04 → $0.20, output $1.35 → $2.50 per 1M tokens.
  • The listed price of Qwen3.8 27B changed on on OpenRouter: input $0.20 → $0.04, output $2.50 → $1.25 per 1M tokens.
  • The listed price of Qwen3.8 27B changed on on OpenRouter: input $0.04 → $0.15, output $1.25 → $1.88 per 1M tokens.

All model comparisons · How we check prices

Explore the numbers

Calculated from published rates

The same work. Two bills.

Input and visible output are priced separately for the same task.

$0.0064L2 task differenceQwen3.8 27B more
$94.17L2 monthly differenceAssumption: 20 tasks/hour × 730 hours
524 msMedian wait differenceQwen3.8 27B starts sooner
GPT-5.4 Mini$0.133Qwen3.8 27B$0.139$0.00$0.05$0.10$0.15GPT-5.4 Mini$0.133Qwen3.8 27B$0.139$0.00$0.05$0.10$0.15
Fresh inputVisible output

159,000 input + 3,000 visible output tokens per task. No cache discount; hidden reasoning excluded.

Qwen3.8 27B costs $0.0064 more per task.

GPT-5.4 Mini$0.0020Qwen3.8 27B$0.0020$0.00$0.001$0.002$0.003GPT-5.4 Mini$0.0020Qwen3.8 27B$0.0020$0.00$0.001$0.002$0.003
Fresh inputVisible output

1,500 input + 200 visible output tokens per task. No cache discount; hidden reasoning excluded.

Qwen3.8 27B costs $0.0000 less per task.

GPT-5.4 Mini$1.03Qwen3.8 27B$1.09$0.00$0.50$1.00$1.50GPT-5.4 Mini$1.03Qwen3.8 27B$1.09$0.00$0.50$1.00$1.50
Fresh inputVisible output

1,315,500 input + 9,000 visible output tokens per task. No cache discount; hidden reasoning excluded.

Qwen3.8 27B costs $0.061 more per task.

GPT-5.4 Mini$1,938.15Qwen3.8 27B$2,032.32$0$1,000$2,000$3,000GPT-5.4 Mini$1,938.15Qwen3.8 27B$2,032.32$0$1,000$2,000$3,000
Fresh inputVisible output

Assumption: 20 tasks/hour × 730 hours = 14,600 tasks/month.

Observed · United States

Wait and streaming speed

The same short request. Each route must have successful answers on at least two dates.

GPT-5.4 Mini

Direct API · OpenAI · 120 answers on 23 dates.

First answer token 663 ms
Other published US routes · medians0.010.020.030.040.0secondsNearest US route medians0.010.020.030.040.0seconds

Nearby: Qwen3.8 27B · 139 ms.

GPT-5.4 Mini · 663 ms median; observed range 319 ms–30.57 s.

Output speed 156 tokens/s
Other published US routes · medians0200400600800tokens/sNearest US route medians0200400600800tokens/s

Nearby: Qwen3.8 27B · 610 tokens/s.

GPT-5.4 Mini · 156 tokens/s median; observed range 47.6 tokens/s–265 tokens/s.

Observed · independent medians

More output than the answer shows.

Visible answer64Hidden reasoning0020406080Visible answer64Hidden reasoning0020406080

Calculated median cost per request: $0.000557.

Visible outputHidden reasoning

Visible output and hidden reasoning are independent medians and are not added together. Request cost is the median of individually priced requests. Hidden reasoning is billed at the output rate.

Published context window: 400,000 tokens.

Qwen3.8 27B

Hosted by Cerebras · 115 answers on 23 dates.

First answer token 139 ms
Other published US routes · medians0.010.020.030.040.0secondsNearest US route medians0.010.020.030.040.0seconds

Nearby: GPT-5.4 Mini · 663 ms.

Qwen3.8 27B · 139 ms median; observed range 98 ms–16.85 s.

Output speed 610 tokens/s
Other published US routes · medians0200400600800tokens/sNearest US route medians0200400600800tokens/s

Nearby: GPT-5.4 Mini · 156 tokens/s.

Qwen3.8 27B · 610 tokens/s median; observed range 199 tokens/s–627 tokens/s.

Observed · independent medians

More output than the answer shows.

Visible answer64Hidden reasoning0020406080Visible answer64Hidden reasoning0020406080

Calculated median cost per request: $0.00023.

Visible outputHidden reasoning

Visible output and hidden reasoning are independent medians and are not added together. Request cost is the median of individually priced requests. Hidden reasoning is billed at the output rate.

Published context window: 1,024,000 tokens.

Published · provider documentation

What changes when you switch

A matching feature list does not measure migration quality. “Not stated” is not the same as “No”.

Feature of the APIOpenAIQwen
Strict JSON schemasYesPartly
Parallel tool callsYesYes
Streamed tool argumentsYesNot stated
Reasoning with toolsYesYes
Cache covers tool definitionsYesNot stated

OpenAI → Qwen: Review Strict JSON schemas, Streamed tool arguments, Cache covers tool definitions.

Qwen → OpenAI: The documented supported features carry over.

Read the dated documentation and feature details.

Sources: this page; published model prices (data (JSON)); task assumptions (data (JSON)). Published prices · Observed responses · Calculated scenarios · Assumptions stated with each chart.