APIMart
Back to all models

GPT-5.4 Pro API

OpenAIModel ID gpt-5.4-proText modelReleased March 5, 2026

Use GPT-5.4 Pro to check a proof step by step, find the race condition a test run keeps missing, or review a high-stakes analysis before it goes out.

Max input
922,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.4 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.4 Pro.

Try GPT-5.4 Pro with your own material

Checking a proof or derivation

Send GPT-5.4 Pro a proof and ask it to check each step and point to the first one that does not follow. Have someone who knows the field confirm the gap.

Example: Where does this proof go wrong?

Material

Claimed proof
Step 1: a² = b² for real a, b. Step 2: therefore a = b. Step 3: so every real number with the same square is equal.

PromptCheck the proof step by step and name the first step that does not follow, with a counterexample if there is one.

Sample answer · written by hand to show the reasoning

Step 2 does not follow: a² = b² only gives a = b or a = −b. Counterexample: a = 2, b = −2 have the same square but are not equal. The conclusion in step 3 is therefore false.

About the GPT-5.4 Pro API

  • More compute for harder problems

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

  • 1.05M context, 128K output

    The context window is 1,050,000 tokens and the maximum output 128,000 tokens, with text and image input. Requests over 272K input tokens are billed at long-context rates.

  • Slow by design

    Reasoning effort is medium, high or xhigh, and some requests take several minutes. Plan timeouts and send it only the requests that need it.

  • GPT-5.4 Pro API key and access

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

How to call the GPT-5.4 Pro API

To call GPT-5.4 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.4-pro",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

GPT-5.4 Pro access details

Model IDgpt-5.4-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.4 Pro API request parameters

GPT-5.4 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.4-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.4 Pro API pricing

The GPT-5.4 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
Input240Credits~$24228Credits~$22.8216Credits~$21.6300Credits~$3020%
Output1440Credits~$1441368Credits~$136.81296Credits~$129.61800Credits~$18020%

Prices are for reference only. View full pricing

Why call GPT-5.4 Pro API through APIMart

  • 20% below official pricing

    GPT-5.4 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.4 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.4 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.4 Pro API key works for every model in the table; just change the model parameter.

Differences between OpenAI models
ComparisonGPT-5.4 Pro CurrentGPT-5.3-CodexGPT-5.4GPT-5.4 miniGPT-5.4 nanoGPT-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, Text and image inputAgentic coding, Deprecated, Responses APICoding and professional work, 1.05M context, Text and image inputCoding and subagents, 400K context, Text and image inputClassification and extraction, Deprecated, 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
Max input922,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 tokens
Knowledge cutoffAugust 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$24$1.4$2$0.6$0.16$4$0.16$3.2$1.6$8$0.08$1.6$1.6$0.8$6.4$1.6
Output price$144$11.2$12$3.6$1$24$0.96$16$9.6$40$0.4$8$8$4$32$8

GPT-5.4 Pro FAQ

When is GPT-5.4 Pro worth the price?

When a wrong answer is expensive and a cheaper model fails on the task, such as checking proofs, finding subtle bugs or reviewing important analyses. For everyday requests GPT-5.4 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.4 Pro.

Which API does GPT-5.4 Pro use?

OpenAI offers GPT-5.4 Pro only through the Responses API, not Chat Completions, 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.4 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 1,050,000 or 922,000 tokens?

OpenAI lists a total context window of 1,050,000 tokens for GPT-5.4 Pro, of which up to 922,000 tokens are input and up to 128,000 tokens are output. Requests with more than 272,000 input tokens are billed at long-context rates: 2x input and 1.5x output.

Does GPT-5.4 Pro support cached input or structured outputs?

OpenAI lists no cached-input price for GPT-5.4 Pro, so repeated prompts are billed at the full input rate. Its model page also does not list structured outputs; if you need strict JSON, validate the output in code or use GPT-5.4.

How can I try this model online?

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

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

Set model to gpt-5.4-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.4 Pro?

On APIMart, GPT-5.4 Pro accepts up to 922,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.4 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.4 Pro API cost?

The GPT-5.4 Pro API on APIMart is billed by token, and prices depend on your membership tier. Gold: $24 per million input tokens and $144 per million output tokens. Diamond: $21.6 per million input tokens and $129.6 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.