APIMart
Back to all models

GPT-5.2 Pro API

OpenAIModel ID gpt-5.2-proText modelReleased December 11, 2025

Use GPT-5.2 Pro to check a proof step by step, stress-test an analysis before it goes to a client, or dig up a hard-to-find fact with search.

Max input
272,000 tokens
Max output
128,000 tokens
Input → output
Text, Image → Text
Knowledge cutoff
August 31, 2025
  • Image input
  • Streaming
  • OpenAI SDK compatible

GPT-5.2 Pro API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on GPT-5.2 Pro.

Try GPT-5.2 Pro with your own material

Checking proofs and derivations

Give GPT-5.2 Pro a proof or derivation and ask it to verify each step and name the first one that fails. Have a person confirm the flagged step before you change the result.

Example: Where does this proof go wrong?

Material

Claimed proof
Step 1: Let a = b. Step 2: a² = ab. Step 3: a² − b² = ab − b². Step 4: (a + b)(a − b) = b(a − b). Step 5: a + b = b. Step 6: so 2b = b and 2 = 1.

PromptCheck each step of the proof and name the first step that is not valid, with the reason.

Sample answer · written by hand to show the reasoning

Step 5 is the first invalid step. It divides both sides by (a − b), but a = b, so a − b = 0 and division by zero is not allowed. Steps 1–4 are valid; everything after step 5 follows from the error.

About the GPT-5.2 Pro API

  • More compute for harder problems

    GPT-5.2 Pro spends more compute thinking before it answers, for smarter and more precise results on difficult tasks.

  • 400K context, 128K output

    The context window is 400,000 tokens and the maximum output 128,000 tokens, with text and image input.

  • Slow by design

    Reasoning effort is medium, high or xhigh, and some requests take several minutes. It works only through the Responses API, so plan timeouts and send it only the requests that need it.

  • GPT-5.2 Pro API key and access

    You don’t need a separate GPT-5.2 Pro API key: one APIMart key works for every model. Send gpt-5.2-pro API requests with the model ID gpt-5.2-pro; GPT-5.2 Pro API pricing is in the table on this page.

GPT-5.2 Pro official benchmark results

Selected results OpenAI published at launch.

  • GPQA Diamond

    93.2%

    Graduate-level science questions without tools. Ahead of GPT-5.2 Thinking (92.4%).

  • HLE (with search, Python)

    50.0%

    Hard expert questions answered with tools. Ahead of GPT-5.2 Thinking (45.5%).

  • BrowseComp

    77.9%

    Agents searching the web for hard-to-find information. Ahead of GPT-5.2 Thinking (65.8%).

  • ARC-AGI-1 (Verified)

    90.5%

    Abstract reasoning puzzles. Ahead of GPT-5.2 Thinking (86.2%).

  • ARC-AGI-2 (Verified)

    54.2%

    Harder abstract reasoning puzzles, at high reasoning effort. Ahead of GPT-5.2 Thinking (52.9%).

  • HMMT, Feb 2025

    100%

    Competition math without tools. GPT-5.2 Thinking scored 99.4%.

How to call the GPT-5.2 Pro API

To call GPT-5.2 Pro, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-5.2-pro",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

GPT-5.2 Pro access details

Model IDgpt-5.2-pro
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

GPT-5.2 Pro API request parameters

GPT-5.2 Pro uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use gpt-5.2-pro for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

GPT-5.2 Pro API pricing

The GPT-5.2 Pro API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input168Credits~$16.8159.6Credits~$15.96151.2Credits~$15.12210Credits~$2120%
Output1344Credits~$134.41276.8Credits~$127.681209.6Credits~$120.961680Credits~$16820%

Prices are for reference only. View full pricing

Why call GPT-5.2 Pro API through APIMart

  • 20% below official pricing

    GPT-5.2 Pro API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below OpenAI's official prices.

    See membership prices
  • One API key for 500+ models

    GPT-5.2 Pro, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try GPT-5.2 Pro with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which OpenAI model should you choose?

Base prices per 1M tokens (USD). Your GPT-5.2 Pro API key works for every model in the table; just change the model parameter.

Differences between OpenAI models
ComparisonGPT-5.2 Pro CurrentGPT-4oGPT-4o miniGPT-4o-2024-11-20GPT-4.1GPT-4.1 minio3GPT-5GPT-5 miniGPT-5 nanoGPT-5 ProGPT-5 SearchGPT-5.1GPT-5.2GPT-5.3-CodexGPT-5.4GPT-5.4 miniGPT-5.4 nanoGPT-5.4 ProGPT-5.5GPT-5.6 LunaGPT-5.6 SolGPT-5.6 TerraGPT-6 AstraGPT-6 LunaGPT-6 SolGPT-6.1 SolGPT-6.1 TerraGPT-6.2 AstraGPT-6.2 Sol
Best forHard reasoning, More compute per request, Responses APIText and image input, Function calling and structured outputs, No reasoning step, fast repliesHigh-volume classification and extraction, Text and image input, Low-cost small modelNewest GPT-4o snapshot, Text and image input, No reasoning step, fast repliesInstruction following, Deprecated, 1M-token contextFast and low-cost, Deprecated, 1M-token contextDeep reasoning, Visual reasoning, Coding and technical writingCoding and agents, Deprecated, Reasoning effort minimal to highCost-efficient reasoning, Deprecated, 400K contextFastest and cheapest, Deprecated, ClassificationHard reasoning, Deprecated, Responses APIWeb search in Chat Completions, Searches before every answer, Text in, text outCoding and agents, Deprecated, Text and image inputProfessional work, Reasoning up to xhigh, Text and image inputAgentic coding, 400K context, Responses APICoding and professional work, 1.05M context, Text and image inputCoding and subagents, 400K context, Text and image inputClassification and extraction, Cheapest GPT-5.4 model, Text and image inputHard reasoning, More compute per request, Text and image inputCoding and professional work, 1.05M context, Reasoning from none to xhighHigh-volume tasks, Classification, Data extractionComplex professional work, Coding and debugging, Text and image inputBalanced cost, Support and review, Text and image inputComplex coding, Professional work, ResearchStructured summaries, Classification, Data extractionComplex coding, Agentic workflows, Testing and debuggingComplex coding, Professional documents, Business workflowsVisual reasoning, Drawings and screenshots, WritingComplex coding, Long-document analysis, Professional researchEveryday coding, Agentic tasks, Writing
Input typesText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageTextText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, Image
Max input272,000 tokens128,000 tokens128,000 tokens128,000 tokens1,047,576 tokens1,047,576 tokens200,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens922,000 tokens272,000 tokens272,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens
Max output128,000 tokens16,384 tokens16,384 tokens16,384 tokens32,768 tokens32,768 tokens100,000 tokens128,000 tokens128,000 tokens128,000 tokens272,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens
Knowledge cutoffAugust 31, 2025October 1, 2023October 1, 2023October 1, 2023June 1, 2024June 1, 2024June 1, 2024September 30, 2024May 31, 2024May 31, 2024September 30, 2024—September 30, 2024August 31, 2025August 31, 2025August 31, 2025August 31, 2025August 31, 2025August 31, 2025December 1, 2025February 16, 2026February 16, 2026February 16, 2026April 30, 2026May 18, 2026April 20, 2026April 30, 2026June 1, 2026May 18, 2026June 1, 2026
Input price$16.8$2$0.12$2$1.6$0.32$1.6$1$0.2$0.04$12$1$1$1.4$1.4$2$0.6$0.16$24$4$0.16$3.2$1.6$8$0.08$1.6$1.6$0.8$6.4$1.6
Output price$134.4$8$0.48$8$6.4$1.28$6.4$8$1.6$0.32$96$8$8$11.2$11.2$12$3.6$1$144$24$0.96$16$9.6$40$0.4$8$8$4$32$8

GPT-5.2 Pro FAQ

When is GPT-5.2 Pro worth the price?

When a wrong answer is expensive and a cheaper model fails on the task, such as checking proofs, reviewing important analyses or hard research questions. For everyday requests GPT-5.2 or a GPT-6 model is far cheaper. A common setup is to send only the requests a cheaper model gets wrong to GPT-5.2 Pro.

Which API does GPT-5.2 Pro use?

OpenAI offers GPT-5.2 Pro only through the Responses API, not Chat Completions or Batch, so that it can work through multiple turns before responding. APIMart supports the OpenAI Responses API format; see the APIMart docs for the request format.

Why do GPT-5.2 Pro requests take so long?

It spends more compute reasoning before it answers, and OpenAI notes that some requests take several minutes. Set a long client timeout, and for batch-style work run requests in the background rather than waiting on each one.

Is the context window 400,000 or 272,000 tokens?

OpenAI lists a total context window of 400,000 tokens for GPT-5.2 Pro, of which up to 272,000 tokens are input and up to 128,000 tokens are output. This page lists max input and max output separately.

Should I use GPT-5.2 Pro or a newer Pro model?

OpenAI now points to GPT-5.5 Pro as its latest pro model. GPT-5.4 Pro is also on APIMart with the same API key; its list prices are higher than GPT-5.2 Pro’s and it has a larger context window. Keep GPT-5.2 Pro where your results are already validated, and compare on your own hard cases before switching.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select GPT-5.2 Pro in the text category to start exploring.

Which model ID does the GPT-5.2 Pro API use?

Set model to gpt-5.2-pro. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of GPT-5.2 Pro?

On APIMart, GPT-5.2 Pro accepts up to 272,000 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

GPT-5.2 Pro can output up to 128,000 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the GPT-5.2 Pro API cost?

The GPT-5.2 Pro API on APIMart is billed by token, and prices depend on your membership tier. Gold: $16.8 per million input tokens and $134.4 per million output tokens. Diamond: $15.12 per million input tokens and $120.96 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.