← All models

GPT-5.2

openai/gpt-5.2

GPT-5.2 is OpenAI's flagship general model. It is suited for reasoning-heavy tasks, tool calling and multimodal understanding across long contexts.

Pricing & limits

Provider list price, passed through untouched. The only SwitchGate fee is 4.9% when you top up credits.

ProviderOpenAI
Input price$2.5 / 1M tokens
Output price$15 / 1M tokens
Context window400K tokens
Added to catalog2026-08-02
Tokens routed (30d)733.2B (placeholder)
Cache hits0 credits, always
  • Same governance as every model: per-user budgets, model locks, burnable keys and the kill switch apply automatically.
  • Cross-provider failover: route around outages to sibling models with one retry policy.
  • Exact cost per call on one ledger, whoever on your team calls it.

Call it in one line

Python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.switchgate.ai/v1",
    api_key="sg-live-…",
)

r = client.chat.completions.create(
    model="openai/gpt-5.2",
    messages=[{"role": "user", "content": "Bonjour!"}],
)

Works with any OpenAI-compatible SDK — JavaScript, Go, cURL and more on the quickstart. Compare quality and cost on benchmarks and rankings.

More from OpenAI

Route GPT-5.2 in the next five minutes

Free trial credits, list-price pass-through, and a ledger that shows exactly what each call cost.