GPT-5.2

openai/gpt-5.2
VisionToolsJSONReasoning
by OpenAI · 2025-12-10

GPT-5.2 is the latest frontier-grade model in the GPT-5 series, offering stronger agentic and long context perfomance compared to GPT-5.1. It uses adaptive reasoning to allocate computation dynamically, responding quickly...

ctx400K tokens
Max output128K
Inputfile + image + text
Outputtext
p50 TTFT1.66 s
INPUT$1.75/ 1M tokens
OUTPUT$14.00/ 1M tokens
p50 TTFT1.66 s7d
p95 TTFT4.56 s7d
TRAFFIC2.9Mtokens / 7d

OpenAI GPT-5.2 is a large language model developed by OpenAI, available through OrcaRouter's API. It supports text, image, and file inputs, and can generate up to 128,000 tokens. The model's context…

What is OpenAI GPT-5.2?

Who should use GPT-5.2?

How does GPT-5.2 handle file and image inputs?

What output length can GPT-5.2 produce?

Code samples

Call from any SDK

OpenAI-compatible — keep the SDK you already use

  • OpenAI SDKhttps://api.orcarouter.ai/v1
from openai import OpenAI

client = OpenAI(
    base_url="https://api.orcarouter.ai/v1",
    api_key="$ORCAROUTER_API_KEY",
)

response = client.chat.completions.create(
    model="openai/gpt-5.2",
    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

Input / 1M tokens$1.75
Output / 1M tokens$14.00
Cache read / 1M$0.175
CurrencyUSD

Cost calculator

Tokens / month10MM
Input share70%%
Estimated / month $54.25 · With prompt caching $48.74

Estimate based on list price

Token & cost estimator

Input tokens: 20Cost per request: $0.007035

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

Performance

p50 TTFT
1.66 s
Output speed
223 tok/s
p95 TTFT
4.56 s
Error rate
0%

Public benchmarks

48.7
AA Coding
Better than 65% of models compared
#35 of 106
51.3
AA Intelligence
Better than 67% of models compared
#34 of 110
99.0
AA Math
Better than 96% of models compared
#1 of 81
AIME 2025
99.0
GPQA Diamond
90.3
Humanity's Last Exam
35.4
IFBench
75.4
LiveCodeBench
88.9
Long-Context Recall
72.7
MMLU-Pro
87.4
SciCode
52.1
TerminalBench Hard
47.0
τ²-Bench
84.8
Source: artificialanalysis.ai

How it compares

GPT-5.2GPT-5.2 ProGPT-5.4 ProGPT-5.5
Input $/M$1.75$21.00$60.00$5.00
Output $/M$14.00$168.00$270.00$30.00
Context400K400K1.1M
Quality9/1010/1010/1010/10
Compare side-by-sideCompare side-by-sideCompare side-by-sideCompare side-by-side

FAQ

How much does GPT-5.2 cost on OrcaRouter?
GPT-5.2 costs $1.75 per 1 million input tokens and $14.00 per 1 million output tokens, with zero markup from OrcaRouter.
What context window does GPT-5.2 support?
GPT-5.2 supports a context window of 400,000 tokens, including input and output. The maximum output length is 128,000 tokens.
What are the strengths of GPT-5.2?
Its primary strength is mathematical reasoning, as evidenced by a score of 99.0 on the AA Math benchmark. It also excels at long-context tasks and multimodal understanding with file, image, and text inputs.
How does GPT-5.2 compare to GPT-4o?
GPT-5.2 has a larger context window (400K vs 128K), higher max output (128K vs 4K), and better math performance (99.0 vs lower scores). It is more expensive per token.
Does OrcaRouter train on my data when I use GPT-5.2?
OrcaRouter does not use your data for training unless explicitly stated in your agreement. The model is accessed via API and data is processed in transit; refer to OrcaRouter's privacy policy for details.
How do I call GPT-5.2 via the OrcaRouter API?
Set the base URL to https://api.orcarouter.ai/v1 and use model ID "openai/gpt-5.2". The API is fully OpenAI-compatible; you can use the same client libraries.
Can I use GPT-5.2 for free?
No, GPT-5.2 is a paid model. There is no free tier on OrcaRouter; you must have an account with credits or a billing plan.
What input formats does GPT-5.2 accept?
It accepts text, image, and file inputs. Files can be any type that can be tokenized, and images are processed as part of the context.
Is there a limit on how many tokens I can generate in one response?
Yes, the maximum output tokens is 128,000. You can control the output length using the max_tokens parameter in your API request.
What should I do if GPT-5.2's cost is too high for my use case?
Consider using a smaller or older model like GPT-4o-mini or GPT-4o, which have lower per-token pricing. OrcaRouter offers many alternatives within the same API.

Embed this badge

OpenAI: GPT-5.2$1.75/M in1661ms p50via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/openai/gpt-5.2" target="_blank"> <img src="https://www.orcarouter.ai/embed/openai/gpt-5.2.svg" alt="OpenAI: GPT-5.2 on OrcaRouter" /> </a>
Markdown [![OpenAI: GPT-5.2](https://www.orcarouter.ai/embed/openai/gpt-5.2.svg)](https://www.orcarouter.ai/models/openai/gpt-5.2)

Model card as data

GET /api/public/models/openai/gpt-5.2Open
Machine-readable:/llms.txt/llms-full.txt