GPT 5.2
OpenAI logo

GPT 5.2

gpt-5.2
OpenAI
GPT‑5.2 builds on GPT‑5.1 with improvements that make interactions more reliable, flexible, and user-friendly. The focus is on delivering clearer responses, better adaptability, and enhanced control for diverse tasks. Key highlights include: Accelerate agent development: Build AI agents for analytics, decision support, code modernization, and data pipelines. Greater consistency: Produces more predictable and accurate outputs aligned with user instructions. Adaptive reasoning: Handles complex queries with improved depth while remaining efficient for simpler tasks. Expanded context handling: Supports longer inputs for multi-step workflows and richer conversations. Refined customization: Offers better control over tone, style, and structured output for tailored experiences. Broader applicability: Strengthens performance across a wide range of domains while maintaining clarity and safety.
This model was retired on 2026-08-31.
Requests return 404 model_retired. All model retirements

Pricing

PricingCache ReadImage GenerationWeb Search
$1.75$14
$0.175/M tokens-$0.01/request

Input Modalities

  • Text
  • Vision
  • PDF

Output Modalities

  • Text

Context length

  • 400K tokens

Max output

  • 128K tokens

Capabilities

  • Thinking
  • Streaming
  • Tool calling
  • Web search
  • URL context
  • Code interpreter
  • Computer use
  • File search
  • Memory tool
  • Structured outputs
  • Citations
  • Prompt caching
  • Background mode
  • Server-side sessions

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://shkq.org/v1",
)

response = client.chat.completions.create(
    model="gpt-5.2",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

What is GPT 5.2?

GPT‑5.2 builds on GPT‑5.1 with improvements that make interactions more reliable, flexible, and user-friendly. The focus is on delivering clearer responses, better adaptability, and enhanced control for diverse tasks. Key highlights include: Accelerate agent development: Build AI agents for analytics, decision support, code modernization, and data pipelines. Greater consistency: Produces more predictable and accurate outputs aligned with user instructions. Adaptive reasoning: Handles complex queries with improved depth while remaining efficient for simpler tasks. Expanded context handling: Supports longer inputs for multi-step workflows and richer conversations. Refined customization: Offers better control over tone, style, and structured output for tailored experiences. Broader applicability: Strengthens performance across a wide range of domains while maintaining clarity and safety.