APIMart
Back to all models

GPT-5.3-Codex API

OpenAIModel ID gpt-5.3-codexText modelReleased February 5, 2026

GPT-5.3-Codex will be retired on April 1, 2027, after which API calls will stop working. We recommend migrating to GPT-6 Sol ahead of time.

View GPT-6 Sol

Use GPT-5.3-Codex to carry out a multi-step code change with tests, work through a task in a terminal, or review a pull request, while you plan the move to GPT-6 Sol.

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

GPT-5.3-Codex 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.3-Codex.

Try GPT-5.3-Codex with your own material

Multi-step code changes

Describe the change and give GPT-5.3-Codex the relevant files and test command, and have it plan the edits, make them and report the test results. Review the diff before merging.

Example: Can you rename this field everywhere safely?

Material

Search results
fullName appears in models/user.ts, api/users.ts (JSON response), ui/Profile.tsx and migrations/007.sql.
Test command
npm test

PromptPlan the rename of user.fullName to user.displayName across the code, and say how you would check nothing broke.

Sample answer · written by hand to show the reasoning

1) Rename the field in models/user.ts and ui/Profile.tsx. 2) In api/users.ts, return both fullName and displayName for now, because API clients read fullName; remove it after clients move. 3) Leave migrations/007.sql alone and add a new migration that renames the column. 4) Run npm test, then search for fullName again to confirm only the API compatibility field remains.

About the GPT-5.3-Codex API

  • Built for agentic coding

    OpenAI announced GPT-5.3-Codex on February 5, 2026 as its most capable agentic coding model at the time, optimized for coding tasks in Codex or similar environments.

  • Shutdown on April 1, 2027

    OpenAI deprecated GPT-5.3-Codex on October 1, 2026 and recommends GPT-6 Sol as the replacement. Plan the move before the shutdown date.

  • 400K context, 128K output

    The context window is 400,000 tokens, with up to 272,000 tokens of input and 128,000 tokens of output. It accepts text and images; reasoning effort goes from low to xhigh.

  • GPT-5.3-Codex API key and access

    You don’t need a separate GPT-5.3-Codex API key: one APIMart key works for every model, including GPT-6 Sol. Send gpt-5.3-codex API requests with the model ID gpt-5.3-codex; GPT-5.3-Codex API pricing is in the table on this page.

GPT-5.3-Codex official benchmark results

Selected results OpenAI published at launch.

  • Terminal-Bench 2.0

    77.3%

    Agentic coding tasks in a terminal. Up from 64.0% for GPT-5.2-Codex and 62.2% for GPT-5.2.

  • OSWorld-Verified

    64.7%

    Completing tasks by operating a computer. Up from 38.2% for GPT-5.2-Codex and 37.9% for GPT-5.2.

  • SWE-Bench Pro (Public)

    56.8%

    Harder real software engineering tasks. Ahead of GPT-5.2-Codex (56.4%) and GPT-5.2 (55.6%).

  • SWE-Lancer IC Diamond

    81.4%

    Paid freelance software tasks. Up from 76.0% for GPT-5.2-Codex and 74.6% for GPT-5.2.

  • Cybersecurity CTF challenges

    77.6%

    Capture-the-flag security challenges. Up from 67.4% for GPT-5.2-Codex and 67.7% for GPT-5.2.

  • GDPval (wins or ties)

    70.9%

    Knowledge work across occupations, judged against professionals. On par with GPT-5.2 (70.9%).

How to call the GPT-5.3-Codex API

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

GPT-5.3-Codex access details

Model IDgpt-5.3-codex
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.3-Codex API request parameters

GPT-5.3-Codex 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.3-codex 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.3-Codex API pricing

The GPT-5.3-Codex 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
Input14Credits~$1.413.3Credits~$1.3312.6Credits~$1.2617.5Credits~$1.7520%
Cached input1.4Credits~$0.141.33Credits~$0.1331.26Credits~$0.1261.75Credits~$0.17520%
Output112Credits~$11.2106.4Credits~$10.64100.8Credits~$10.08140Credits~$1420%

Prices are for reference only. View full pricing

Why call GPT-5.3-Codex API through APIMart

  • 20% below official pricing

    GPT-5.3-Codex API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below OpenAI's official prices, and cached input costs just $0.14 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    GPT-5.3-Codex, 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.3-Codex 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.3-Codex API key works for every model in the table; just change the model parameter.

Differences between OpenAI models
ComparisonGPT-5.3-Codex CurrentGPT-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 forAgentic 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 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
Max input272,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
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$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$11.2$12$3.6$1$144$24$0.96$16$9.6$40$0.4$8$8$4$32$8

GPT-5.3-Codex FAQ

Is GPT-5.3-Codex being retired?

Yes. OpenAI deprecated gpt-5.3-codex on October 1, 2026, with a shutdown date of April 1, 2027. The recommended replacement is GPT-6 Sol. Plan the move before that date.

How do I migrate from GPT-5.3-Codex to GPT-6 Sol?

Change the model parameter in your gpt-5.3-codex API requests to gpt-6-sol; the APIMart API key stays the same. Re-run a sample of your real coding tasks and compare the diffs and test results before switching all traffic. GPT-6 Sol’s list price is slightly higher for input and lower for output ($2 / $10 vs. $1.75 / $14 per million tokens).

Which API does GPT-5.3-Codex use?

OpenAI offers GPT-5.3-Codex only through the Responses API, not Chat Completions or Batch. APIMart supports the OpenAI Responses API format; see the APIMart docs for the request format.

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

OpenAI lists a total context window of 400,000 tokens for GPT-5.3-Codex, 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.

Is GPT-5.4 better than GPT-5.3-Codex?

It depends on the task. In OpenAI’s announcements GPT-5.3-Codex scored 77.3% on Terminal-Bench 2.0, above GPT-5.4’s 75.1%, while GPT-5.4 scored 57.7% on SWE-Bench Pro vs. 56.8%; the numbers come from different announcements. GPT-5.4 is a general model with a larger context window and Chat Completions support, at $2.50 / $15 per million tokens. Both are older than GPT-6 Sol, which OpenAI recommends for GPT-5.3-Codex users.

How can I try this model online?

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

Which model ID does the GPT-5.3-Codex API use?

Set model to gpt-5.3-codex. 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.3-Codex?

On APIMart, GPT-5.3-Codex 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.3-Codex 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.3-Codex API cost?

The GPT-5.3-Codex API on APIMart is billed by token, and prices depend on your membership tier. Gold: $1.4 per million input tokens and $11.2 per million output tokens. Diamond: $1.26 per million input tokens and $10.08 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.