Home / Models / GPT-5.2
Legacy · OpenAI

GPT-5.2 API — how expensive is GPT-5 API?

GPT-5.2 (December 2025) at $1.75 / $14 — the 5.2 base model, also served as gpt-5.2-2025-12-11 and gpt-5.2-chat-latest.

Searching for the GPT API? GPT-5.2 is the current GPT release — same endpoint and key across every version, so code written for the GPT API works unchanged when new versions ship.

Pricing

RateOfficialAI Prime TechYou save
Input (per 1M tokens)$1.75$0.2387% OFF
Output (per 1M tokens)$14$1.82

Pay-as-you-go, no subscription. Prompt caching is passed through from the upstream model.

GPT-5.2 API pricing in detail

Anthropic pricing for GPT-5.2 is per million input tokens and per million output tokens: $1.75 and $14 at list. Output tokens are the expensive side, and long answers, extended thinking and agent loops are output-heavy — which is why a model that gets the task right in one attempt is usually cheaper than a nominally cheaper one that needs three. On this gateway the same list rates are billed in credits that cost 87% less than face value, so the effective price is $0.23 per million input tokens and $1.82 per million output tokens.

Prompt caching. A long, stable system prompt or document can be cached; cache writes cost 25% more than a normal input token, and cache hits (cache reads) about a tenth of one, so a 20k-token system prompt reused across a session costs a fraction of resending it. The gateway forwards the cache_control blocks unchanged, and cache read tokens show separately in your usage log.

Batch processing. Anthropic’s Batch API prices asynchronous jobs at half the real-time rate. The gateway serves the real-time Messages API only — batch endpoints are not proxied — so if half-price overnight batches are the core of your workload, run those directly on Anthropic and keep the interactive traffic here, where the credit discount is larger than the batch discount anyway.

Worked example. A Claude Code session that sends 2 million input tokens and receives 100k output tokens costs $4.90 at Anthropic list price and $0.64 here; with a cached system prompt the input side drops further.

Best for

  • Pinned GPT-5.2 workloads
  • Chat applications
  • General writing
  • Migration comparisons

Specifications

ReleaseDecember 2025
Context window272K tokens
Max output128K tokens
VisionYes
Tool useYes
Also served asgpt-5.2-2025-12-11, gpt-5.2-chat-latest
Model IDgpt-5.2

Quick start

OpenAI SDK, OpenAI-compatible endpoint. Create your API key in the Codex group, then point the SDK at the gateway and use model ID gpt-5.2:

export OPENAI_BASE_URL=https://aiprimetech.io/v1
export OPENAI_API_KEY=sk-your-codex-group-key

Works with Codex CLI, Cursor, Cline, Continue and any OpenAI-SDK codebase (chat completions and Responses API).

Works with Claude Code, Cursor, Cline, Aider, and the official Anthropic / OpenAI SDKs. See the 60-second setup guide.

Start using GPT-5.2 today

Instant API key, pay-as-you-go, crypto accepted. 87% below official pricing.

Get Your API Key →

Frequently asked questions

How expensive is GPT-5 API?

GPT-5.2 lists at $1.75 per million input tokens and $14 per million output tokens on Anthropic pricing. Through this gateway the same calls cost $0.23 / $1.82, because credits are bought 87% below face value. Cache hits are cheaper still.

What is the model id for GPT-5.2?

gpt-5.2 — pass it as model in the Messages API or select it with /model in Claude Code. It is listed by GET /v1/models on this gateway.

Does the GPT-5.2 API support prompt caching and batch processing here?

Prompt caching yes — cache_control is forwarded and cache reads are billed at the reduced rate. The Batch API is not proxied; interactive, real-time requests only.

Is this the official Anthropic API?

No. AI Prime Tech is an independent gateway that serves GPT-5.2 through the same Messages API shape and model id. Nothing about the model changes; the billing does.

All models: Claude Fable 5.1 · Claude Opus 5.5 · Claude Sonnet 5.5 · Claude Opus 5 · Claude Sonnet 5 · Claude Fable 5 · Claude Opus 4.8 · Claude Opus 4.7 · Claude Opus 4.6 · Claude Sonnet 4.6 · Claude Opus 4.5 · Claude Sonnet 4.5 · Claude Haiku 4.5 · Claude 1M Context · GPT-6 Astra · GPT-6 Sol · GPT-6 Luna · GPT-5.6 · GPT-5.6 Sol · GPT-5.6 Terra · GPT-5.6 Luna · GPT-5.5 · GPT-5.4 · GPT-5.4 Mini · GPT-5.3 Codex Spark · GPT-5.2 Pro · Gemini 3 Pro · Gemini 3 Flash · MiniMax M3

AI Prime Tech is an independent third-party API gateway. Model names and trademarks belong to their respective owners (Anthropic, OpenAI, Google, MiniMax). No affiliation or endorsement is implied. Effective price = official rate ÷ the top-up multiplier: the gateway bills official per-token rates in credits, and credits are bought below face value. Rates shown are read from this site's live settings.

All models

Claude Fable 5.1 APIClaude Opus 5.5 APIClaude Sonnet 5.5 APIClaude Opus 5 APIClaude Sonnet 5 APIClaude Fable 5 APIClaude Opus 4.8 APIClaude Opus 4.7 APIClaude Opus 4.6 APIClaude Sonnet 4.6 APIClaude Opus 4.5 APIClaude Sonnet 4.5 APIClaude Haiku 4.5 APIClaude 1M Context APIGPT-6 Astra APIGPT-6 Sol APIGPT-6 Luna APIGPT-5.6 APIGPT-5.6 Sol APIGPT-5.6 Terra APIGPT-5.6 Luna APIGPT-5.5 APIGPT-5.4 APIGPT-5.4 Mini APIGPT-5.3 Codex Spark APIGPT-5.2 Pro APIGemini 3 Pro APIGemini 3 Flash APIMiniMax M3 API

Guides & pricing

The Claude Code API explainedClaude API integration guideAll Claude model names comparedClaude Code pricing explainedClaude API pricing explainedHow to get a Claude API keyClaude API errors & fixesCheapest way to use the Claude API