GPT-5.2 is OpenAI's best model for coding and agentic tasks across industries.
o4-mini
A smaller model optimized for fast, cost-efficient reasoning. Achieves remarkable performance for its size, particularly in math, coding, and visual tasks.
Specifications
Performance (7-day Average)
Pricing
Usage Statistics
Similar Models
GPT-5 Chat points to the GPT-5 snapshot currently used in ChatGPT. GPT-5 is our next-generation, high-intelligence flagship model. It accepts both text and image inputs, and produces text outputs.
GPT-5.1-Codex is a version of GPT-5 optimized for agentic coding tasks in Codex or similar environments. It's available in the Responses API only and the underlying model snapshot will be regularly updated. If you want to learn more about prompting GPT-5-Codex, refer to our dedicated guide
GPT-5.1-Codex-Max is a version of GPT-5.1-Codex with enhanced capabilities for agentic coding tasks.
Code Examples
Use the OpenAI Python SDK to call this model. Replace your-api-key with your API key.
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="o4-mini",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)