OpenAIPaidOperational
GPT 5.2 Codex
API model name: gpt-5.2-codex
GPT 5.2 Codex is OpenAI's chat model, served on the Api.Airforce unified API. Capabilities include Reasoning. It is priced at $3.75 per million input tokens and $30.00 per million output tokens. Access it through the OpenAI-compatible API with one key, alongside 100+ other models on Api.Airforce.
Pricing
Specifications
- Provider
- OpenAI
- Type
- chat model
Capabilities
Reasoning
Benchmarks
Independent evaluations and measured speed from Artificial Analysis.
Intelligence Index
40.1/100
GPQA Diamond90%
Humanity's Last Exam34%
Output speed148.4 tok/s
Time to first token7.88 s
Source: Benchmark data by Artificial Analysis (artificialanalysis.ai)
What is GPT 5.2 Codex used for?
- Chatbots & assistants — conversational AI, drafting, summarizing and Q&A.
- Complex reasoning — math, coding and step-by-step problem solving.
GPT 5.2 Codex vs. similar models
| Model | Intelligence | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|
| GPT 5.2 Codex | 40.1 | — | $3.75 | $30.00 |
| GPT 3.5 | — | — | $0.47 | $1.39 |
| GPT 3.5 Turbo 16k | — | — | $10.26 | $20.52 |
| GPT 4 | 7.0 | 8K | $64.26 | $128.52 |
Prices are Api.Airforce pay-as-you-go rates per 1M tokens. Context is the maximum input length.
Related models
GPT 3.5OpenAI · $0.47 / 1MGPT 3.5 Turbo 16kOpenAI · $10.26 / 1MGPT 4OpenAI · $64.26 / 1MGPT 4OpenAI · $34.23 / 1MGPT 4OpenAI · $21.42 / 1MGPT 4 32kOpenAI · $205.32 / 1MGPT 4 TurboOpenAI · $21.42 / 1MGPT 4 VisionOpenAI · $34.23 / 1MGPT 4.1OpenAI · $0.45 / 1MGPT 4.1 NanoOpenAI · $0.03 / 1MGPT 4o AudioOpenAI · $17.10 / 1MGPT 4o MiniOpenAI · Free
GPT 5.2 Codex — frequently asked questions
- How much does GPT 5.2 Codex cost?
- GPT 5.2 Codex is billed pay-as-you-go at $3.75 per 1M input tokens and $30.00 per 1M output tokens. There is no subscription — you only pay for what you use.
- What can GPT 5.2 Codex do?
- GPT 5.2 Codex supports Reasoning.
- Is GPT 5.2 Codex free to use?
- GPT 5.2 Codex is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use GPT 5.2 Codex via the API?
- GPT 5.2 Codex is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID gpt-5.2-codex with your Api.Airforce API key.
- Who makes GPT 5.2 Codex?
- GPT 5.2 Codex is OpenAI's chat model, served through the unified Api.Airforce gateway alongside 100+ other models.
Loading live metrics…
Loading live metrics…
Loading live metrics…
Use GPT 5.2 Codex via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass gpt-5.2-codex as the model.
cURL
curl https://api.airforce/v1/chat/completions \
-H "Authorization: Bearer $AIRFORCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.2-codex",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
r = client.chat.completions.create(
model="gpt-5.2-codex",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const r = await client.chat.completions.create({
model: "gpt-5.2-codex",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(r.choices[0].message.content);