openai/gpt-5-nano-2025-08-07

openai/gpt-5-nano-2025-08-07
ZDR
VisionToolsJSONReasoning
by openai

OpenAI GPT-5 Nano (model revision 2025-08-07) is a lightweight variant of the GPT-5 series designed for efficient long-context reasoning. It supports a 400,000-token context window and can output up to 128,000 tokens per generation. Input modalities include text, images, and files, making it suitable for multi-modal document analysis. On the AA Math benchmark, it scores 83.7, indicating strong mathematical reasoning capability for a model of its size.\n\nGPT-5 Nano is accessed through OrcaRouter's OpenAI-compatible API at the standard `/v1` endpoint. Pricing is $0.05 per 1 million input tokens and $0.40 per 1 million output tokens, billed at provider rate with zero markup. This combination of long context, modest cost, and multi-modal input makes it well suited for tasks that require processing large documents, reasoning over images, or handling file-based workflows without exceeding tight budgets.

Max output128K
Inputtext + image + file
Outputtext
Data retentionZero Data Retention available. With ZDR on, requests go only to providers with a zero-retention agreement.
Runs inEuropean Union
Context window400Ktokens
INPUT$0.05/ 1M tokens
OUTPUT$0.40/ 1M tokens
p50 TTFTCollecting…
p95 TTFTCollecting…
TRAFFICCollecting…

Pricing

Pricing
Input / 1M tokens$0.050
Output / 1M tokens$0.400
Cache read / 1M$0.0050
CurrencyUSD

Cost calculator

Tokens / month2MM
Input share80%%
Estimated / month $0.240 · With prompt caching $0.204

1.6M input × $0.05/M + 400K output × $0.4/M

Prompt caching assumes half of the input tokens are read from cache at $0.005/M.

Estimate based on list price

Per-request examples
ScenarioInput / output tokensPer requestPer 1,000 requests
Chat reply200 / 300$0.0001$0.130
Summarize a long doc30K / 1K$0.0019$1.90
Code review8K / 2K$0.0012$1.20

Token & cost estimator

Input tokens: 20Cost per request: $0.000201

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

Code samples

Use an OpenAI-compatible SDK or send an HTTP request. Get API key

API key
export ORCAROUTER_API_KEY=…
Base URL
https://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-nano-2025-08-07",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Example response

{
  "id": "chatcmpl-…",
  "object": "chat.completion",
  "created": 1763280000,
  "model": "openai/gpt-5-nano-2025-08-07",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help you today?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 9,
    "completion_tokens": 10,
    "total_tokens": 19
  }
}
  • choices[0].message.content — the model's answer.
  • finish_reason — "stop" means the answer is complete; "length" means it was cut off at max_tokens.
  • usage — the input and output tokens this call is billed for.

An HTTP 200 with finish_reason "stop" means the call succeeded.

Supported parameters

ParameterWhat it does
max_tokensUpper limit on the number of tokens the model generates.
toolsFunctions the model may call, described as JSON Schema.
response_formatForce JSON output, optionally matching a JSON Schema.
max_completion_tokensUpper limit on generated tokens, reasoning tokens included.
tool_choiceWhether the model must, may or must not call a tool.

Full API reference

Use cases and examples

  • Long context — 400K-token context window: whole codebases, long reports or chat histories in one request.
  • Multimodal input — Takes text + image + file in one request.
  • Agents and tool use — Calls the functions you define, for agents and tool workflows.
  • Structured extraction — Returns JSON that follows your schema, for pulling fields out of text.
  • Reasoning — Works through a problem before answering: math, science and multi-step tasks.
  • Analyzing and summarizing large documents (e.g., 400K-token legal briefs, research papers)
  • Multi-modal reasoning over image and file inputs (e.g., chart interpretation, scanned forms)
  • Educational math problem solving with long step-by-step output
  • Cost-sensitive applications that need a balance of context length and reasoning capability
  • File-based data extraction and transformation pipelines

Performance

p50 TTFTTime to first token for a typical request: half of requests got their first token faster than this.
Collecting…
Output speedHow many tokens per second the model streams once it starts answering.
Collecting…
p95 TTFTTime to first token for a slow request: 95% of requests got their first token faster than this.
Collecting…
Error rateShare of requests to this model on OrcaRouter that ended in an error over the window.
100.0%

Benchmarks

OrcaRouter leaderboard
20.3
AA CodingArtificial Analysis Coding Index: one 0–100 score that combines its coding evaluations.
Better than 17% of models compared
#113 of 138
13.0
AA IntelligenceArtificial Analysis Intelligence Index: one 0–100 score that combines its evaluations of reasoning, knowledge, math and coding.
Better than 20% of models compared
#122 of 153
83.7
AA MathArtificial Analysis Math Index: one 0–100 score that combines its competition-math evaluations.
Better than 72% of models compared
#22 of 82
AIME 2025AIME: problems from the American Invitational Mathematics Examination, a high-school olympiad qualifier.
83.7#22 of 52
GPQA DiamondGPQA Diamond: graduate-level biology, physics and chemistry questions written to be hard to look up.
67.6#107 of 137
Humanity's Last ExamHumanity's Last Exam: expert-written questions at the frontier of human knowledge, across dozens of subjects.
9.5#112 of 141
IFBenchIFBench: how precisely the model follows new, checkable instructions about the shape of its answer.
67.6#59 of 104
LiveCodeBenchLiveCodeBench: recent competitive-programming problems, published after most models were trained.
78.9#23 of 56
Long-Context RecallLong-Context Recall: answering questions that need facts found and combined across long documents.
45.0#121 of 136
MMLU-ProMMLU-Pro: hard ten-option multiple-choice questions across 14 academic subjects.
78.0#42 of 91
SciCodeSciCode: writing code that solves research-level problems in physics, chemistry, biology and math.
36.6#116 of 141
TerminalBench HardTerminal-Bench: finishing real tasks in a command-line environment, such as building, debugging and configuring software.
12.1#85 of 99
τ²-Benchτ²-Bench: acting as a customer-service agent that uses tools and follows policy while talking to a simulated user.
36.5#91 of 104
Source: artificialanalysis.ai

Human preference and real-world tasks

34.8%
SWE-bench VerifiedSWE-bench Verified: the share of real GitHub issues, checked by human annotators, that the model resolves.
#24 of 29
Source: swebench.com

Compare models

openai/gpt-5-nano-2025-08-07GPT-5.2 ProGPT-5.4 ProGPT-5.5
Input $/M$0.05$21.00$60.00$5.00
Output $/M$0.40$168.00$270.00$30.00
Context400K400K1.1M—
Quality4/1010/1010/1010/10
Compare side-by-sideCompare side-by-sideCompare side-by-sideCompare side-by-side

FAQ

What is the cost per million tokens for GPT-5 Nano?
Input tokens: $0.05 per 1M tokens. Output tokens: $0.40 per 1M tokens. These are the provider rates passed through by OrcaRouter with zero markup.
What is the context window of GPT-5 Nano?
400,000 tokens total for input (including text, images, and file tokens). Maximum output is 128,000 tokens per generation.
What are GPT-5 Nano’s main strengths?
Very long context (400K), multi-modal input (text/image/file), large output (128K), strong math reasoning (83.7 AA Math), and low input cost.
How does GPT-5 Nano compare to larger GPT-5 models?
GPT-5 Nano is smaller and cheaper but doesn't achieve the highest scores on non-math benchmarks. Larger Pro models have higher accuracy at higher cost.
Does OrcaRouter guarantee zero markup on GPT-5 Nano pricing?
Yes, OrcaRouter bills at the OpenAI provider rate with zero markup. You pay exactly $0.05/1M input and $0.40/1M output.
What data handling policy applies to GPT-5 Nano via OrcaRouter?
OpenAI’s API data policy applies—your data is not used for training. OrcaRouter does not retain prompts beyond standard billing logs. See OrcaRouter’s privacy policy for details.
How do I call GPT-5 Nano using an OpenAI-compatible API?
Set base URL to https://api.orcarouter.ai/v1, model ID "openai/gpt-5-nano-2025-08-07", and use standard chat completions parameters. Replace your API key with an OrcaRouter key.
Can GPT-5 Nano process images and files?
Yes, it supports text, image, and file inputs. Images and files are tokenized and count toward the 400K context limit.
What is the maximum output length?
Up to 128,000 tokens. Use the max_tokens parameter to control output length.
Is GPT-5 Nano good for math problems?
Yes, its AA Math score of 83.7 indicates strong mathematical reasoning, suitable for arithmetic, algebra, and word problems.

Embed this badge

openai/gpt-5-nano-2025-08-07•$0.05/M in•—•via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/openai/gpt-5-nano-2025-08-07" target="_blank"> <img src="https://www.orcarouter.ai/embed/openai/gpt-5-nano-2025-08-07.svg" alt="openai/gpt-5-nano-2025-08-07 on OrcaRouter" /> </a>
Markdown [![openai/gpt-5-nano-2025-08-07](https://www.orcarouter.ai/embed/openai/gpt-5-nano-2025-08-07.svg)](https://www.orcarouter.ai/models/openai/gpt-5-nano-2025-08-07)

Model card as data

GET /api/public/models/openai/gpt-5-nano-2025-08-07Open
Machine-readable:/llms.txt/llms-full.txt