GPT-5.2
openai/gpt-5.2
Overview
Chat
OpenAI's flagship from December 2025 for complex professional work, with configurable reasoning and a 400K-token context.
Made by OpenAI · released Des 2025
Input
Text · Images · FileOutput
Text- Context
- 400.000
- Input, maximum
- 272.000
- Output, maximum
- 128.000
- Default output
- 4.096
- Reasoning Not supported
- Tool calling Supported
- Prompt caching Supported
- Automatic fallback routes Not supported
Routes and pricing
Providers are tried in the order listed below. We try these providers in order. If one fails, we move on to the next, and you pay the rate of the one that answers.
OpenAI
primary- Input
- Rp32.380per million tokens$1.75
- Output
- Rp259.000per million tokens$14
- Cache read
- Rp3.240per million tokens$0.175
Per-part units
- Max tokens per input image
- 36.000 OpenAI images guide, 2026-09-07
- Tokens per input image, low detail
- 308 OpenAI images guide, 2026-09-07
- Tokens per document page
- 40.000 OpenAI PDF guide, 2026-09-07
batch
- Input: Rp16.190 per million tokens
- Output: Rp129.500 per million tokens
- Cache read: Rp1.620 per million tokens
Today's reference rate: Rp18.500/USD
Prices exclude the 5,5% service fee
Data and privacy
OpenAI OpenAI, Your data
- Used to train models
- No
- Retention
- Up to 30 days for abuse monitoring, unless the law requires longer.
- Processing location
- Not stated; storing data in a chosen region is a separate opt-in.
- At indoRouter
- We don't store your prompts or responses. Files you upload, batches, and responses you send with
store: trueare kept encrypted for up to 30 days.
Code samples
Use this model ID with any OpenAI SDK. The base URL is the same for every model.
curl https://api.indorouter.ai/v1/chat/completions \
-H "authorization: Bearer $INDOROUTER_API_KEY" \
-H "content-type: application/json" \
-d '{"model": "openai/gpt-5.2",
"messages": [{"role": "user", "content": "halo"}]}'
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.indorouter.ai/v1",
api_key=os.environ["INDOROUTER_API_KEY"],
)
reply = client.chat.completions.create(
model="openai/gpt-5.2",
messages=[{"role": "user", "content": "halo"}],
)
print(reply.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.indorouter.ai/v1",
apiKey: process.env.INDOROUTER_API_KEY,
});
const reply = await client.chat.completions.create({
model: "openai/gpt-5.2",
messages: [{ role: "user", content: "halo" }],
});
console.log(reply.choices[0].message.content);