OpenAI logo
OpenAI

GPT-5.2 Pro

OpenAI's 2025 most powerful professional model, exceptional in complex reasoning and code generation

Category Text Model ID gpt-5.2-pro
Context Length256K tokens
Model TypeLarge Language Model (LLM)
MultimodalSupports text, image, audio input

ๅฎšไปทไธŽ่ง„ๆ ผ

๐Ÿ’ฐ ๅฎšไปท

่พ“ๅ…ฅ$21 / M tokens
่พ“ๅ‡บ$168 / M tokens

โš™๏ธ ่ง„ๆ ผ

Context Length256K tokens
Model TypeLarge Language Model (LLM)
MultimodalSupports text, image, audio input
Key FeaturesComplex Reasoning, Code Generation, Professional Tasks
Knowledge CutoffDecember 2025

API ่ฐƒ็”จ็คบไพ‹

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://api.xairouter.com/v1",
    api_key="your-api-key"
)

response = client.chat.completions.create(
    model="gpt-5.2-pro",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

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

cURL

curl https://api.xairouter.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-5.2-pro",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ]
  }'