GPT-5.2 is OpenAI's best model for coding and agentic tasks across industries.
Specifications
Context400,000
Maximum Output128,000
Inputtext, image
Outputtext, json
Performance (7-day Average)
Uptime
TPS
Pricing
Standard
Input$1.93/MTokens
Output$15.40/MTokens
Cached Input$0.19/MTokens
Flex
Input$0.96/MTokens
Output$7.70/MTokens
Cached Input$0.10/MTokens
Batch
Input$0.96/MTokens
Output$7.70/MTokens
Cached Input$0.10/MTokens
Usage Statistics
No usage data available for this model during the selected period
View your usage statistics for this model
Similar Models
Code Examples
Use the OpenAI Python SDK to call this model. Replace your-api-key with your API key.
python
from openai import OpenAI
client = OpenAI(
base_url="https://api.ohmygpt.com/v1",
api_key="your-api-key", # Replace with your API key
)
response = client.chat.completions.create(
model="gpt-5.2",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)