Models/openai

gpt-5-codex· Released Sep 23, 2025

openai/gpt-5-codex

GPT-5-Codex is a specialized version of GPT-5 optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks....

Input
From$1.03125/M
Output
From$8.25/M
Context
Up to 400K
Max output
Up to 128K
Modalities
TextImageText

Input and output show the lowest price across upstreams, for reference. Your actual prices are listed per upstream below.

Upstreams & pricing
UpstreamContextMax outputInput $/1MOutput $/1MCached input $/1M
Zenlayer AI Gateway-openai_compat (Global)From price
400K128K
$1.03125
$8.25
$0.103125

Routed in real time — you pay the listed price of whichever upstream serves your call.

How to call
curlrequest.sh
curl https://api.tkex.ai/v1/chat/completions \
  -H "Authorization: Bearer $TX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5-codex",
    "messages": [
      {"role": "user", "content": "Say hello in five words."}
    ]
  }'