GPT-5 Mini

openai/gpt-5-mini
VisionToolsJSONReasoning
by OpenAI · 2025-08-07

GPT-5 Mini is a compact version of GPT-5, designed to handle lighter-weight reasoning tasks. It provides the same instruction-following and safety-tuning benefits as GPT-5, but with reduced latency and cost....

ctx400K tokens
Max output128K
Inputtext + image + file
Outputtext
p50 TTFT1.65 s
INPUT$0.25/ 1M tokens
OUTPUT$2.00/ 1M tokens
p50 TTFT1.65 s7d
p95 TTFT10.00 s7d
TRAFFIC6.3Mtokens / 7d

GPT-5 Mini is a language model by OpenAI designed for tasks that benefit from a large context window and strong mathematical reasoning. With 400,000 tokens of context and 128,000 tokens for output,…

What is GPT-5 Mini and who is it for?

What input modalities does GPT-5 Mini support?

How large is the context window and why does it matter?

What is the provider and how is pricing structured?

Code samples

Call from any SDK

OpenAI-compatible — keep the SDK you already use

  • OpenAI SDKhttps://api.orcarouter.ai/v1
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.orcarouter.ai/v1",
    api_key=os.environ["ORCAROUTER_API_KEY"],
)

response = client.chat.completions.create(
    model="openai/gpt-5-mini",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Supported parameters

  • include_reasoning
  • max_completion_tokens
  • max_tokens
  • reasoning
  • response_format
  • seed
  • stream
  • structured_outputs
  • tool_choice
  • tools

Pricing

Pricing
Input / 1M tokens$0.250
Output / 1M tokens$2.00
Cache read / 1M$0.025
CurrencyUSD

Cost calculator

Tokens / month10MM
Input share70%%
Estimated / month $7.75 · With prompt caching $6.96

Estimate based on list price

Token & cost estimator

Input tokens: 20Cost per request: $0.001005

Estimate only — actual token counts depend on the provider's tokenizer.

Compare monthly costs across models in the LLM cost calculator

Performance

p50 TTFT
1.65 s
Output speed
252 tok/s
p95 TTFT
10.00 s
Error rate
3.3%

Public benchmarks

15.6
AA Coding
Better than 9% of models compared
#125 of 138
16.8
AA Intelligence
Better than 26% of models compared
#110 of 150
90.7
AA Math
Better than 78% of models compared
#17 of 82
AIME 2025
90.7
GPQA Diamond
82.8
Humanity's Last Exam
21.5
IFBench
75.4
LiveCodeBench
83.8
Long-Context Recall
72.3
MMLU-Pro
83.7
SciCode
39.0
tau_banking
15.5
TerminalBench Hard
33.3
terminalbench_v2_1
3.7
τ²-Bench
68.4
Source: artificialanalysis.ai

Community buzz

What developers are saying this week

Hacker News4 mentions · 7dup 2 vs the previous week

How it compares

GPT-5 MiniGPT-5.2 ProGPT-5.4 ProGPT-5.5
Input $/M$0.25$21.00$60.00$5.00
Output $/M$2.00$168.00$270.00$30.00
Context400K400K1.1M—
Quality7/1010/1010/1010/10
Compare side-by-sideCompare side-by-sideCompare side-by-sideCompare side-by-side

FAQ

What is the cost per token for GPT-5 Mini on OrcaRouter?
Pricing is $0.25 per 1 million input tokens and $2.00 per 1 million output tokens, billed at provider rate with zero markup.
What is the context window size of GPT-5 Mini?
The context window is 400,000 tokens for input, with a maximum output of 128,000 tokens.
What are the main strengths of GPT-5 Mini?
Its headline strength is a 90.7 score on AA Math benchmark, indicating strong mathematical reasoning. It also offers a 400K context window and accepts text, image, and file inputs.
How does GPT-5 Mini compare to GPT-4o?
GPT-5 Mini has a larger context (400K vs 128K) and lower pricing. GPT-4o may have broader capabilities, but GPT-5 Mini excels in math and long-context tasks.
Does OrcaRouter add any markup to the pricing?
No, OrcaRouter charges the provider rate with zero markup. You pay exactly $0.25/M input and $2.00/M output tokens.
How do I call GPT-5 Mini via the OrcaRouter API?
Use base URL https://api.orcarouter.ai/v1 and set model parameter to "openai/gpt-5-mini". The API is OpenAI-compatible.
Can GPT-5 Mini process images and files?
Yes, it accepts text, image, and file inputs. These modalities are tokenized and count toward the 400K context window.
What is the maximum output length?
The maximum output is 128,000 tokens per request.
Is there any caching discount available?
The provided data does not mention caching discounts. Pricing is per-token pay-as-you-go.
What benchmarks are available for GPT-5 Mini?
Only the AA Math benchmark is provided: a score of 90.7. No other benchmark results are mentioned.

Embed this badge

OpenAI: GPT-5 Mini•$0.25/M in•1647ms p50•via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/openai/gpt-5-mini" target="_blank"> <img src="https://www.orcarouter.ai/embed/openai/gpt-5-mini.svg" alt="OpenAI: GPT-5 Mini on OrcaRouter" /> </a>
Markdown [![OpenAI: GPT-5 Mini](https://www.orcarouter.ai/embed/openai/gpt-5-mini.svg)](https://www.orcarouter.ai/models/openai/gpt-5-mini)

Model card as data

GET /api/public/models/openai/gpt-5-miniOpen
Machine-readable:/llms.txt/llms-full.txt