gpt-5.1-2025-11-13

Display Name: GPT-5.1
OpenAI
OpenAI
Released on Nov 13 12:00 AM

GPT-5.1 is the 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.38/MTokens
Output$11.00/MTokens
Cached Input$0.14/MTokens
Flex
Input$0.69/MTokens
Output$5.50/MTokens
Cached Input$0.07/MTokens
Batch
Input$0.69/MTokens
Output$5.50/MTokens
Cached Input$0.07/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.1-2025-11-13",
    messages=[
        {"role": "user", "content": "Hello!"}
    ],
)

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