Codex API on APIMart for OpenAI's Codex coding models. GPT-5.3-Codex runs on the Responses API and in Codex CLI with an APIMart API key, with a 400K context window and pay-per-token pricing. OpenAI retires it on April 1, 2027.
Guides, comparisons and pricing analysis from the APIMart blog.
What's on your mind?
Ask APIMart
gpt-5.3-codex
Transparent pricing with no hidden fees. Pay only for what you use.
Per 1M tokens
| Rate | GoldCurrent price | Platinum | Diamond | Official | Your savings |
|---|---|---|---|---|---|
| Input | 14Credits~$1.4 | 13.3Credits~$1.33 | 12.6Credits~$1.26 | 17.5Credits~$1.75 | 20% |
| Cached input | 1.4Credits~$0.14 | 1.33Credits~$0.133 | 1.26Credits~$0.126 | 1.75Credits~$0.175 | 20% |
| Output | 112Credits~$11.2 | 106.4Credits~$10.64 | 100.8Credits~$10.08 | 140Credits~$14 | 20% |
Call GPT-5.3-Codex, OpenAI's agentic coding model, through APIMart's Responses API or use your APIMart key in Codex CLI. Pay per token with no ChatGPT plan. OpenAI has deprecated the Codex models: GPT-5.3-Codex shuts down on April 1, 2027, and GPT-6 Sol is the recommended replacement.
What you get with GPT-5.3-Codex on APIMart
OpenAI describes GPT-5.3-Codex as its most capable agentic coding model, built for long-running coding tasks in Codex and similar tools.
Send up to 272K input tokens and get up to 128K output tokens per request, enough for large diffs and multi-file context.
Set reasoning.effort to low, medium, high or xhigh to balance speed, cost and depth on each request.
Call /v1/responses with function calling and the other tools APIMart supports on the Responses API, in the OpenAI request format.
Use your APIMart API key in Codex CLI by adding one provider block to ~/.codex/config.toml, then switch models with /model.
Input and output tokens are billed separately with no ChatGPT subscription. Gold members get 20% off and failed requests are not billed.
What developers build with the Codex API
Run Codex CLI on your repository to read files, run commands and fix bugs, billed to your APIMart balance.
Send pull request diffs to GPT-5.3-Codex and get likely bugs and suggested patches back.
Plan and apply multi-file refactors, framework upgrades and API migrations.
Explain stack traces and failing tests, then propose and test a fix.
Generate unit tests, docstrings and READMEs from existing code.
Add code generation or review to your IDE plugin, internal tool or SaaS through the Responses API.
Three steps from sign-up to your first Codex request.
Create an APIMart account and top up your balance. The same balance pays for the Codex API and every other model.
Generate an API key in your dashboard. It starts with sk- and works for the Responses API and Codex CLI.
Send a request to /v1/responses with model gpt-5.3-codex, or add APIMart as a provider in Codex CLI.
Call GPT-5.3-Codex with cURL or the OpenAI Python SDK, or point Codex CLI at APIMart with the same API key.
Create an APIMart API key, add funds and set APIMART_API_KEY in your environment. For Python, install the openai package; every example uses the same key and the base URL https://api.apimart.ai/v1.
According to OpenAI's documentation, Codex models support the Responses API (/v1/responses) only, so the examples below use it. Set reasoning.effort to low, medium, high or xhigh to trade speed for depth.
In Codex CLI, add the APIMart provider to ~/.codex/config.toml. Codex CLI supports only wire_api = "responses" for custom providers. Switch models with /model.
curl --fail-with-body https://api.apimart.ai/v1/responses \
-H "Authorization: Bearer $APIMART_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.3-codex",
"reasoning": {
"effort": "medium"
},
"input": "Write a Python function that validates an email address, then add three pytest cases for it."
}'import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["APIMART_API_KEY"],
base_url="https://api.apimart.ai/v1",
)
resp = client.responses.create(
model="gpt-5.3-codex",
reasoning={"effort": "medium"},
input="Write a Python function that validates an email address, then add three pytest cases for it.",
)
print(resp.output_text)model = "gpt-5.3-codex"
model_provider = "apimart"
[model_providers.apimart]
name = "APIMart"
base_url = "https://api.apimart.ai/v1"
wire_api = "responses"
env_key = "APIMART_API_KEY"GPT-5.3-Codex is the current Codex model. OpenAI shut down the five older Codex models on July 23, 2026, and APIMart still offers them at the rates below; plan new work on GPT-5.3-Codex or GPT-6 Sol.
Prices are APIMart Gold member rates in USD per 1M tokens. Input and output are billed separately.
| Model / API ID | Input | Output | Context window | OpenAI status |
|---|---|---|---|---|
GPT-5.3-Codexgpt-5.3-codex | $1.40 | $11.20 | 400,000Max output 128,000 | Available. OpenAI deprecated it; shutdown on Apr 1, 2027. Replacement: GPT-6 Sol. |
GPT-5.2-Codexgpt-5.2-codex | — | — | 400,000Max output 128,000 | Available on APIMart. OpenAI shut it down on Jul 23, 2026. Replacement: GPT-5.6 Sol. |
GPT-5.1-Codex-Maxgpt-5.1-codex-max | — | — | 400,000Max output 128,000 | Available on APIMart. OpenAI shut it down on Jul 23, 2026. Replacement: GPT-5.6 Sol. |
GPT-5.1-Codexgpt-5.1-codex | — | — | 400,000Max output 128,000 | Available on APIMart. OpenAI shut it down on Jul 23, 2026. Replacement: GPT-5.6 Sol. |
GPT-5.1-Codex-Minigpt-5.1-codex-mini | — | — | 400,000Max output 128,000 | Available on APIMart. OpenAI shut it down on Jul 23, 2026. Replacement: GPT-5.6 Terra. |
GPT-5-Codexgpt-5-codex | — | — | 400,000Max output 128,000 | Available on APIMart. OpenAI shut it down on Jul 23, 2026. Replacement: GPT-5.6 Sol. |
Context windows and max output follow OpenAI's model pages, which list the Responses API as the only supported API for all six Codex models. Status and replacements come from OpenAI's deprecations page (checked November 10, 2026).
Answers about Codex API pricing, keys, Codex CLI and model status on APIMart.
Codex is OpenAI's coding agent, and the Codex API refers to OpenAI's Codex models, such as gpt-5.3-codex, called over an API. On APIMart you call them with an APIMart API key through the OpenAI-compatible Responses API, or use them inside Codex CLI, and pay per token.
Yes, GPT-5.3-Codex is available on APIMart. OpenAI announced its first version on February 5, 2026, and has since marked it deprecated: it shuts down on April 1, 2027, and OpenAI recommends GPT-6 Sol as the replacement. You can test GPT-6 Sol on the GPT API page with the same key.
OpenAI announced on April 22, 2026 that GPT-5.2-Codex, GPT-5.1-Codex-Max, GPT-5.1-Codex, GPT-5.1-Codex-Mini and GPT-5-Codex would shut down, and they were removed from the OpenAI API on July 23, 2026. OpenAI recommends GPT-5.6 Sol, or GPT-5.6 Terra in place of Codex-Mini. APIMart still offers all five with the same API key at the rates in the comparison table; for new projects, OpenAI's recommended replacements are the longer-term choice.
At Gold member rates, GPT-5.3-Codex costs $1.40 per 1M input tokens and $11.20 per 1M output tokens (November 2026). GPT-5.1-Codex-Max, GPT-5.1-Codex and GPT-5-Codex are listed at $1 and $8, and GPT-5.1-Codex-Mini at $0.20 and $1.60. Platinum and Diamond members save up to 28%. See the pricing table on this page for current rates. Example: a request with 10,000 input tokens and 2,000 output tokens on GPT-5.3-Codex costs about $0.0364 at Gold rates ($0.014 + $0.0224).
A ChatGPT plan includes Codex usage inside OpenAI's own apps under that plan's limits. The Codex API on APIMart has no monthly plan: you pay per token from your balance, and the same key works in your own code and in Codex CLI. See OpenAI's Codex pricing page for plan details.
GPT-5.1-Codex-Mini has the lowest listed rates ($0.20 input and $1.60 output per 1M tokens at Gold rates), and it is still available on APIMart, although OpenAI shut it down on July 23, 2026. For new low-cost coding work, also compare GPT-5.6 Terra and other models on the GPT API page.
No. APIMart has no free credits for the Codex API. You pay per token from your balance, with no subscription, and failed requests are not billed.
Sign up for APIMart, open the API Keys page in your dashboard and create a key. It starts with sk-, and the same key works for the Codex API, Codex CLI and every other model on the platform.
Codex CLI supports custom model providers, so you can point it at a third-party API such as APIMart. Add an APIMart provider to ~/.codex/config.toml with base_url https://api.apimart.ai/v1 and wire_api = "responses", then store your key in auth.json or the APIMART_API_KEY environment variable. If Codex shows a ChatGPT sign-in screen or returns 401, check that model_provider points to the APIMart provider. The Codex CLI guide in APIMart docs has the full steps.
GPT-5.3-Codex is tuned for Codex and APIMart offers it today. OpenAI plans to shut it down on April 1, 2027; actual availability on APIMart follows live model status and announcements. OpenAI recommends GPT-6 Sol as its replacement, and GPT-6 Sol is also available on APIMart. Set the model field in config.toml or switch with /model to compare them on your own repository.
Use the Responses API (/v1/responses). OpenAI's official documentation lists the Responses API as the only supported API for Codex models, and the examples on this page follow it. In Codex CLI, set wire_api = "responses"; according to OpenAI's Codex configuration reference, it is the only supported value.
OpenAI lists a 400,000-token context window, with up to 272,000 input tokens and up to 128,000 output tokens. Reasoning effort can be low, medium, high or xhigh, and the model accepts text and image input.
No. GPT-5.3-Codex-Spark is a separate, smaller model that OpenAI announced on February 12, 2026 for real-time coding in Codex. APIMart does not offer Spark; the model available here is gpt-5.3-codex.
Use GPT-5.3-Codex when you want a model tuned for agentic coding, especially in Codex CLI. For new long-term projects, general chat, writing or reasoning, see the GPT API page, including GPT-6 Sol, which OpenAI recommends as the Codex replacement.
Explore more models in the same category.
DeepSeek R1 0528
DeepSeek-R1-0528 is a lightweight language model version developed by DeepSeek.
Claude Sonnet 4.6 Thinking
claude-sonnet-4-6-thinking is an enhanced reasoning version released by Anthropic.
Gemini 3.1 Pro Preview
Gemini-3.1-Pro-Preview is a high-performance preview model version provided by Google.
Claude Sonnet 4.6
claude-sonnet-4-6 is a balanced large language model version released by Anthropic.