GPT-5-Codex
OpenAI logo

GPT-5-Codex

gpt-5-codexllms.txt
OpenAI
Hot
GPT-5-Codex is a version of GPT-5 optimized for autonomous coding tasks in Codex or similar environments. It is only available in the Responses API, and the underlying model snapshots will be updated regularly. https://docs.aihubmix.com/en/api/Responses-API You can also use it in codex-cll; see https://docs.aihubmix.com/en/api/Codex-CLI for using codex-cll through Aihubmix.

Pricing

  • Input Tokens: $1.250 /M tokens
  • Output Tokens: $10.000 /M tokens
  • Cache Read: $0.125 /M tokens

Input Modalities

  • Text
  • Vision

Output Modalities

  • Text

Capabilities

  • Thinking
  • Tools
  • Tool calling
  • Structured outputs

Providers

Azure gpt-5-codex
Pricing$1.250$10.000
Cache$0.125
Context400K
Max output128K
Latency7.5S
Throughput27.2TPS
Uptime
0.00% uptime 3 days ago
100.00% uptime 2 days ago
100.00% uptime yesterday
OpenAI gpt-5-codex
Pricing$1.250$10.000
Cache$0.125
Context400K
Max output128K
Latency7.5S
Throughput27.2TPS
Uptime
0.00% uptime 3 days ago
0.00% uptime 2 days ago
0.00% uptime yesterday

Performance for gpt-5-codex

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://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="gpt-5-codex",
    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-Codex?

GPT-5-Codex is a version of GPT-5 optimized for autonomous coding tasks in Codex or similar environments. It is only available in the Responses API, and the underlying model snapshots will be updated regularly. https://docs.aihubmix.com/en/api/Responses-API You can also use it in codex-cll; see https://docs.aihubmix.com/en/api/Codex-CLI for using codex-cll through Aihubmix.