GPT-5.1-Codex Mini
OpenAI logo

GPT-5.1-Codex Mini

gpt-5.1-codex-mini
OpenAI

Pricing

  • Input Tokens: $0.25 /M tokens
  • Output Tokens: $2 /M tokens
  • Cache Read: $0.025 /M tokens

Input Modalities

  • Text
  • Vision

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

Providers

OpenAI gpt-5.1-codex-mini
Pricing$0.25$2
Cache$0.025
Context400K
Max output128K
Latency-
Throughput-
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today
Azure gpt-5.1-codex-mini
Pricing$0.25$2
Cache$0.025
Context400K
Max output128K
Latency-
Throughput-
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today

Performance for gpt-5.1-codex-mini

Uptime is the percentage of requests that succeeded over the past 72 hours. AIHubMix continuously monitors every provider and automatically retries with the next-best provider when one returns an error or responds too slowly; Latency is total round-trip time (lower is better); Throughput is how fast the model writes (tokens per second, higher is better).

Uptime
Loading...
Latency
Loading...
Throughput
Loading...

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.1-codex-mini",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

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

Frequently asked questions

What is the context length of GPT-5.1-Codex Mini?

GPT-5.1-Codex Mini has a 400,000 token context window. It supports up to 128,000 output tokens.