Reasoning models (also called thinking models) work through a problem step by step before they write the answer. That extra thinking makes them better at math, multi-step logic, planning and hard coding tasks. It also costs more, because the thinking is made of tokens, and you pay for them.
How reasoning is billed
Reasoning tokens are billed as output tokens, at the model's output rate, even when the API does not show you the reasoning text. A short final answer can still use thousands of reasoning tokens behind it. Check the usage field to see the real count:
resp = client.chat.completions.create(model="gpt-6.2-sol", messages=messages)
u = resp.usage
print(u.completion_tokens, getattr(u, "completion_tokens_details", None))
# completion_tokens_details.reasoning_tokens is the hidden thinking part
On AIDiscount, the Usage page in the dashboard shows the output tokens charged for each request, reasoning included.
The reasoning effort setting
Most reasoning models let you choose how hard they think. Lower effort means fewer reasoning tokens, a faster first token and a lower bill. Higher effort helps on hard problems and wastes money on easy ones.
OpenAI-compatible format:
resp = client.chat.completions.create(
model="gpt-6.2-sol",
reasoning_effort="low",
messages=[{"role": "user", "content": "Classify this ticket as billing, bug or other: ..."}],
)
The accepted values differ by model. Some accept low, medium and high, some add xhigh or max, and some accept none to turn thinking off. A model's page in the marketplace lists the values it supports.
Anthropic Messages format uses a thinking budget in tokens on models that support it:
resp = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=8000,
thinking={"type": "enabled", "budget_tokens": 4000},
messages=[{"role": "user", "content": "Plan a database migration for ..."}],
)
The budget must be smaller than max_tokens, because thinking and the answer share the same output limit. Some newer Claude models use an effort setting instead of a token budget; the model page shows which one applies.
When to use which
| Task | Suggested setting |
|---|---|
| Classification, extraction, translation, short summaries | A normal model, or reasoning off or low |
| Chat and writing | Low or medium |
| Multi-step coding, debugging, data analysis | Medium or high |
| Hard math, proofs, complex planning | High or above |
Start low and raise the effort only when answers are wrong. Test on a sample of your real requests. The right setting depends on the task far more than on the model.
Things to watch
- Leave room in
max_tokens. If the limit is too small, the model can spend it all on thinking and return an empty or cut-off answer. - Expect slower first tokens. The model thinks before it writes. Use streaming so users see progress, and set client timeouts long enough for high effort.
- Some parameters are fixed while thinking. Several models reject a custom
temperaturewhen reasoning is on. Leave it at the default. - Do not ask for "step by step" on top. A reasoning model already does this internally. Asking for visible steps adds output tokens without improving the answer.
Current prices
Since reasoning is billed as output, compare models by their output price when you plan to use high effort:
| Model | Input / 1M tokens | Output / 1M tokens | vs. official price |
|---|---|---|---|
GPT-6.2 Solgpt-6.2-sol | $0.20 | $1.00 | 90% off |
Claude Sonnet 5.5claude-sonnet-5-5 | $0.15 | $0.75 | 92.5% off |
DeepSeek V4 Prodeepseek-v4-pro | $0.3857 | $1.1571 | 41.6% off |
DeepSeek V4.1 Flash 1017deepseek-flash | $0.0857 | $0.3429 | 42.9% off |
GLM-5.3glm-5.3 | $0.6857 | $2.40 | 45.5% off |
Create a free accountRead the API docs