Models

GPT-5.1-Codex vs Qwen3.8 Max Preview

Output tokens cost $10.00 per million on GPT-5.1-Codex and $1.01 per million on Qwen3.8 Max Preview. Input tokens cost $1.25 per million on GPT-5.1-Codex and $0.34 per million on Qwen3.8 Max Preview. Cached input tokens are billed at $0.13 per million on GPT-5.1-Codex and $0.03 per million on Qwen3.8 Max Preview. Context lengths are 400,000 tokens on GPT-5.1-Codex and 983,616 tokens on Qwen3.8 Max Preview. Time to first token (TTFT) measured on AIHubMix is 0.6s on GPT-5.1-Codex and 2.4s on Qwen3.8 Max Preview. Measured output throughput is 81.5 tok/s on GPT-5.1-Codex and 48.1 tok/s on Qwen3.8 Max Preview.

OpenAIGPT-5.1-CodexQwenQwen3.8 Max Preview
OpenAI logo
GPT-5.1-Codex
OpenAI · text, image → text

GPT-5.1-Codex is a version of GPT-5 optimized for agentic coding tasks in Codex or similar environments. It's available in the Responses API only and the underlying model snapshot will be regularly updated.

Input$1.25 /M
Output$10.00 /M
Qwen logo
Qwen3.8 Max Preview
Qwen · text, image → text

Qwen 3.8 Max Preview(Qwen3.8-Max-Preview) is the latest-generation foundation model in the Qwen family, packing 2.4T parameters and still evolving. Compared with the previous flagship Qwen 3.7 Max, it delivers major gains in core capabilities like Coding and Cowork (professional productivity), with world-leading performance on complex, long-horizon tasks such as full-stack development, data analysis, and Office workflows. Launch offer: Credits are consumed at just 20% of the standard rate, effectively 5× your usage. Limited time only.

Input$0.34 /M
Output$1.01 /M

Pricing & Specifications

Prices are per million tokens. Time to First Token and throughput are rolling averages measured on AIHubMix.

GPT-5.1-Codex
Qwen3.8 Max Preview
Input /M
$1.25
$0.34
Output /M
$10.00
$1.01
Cache read /M
$0.13
$0.03
Context length
400,000
983,616
Max output
128,000
131,072
Time to First Token
0.6 s
2.4 s
Throughput
81.5 tok/s
48.1 tok/s
Modalities
textimage
textimage
Supported Parameters
thinkingfunction callingstructured outputs
toolsfunction callingstructured outputsweblong contextthinking
API Formats
Released
-
-

Promotional prices show the discounted rate; see each model page for promotion windows.

Activity Past 30 Days

Daily traffic served through AIHubMix — how demand for each model is trending.

gpt-5.1-codexqwen3.8-max-preview

Tokens / day

-

Requests / day

-

Performance Past 3 Days

Measured on real AIHubMix traffic, hourly buckets. Gaps mean no traffic in that hour.

gpt-5.1-codexqwen3.8-max-preview

Throughput (tok/s)

-

TTFT (s)

-

Uptime (%)

-

LMArena Benchmarks

LMArena ratings by capability (Bradley-Terry, commonly called Elo). Higher is better.

WebDev Arena
gpt-5.1-codexqwen3.8-max-preview
1300142015401660
Overall
13301669
React
16781678
HTML
13371628
Gaming
17331733
Simulations
16651665
Data analytics
16141614

Source: LMArena (arena.ai) leaderboard, imported by AIHubMix. Models without published ratings are omitted per chart.

Cost calculator

Estimate your monthly bill for the same workload on each model.

Qwen3.8 Max Preview
$35.49 /mo
GPT-5.1-Codex
$225 /mo

Monthly = daily × 30. Discounted rates applied where a promotion is active.

FAQ

Which is cheaper: GPT-5.1-Codex, Qwen3.8 Max Preview?

Qwen3.8 Max Preview: $1.01/M output tokens; GPT-5.1-Codex: $10.00/M. Use the cost calculator above to estimate your own workload.

Which responds faster?

GPT-5.1-Codex: 0.6s time to first token measured on AIHubMix; see the live performance charts above for how each model behaves across the day.

How large is each context window?

GPT-5.1-Codex accepts 400,000 and Qwen3.8 Max Preview accepts 983,616 input tokens. Maximum output per request is 128,000 tokens on GPT-5.1-Codex and 131,072 tokens on Qwen3.8 Max Preview.

Which one generates tokens faster?

GPT-5.1-Codex at 81.5 tok/s and Qwen3.8 Max Preview at 48.1 tok/s, measured as output throughput on AIHubMix — a separate metric from time to first token.

What inputs and capabilities does each model support?

GPT-5.1-Codex accepts text and image input and supports thinking, function calling and structured outputs; Qwen3.8 Max Preview accepts text and image input and supports tool calling, function calling, structured outputs, web search, long context and thinking.

Can I call GPT-5.1-Codex and Qwen3.8 Max Preview with the same API key?

Yes. AIHubMix serves every model on this page behind one OpenAI-compatible endpoint, so switching between them is a one-line change to the model field — no second account, key or SDK.

Popular comparisons

Related model match-ups readers also look at.