gpt-5.1-codex-mini· Released Nov 13, 2025
openai/gpt-5.1-codex-mini
GPT-5.1-Codex-Mini is a smaller and faster version of GPT-5.1-Codex
Input
From$0.20625/M
Output
From$1.65/M
Context
Up to 400K
Max output
Up to 128K
Modalities
ImageTextTextInput and output show the lowest price across upstreams, for reference. Your actual prices are listed per upstream below.
Upstreams & pricing
| Upstream | Context | Max output | Input $/1M | Output $/1M | Cached input $/1M |
|---|---|---|---|---|---|
Zenlayer AI Gateway-openai_compat (Global)From price | 400K | 128K | $0.20625 | $1.65 | $0.020625 |
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.1-codex-mini",
"messages": [
{"role": "user", "content": "Say hello in five words."}
]
}'