# GPT-5.2

> GPT-5.2 is OpenAI's best model for coding and agentic tasks across industries.

Agent resources: the index of everything machine-readable is https://www.ohmygpt.com/llms.txt; the integration skill (endpoints, auth, SDK and coding-tool setup) is https://www.ohmygpt.com/skill.md.

- Model ID: `openai/gpt-5.2`
- Status: available
- Released: 2025-12-11
- Context: 400K tokens
- Max output: 128K tokens
- Input: text, image; output: text
- Knowledge cutoff: 2025-08-31
- Capability score: 154 (as of 2026-11-02, see https://www.ohmygpt.com/rankings.md)
- Human preference rating (LMArena text): 1412

## Prices (USD)

| Item | Price | Unit |
| --- | --- | --- |
| Input | $1.575 | per 1M tokens |
| Output | $12.60 | per 1M tokens |
| Cache read | $0.1575 | per 1M tokens |
| Web search | $0.009–$0.0126 | per request |

## Providers

This model chooses its provider itself; a provider prefix is not accepted.

| Provider | Pinned model ID | Location | Input | Output | Trains on your data |
| --- | --- | --- | --- | --- | --- |
| Azure AI Foundry | — | Global | $1.575 | $12.60 | no |
| OpenAI | — | United States | $1.575 | $12.60 | no |

## Endpoints

| API | Request | model |
| --- | --- | --- |
| OpenAI Chat | POST https://api.ohmygpt.com/v1/chat/completions | `openai/gpt-5.2` |
| OpenAI Responses | POST https://api.ohmygpt.com/v1/responses | `openai/gpt-5.2` |
| Anthropic Messages | POST https://api.ohmygpt.com/v1/messages | `openai/gpt-5.2` |
| Google Gemini | POST https://api.ohmygpt.com/v1/models/openai/gpt-5.2:generateContent | `openai/gpt-5.2` |

## Example

```bash
curl https://api.ohmygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.2",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'
```

Web page: https://www.ohmygpt.com/models/openai/gpt-5.2
