gpt-5.2-codex

GPT-5.2 · Per Token

gpt-5.2-codexAvailableCache 90% off
ChatTool UseContext Window: 272KMax Output Tokens: 128K

Pricing

Official PriceLemonData Price
Input$1.75$1.23
Output$14.00$9.80
Cache Read$0.175$0.175

Parameters

Context Window
272K tokens
Max Output Tokens
128K tokens

Best For

Chat

Conversational AI, customer support, and Q&A

Cost Calculator

1M
0.5M
Estimated Monthly Cost$6.13

API Code Example

POST/v1/responses
API Format:
curl https://api.lemondata.cc/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxx" \
  -d '{
    "model": "gpt-5.2-codex",
    "input": "Hello!"
  }'

FAQ

How much does gpt-5.2-codex cost?

On LemonData, gpt-5.2-codex costs $1.2250 per 1M input tokens and $9.8000 per 1M output tokens, which is up to 30% off the official pricing.

What is gpt-5.2-codex best for?

gpt-5.2-codex excels at Chat, Tool Use. Access it through LemonData's unified API with a single API key.

How to use gpt-5.2-codex API?

Get your API key from LemonData, set the base URL to api.lemondata.cc/v1, and use any OpenAI-compatible SDK. See the code examples above.

Related Models

gpt-5.2-codex - API Pricing & Details - LemonData