GPT-5.2 Codex API
Model ID: gpt-5.2-codex · OpenAI · Billed per token
GPT-5.2 Codex pricing
| Aiberm | Official | |
|---|---|---|
| Input | $0.403 / 1M tokens | $1.75 |
| Output | $3.22 / 1M tokens | $14.00 |
Prices in USD. About 77% below the official price. Pay as you go, no minimum spend.
Get an API key · Read the docs
How to call GPT-5.2 Codex
Use your Aiberm API key, set the base URL, and pass gpt-5.2-codex as the model name.
https://dev.aiberm.com
Supported request formats:
- OpenAI Chat Completions —
/v1/chat/completions
curl https://dev.aiberm.com/v1/chat/completions \
-H "Authorization: Bearer $AIBERM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-5.2-codex", "messages": [{"role": "user", "content": "Hello"}]}'
Use GPT-5.2 Codex in your tools
- Codex CLI
- OpenCode
- OpenClaw
- Pi
- Hermes Agent
- DeepSeek Harness
- Codex Desktop
- DeepSeek Harness Desktop
- Trae
- Magpie
FAQ
How much does the GPT-5.2 Codex API cost?
On Aiberm, GPT-5.2 Codex (gpt-5.2-codex) costs $0.403 per 1M input tokens and $3.22 per 1M output tokens, compared with the official $1.75 / $14.00 — about 77% less. You pay only for the tokens you use, with no minimum spend.
How do I call GPT-5.2 Codex through Aiberm?
Set the base URL to https://dev.aiberm.com, use gpt-5.2-codex as the model name, and authenticate with your Aiberm API key. Supported request formats: OpenAI Chat Completions.
Can I use GPT-5.2 Codex in Codex CLI, OpenCode or OpenClaw?
Yes. Add Aiberm as a provider in Codex CLI, OpenCode, OpenClaw with the base URL and your API key, then select gpt-5.2-codex. Each tool has a step-by-step guide in the Aiberm docs.
More OpenAI models
- GPT-5.5
gpt-5.5— $6.90 input / $13.80 output per 1M tokens - GPT-5.3 Codex
openai/gpt-5.3-codex— $0.460 input / $3.68 output per 1M tokens (−74%) - GPT-5.1 Codex
gpt-5.1-codex— $0.288 input / $2.30 output per 1M tokens (−77%) - GPT-5.1 Codex Max
gpt-5.1-codex-max— $0.288 input / $2.30 output per 1M tokens (−77%) - GPT-5.2
openai/gpt-5.2— $0.460 input / $3.68 output per 1M tokens (−47%) - GPT-5.2 Chat
openai/gpt-5.2-chat— $17.25 input / $17.25 output per 1M tokens - GPT-5.1
openai/gpt-5.1— $0.460 input / $3.68 output per 1M tokens (−26%)