APIrove

Home / Models / Compare / Claude Code vs Codex

CLAUDE CODE VS CODEX

Claude Code vs Codex

Checked 2026-11-25

Pick Claude Code if a paid Claude plan already covers your week: Pro, Max, and Ultra include the terminal agent, and the $0 Claude plan does not. Pick Codex if you want OpenAI’s terminal agent: ChatGPT plans include it, including the $0 plan and ChatGPT Go, while Codex Cloud does not. Neither name is a model id. On APIrove, call the on-sale ids claude-sonnet-5-5 and gpt-6.1-sol at https://apirove.com/v1. A model id named claude-code or codex is coming soon.

Open apirove.com Get an API key

What you keep

You wantUseWhat you gain
The agent already included in a paid Claude planClaude CodeOne Claude login covers chat and the terminal. Extra API usage is separate. See the plan rows below.
OpenAI’s agent on a ChatGPT plan, including the $0 planCodexLocal Codex is included. Cloud tasks need a higher plan. Limits are on chatgpt.com/pricing; this page does not copy those dollar amounts.
A named model id and one prepaid balanceAPIroveOne OpenAI-compatible base URL for both families. You pay the public unit price of the id you call. The tools themselves stay installed.

Claude Code vs Codex

Plan facts are from the pages linked in the cells, read 2026-11-25. A cell marked unconfirmed is not stated on those pages.

Claude CodeCodex
What it isAnthropic’s coding tool in the terminal, with the same login as Claude. Quickstart.OpenAI’s coding agent that runs on your computer. CLI guide and repository.
Where it runsTerminal. The quickstart also lists the web, a desktop app, VS Code, JetBrains, and CI with GitHub Actions and GitLab.CLI, IDE extension, desktop app, and web. The repository names VS Code, Cursor, and Windsurf for the editor install. Plan article.
Included withPro, Max, and Ultra. Not the $0 plan. Team and Enterprise can sign in; their prices are not copied here. claude.com/pricing.ChatGPT plans, including the $0 plan and ChatGPT Go. Codex Cloud is separate.
Published plan pricePro $20 if billed monthly, or $17 per month when $200 is billed up front. Max $100. Ultra $200. Tax is extra, as that page states.Unconfirmed here. Read chatgpt.com/pricing.
AllowanceShared with Claude chat. Pro and Max have a five-hour limit and a weekly limit. Ultra has a weekly limit; verified Ultra accounts have no five-hour limit. Help center.Limits vary by plan. The help article does not print a token table; use the pricing page above.
Cloud tasksThe quickstart points at web and CI. This page does not claim a separate cloud product name.Codex Cloud is for eligible Plus, Pro, Business, Enterprise, Healthcare, and Education accounts. Not the $0 plan or ChatGPT Go.
Sample model idUnconfirmed. The quickstart says the prompt shows the current model and does not name a default id.The CLI guide’s sample session shows gpt-6.1-sol. The sample config uses the same id as an example.
Older idsUnconfirmed on this page.As of August 31, 2026, GPT-5.4 and GPT-5.4 mini are no longer available in Codex when you sign in with ChatGPT. This catalog has no gpt-5.4 row.
Custom API addressANTHROPIC_BASE_URL with no /v1. The client calls $ANTHROPIC_BASE_URL/v1/messages. Environment variables.User file ~/.codex/config.toml. A project file ignores the base URL keys. Advanced configuration.
APIrove model idclaude-code is coming soon. Closest on-sale id: claude-sonnet-5-5. Opus 5.5 is also on sale.codex is coming soon. Closest on-sale id: gpt-6.1-sol, the id in OpenAI’s sample.

Public unit prices

These blocks are the catalog rates for the two on-sale ids in the sample. Subscription prices above are the vendors’ plan prices, not these rates. A week that fits the plan allowance does not need an API call. Use the API when you want that id and a line on the usage page.

Claude public unit prices

ModelBilling itemUSD rateOfficial priceSavings
claude-sonnet-5-5Input$1 / 1M tokens$2 / 1M tokensSave 50%
claude-sonnet-5-5Output$5 / 1M tokens$10 / 1M tokensSave 50%
claude-sonnet-5-5Cache read$0.05 / 1M tokens$0.10 / 1M tokensSave 50%
claude-sonnet-5-5Cache write$1.25 / 1M tokens$2.50 / 1M tokensSave 50%
claude-sonnet-5-51h cache write$2 / 1M tokens$4 / 1M tokensSave 50%

GPT public unit prices

ModelBilling itemUSD rateOfficial priceSavings
gpt-6.1-solInput · tokens ≤ 272000$1 / 1M tokens$2 / 1M tokensSave 50%
gpt-6.1-solOutput · tokens ≤ 272000$5 / 1M tokens$10 / 1M tokensSave 50%
gpt-6.1-solCache read · tokens ≤ 272000$0.05 / 1M tokens$0.10 / 1M tokensSave 50%
gpt-6.1-solCache write · tokens ≤ 272000$1.25 / 1M tokens——
gpt-6.1-sol1h cache write · tokens ≤ 272000$2.50 / 1M tokens——
gpt-6.1-solInput · tokens > 272000$2 / 1M tokens$4 / 1M tokensSave 50%
gpt-6.1-solOutput · tokens > 272000$7.50 / 1M tokens$15 / 1M tokensSave 50%
gpt-6.1-solCache read · tokens > 272000$0.10 / 1M tokens$0.20 / 1M tokensSave 50%
gpt-6.1-solCache write · tokens > 272000$2.50 / 1M tokens——
gpt-6.1-sol1h cache write · tokens > 272000$5 / 1M tokens——

Public USD retail rates. The server renders the public price list of 2026-11-25 (Beijing time); the page refreshes them on load. Actual charges are on the Usage page.

Official price: the standard list price published by Anthropic, OpenAI, checked 2026-11-24. Savings = 1 − our rate ÷ official price, rounded down to a whole percent; a dash in the savings column means there is no comparable rate or the saving is below one percentage point.

Change the token counts on the estimate. Claude keys on APIrove are Full group keys; GPT text keys are the default Text group. See two key groups.

Call it on the OpenAI-compatible base URL

Base URL: https://apirove.com/v1. Both sample ids accept POST /v1/chat/completions. gpt-6.1-sol also accepts POST /v1/responses. claude-sonnet-5-5 also accepts POST /v1/messages. Details are on each model page and in the compatible API guide.

export APIROVE_API_KEY='YOUR_API_KEY'

curl https://apirove.com/v1/chat/completions \
  -H "Authorization: Bearer $APIROVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-6.1-sol","messages":[{"role":"user","content":"Summarize this diff in one line."}],"max_tokens":64}'

curl https://apirove.com/v1/chat/completions \
  -H "Authorization: Bearer $APIROVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-sonnet-5-5","messages":[{"role":"user","content":"Summarize this diff in one line."}],"max_tokens":64}'

Claude Code does not take the /v1 suffix. Anthropic’s variable ANTHROPIC_BASE_URL is the origin, and the client appends /v1/messages. ANTHROPIC_AUTH_TOKEN is sent as Authorization: Bearer. ANTHROPIC_MODEL names the model. If ANTHROPIC_API_KEY is set, Claude Code uses that key instead of the subscription, so the call is API usage rather than the plan allowance. From Claude Code v2.1.196, Remote Control is off when the base URL host is not api.anthropic.com. A full Claude Code session against APIrove is unconfirmed; the Claude Code guide says the same.

export ANTHROPIC_BASE_URL="https://apirove.com"
export ANTHROPIC_AUTH_TOKEN="$APIROVE_API_KEY"
export ANTHROPIC_MODEL="claude-sonnet-5-5"

For Codex, put the base URL in the user file ~/.codex/config.toml, not in a project file. OpenAI’s sample sets wire_api to responses and comments that this is the supported value. gpt-6.1-sol on APIrove accepts POST /v1/responses. A full Codex session against APIrove is unconfirmed. codex exec stays read-only unless you pass --sandbox workspace-write (non-interactive mode).

Fill in config.toml as in the OpenAI sample linked above: set model to "gpt-6.1-sol", base_url to "https://apirove.com/v1", wire_api to "responses", and env_key to "APIROVE_API_KEY".

Keep the key out of Git. The same base URL is documented for other clients on the Codex setup page.

Which plan includes Claude Code, and which includes Codex?

Claude Code is included with Claude Pro, Max, and Ultra, not the $0 Claude plan. Codex is included with ChatGPT plans, including the $0 plan and ChatGPT Go. Codex Cloud is not included with the $0 plan or ChatGPT Go. Prices and limits are on the vendor pages linked above, read 2026-11-25.

Can I call a model id named claude-code or codex?

Those ids are coming soon. Call claude-sonnet-5-5 or gpt-6.1-sol, which are on sale. Opus 5.5 is also on sale if the task names it.

What is the OpenAI-compatible base URL?

https://apirove.com/v1 for Chat Completions and Responses. Claude Code is the exception: ANTHROPIC_BASE_URL is https://apirove.com with no /v1, because the client appends /v1/messages.

Do both tools use the same APIrove key?

Claude model ids need a Full group key. GPT text ids work with the default Text group key. The base URL can be the same host. The key group is chosen on the keys page.

Will the desktop app work if this curl works?

Unconfirmed. This page checks the published product facts and the HTTP shapes on the model pages. It does not record a full Claude Code or Codex session against APIrove.

Which one should I pay for this week?

Stay on the plan when its included allowance covers the week. Use APIrove when you need claude-sonnet-5-5 or gpt-6.1-sol and a prepaid balance. The public unit price is the block above, not a second plan fee.

Create an account on apirove.com

One API for text, image and video output