# GPT-5.2 Codex

> GPT-5.2 Codex is the Codex-environment variant of GPT-5.2, tuned for agentic coding workloads with streaming, function calling, and structured outputs. Available through OpenAI's Responses API.


**ID**: `openai/gpt-5.2-codex`  
**Creator**: OpenAI  
**Category**: text  
**Context**: 400K tokens  
**Pricing**: $1.75 / $14.00 per 1M · billed by your provider (BYOK)  
**Released**: 2026-01-21  
**Web page**: https://anyrouter.dev/model/openai/gpt-5.2-codex

**Input modalities**: text, image  
**Output modalities**: text  

**Tokenizer**: GPT

**Capabilities**: chat, coding, reasoning, streaming, function-calling, vision

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "openai/gpt-5.2-codex",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| opencode-zen-byok | $1.75/M (list) | $14.00/M (list) |
| cline-byok | $1.75/M (list) | $14.00/M (list) |
| vercel-byok | $1.75/M (list) | $14.00/M (list) |

BYOK routes are billed by your own provider key — AnyRouter charges $0. Rates marked (list) are the provider's published list price.

## Benchmarks

- **GPQA Diamond**: 0.9
- **HLE**: 0.3
- **τ²-Bench Telecom**: 0.9
- **SciCode**: 0.5
