Menu

Cost per task, not per token: a Python calculator for Qwen 4 Max vs GPT-6 Sol, including the 272K-token price step
📰

Cost per task, not per token: a Python calculator for Qwen 4 Max vs GPT-6 Sol, including the 272K-token price step

DEV Community: python·Super Lewis·about 20 hours ago
#VsQo5mds
#devtopython#devto#dev#output#tokens
Reading 0:00
15s threshold

Price per token is a poor guide to what a language model costs you. Qwen 4 Max lists below GPT-6 Sol on every line, yet cost more than twice as much on my seven test tasks, because it emits about five times the output tokens. Past 272,000 input tokens the result reverses. This post gives a calculator that handles both effects.

Disclosure: the measurements come from apimodels.app, which is the API I work on. apimodels.app is a multi-model API gateway: one key and one OpenAI-compatible endpoint for image, video, audio and language models. I wrote this from my own test data, with AI assistance for drafting and editing.

The pricing rules

List prices per million tokens, checked on November 17, 2026:

Qwen 4 Max: $1.50 input, $4.50 output, flat across a one-million-token context

GPT-6 Sol: $2 input, $10 output. Above 272,000 tokens the whole request is billed at $4 input and $15 output

The step applies to the entire request, not just the overflow.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.