gpt-5-codex API Pricing & Access
GPT-5-Codex is a version of GPT-5 optimized for agentic coding in Codex. Like its predecessor codex-1, the model is trained on real-world coding tasks using reinforcement learning across diverse environments to produce code that closely matches human style and PR preferences, follow instructions precisely, and iteratively run tests until they pass.
Pricing by group
USD per 1M tokens. Price = base price × group ratio.
| Group | Input | Output | Cache read | About this group |
|---|---|---|---|---|
| Azure-Gpt-4 | $0.55 | $4.40 | $0.055 | Standard discount, reliable stability |
| Azure-Gpt-5 | $0.75 | $6.00 | $0.075 | Minor discount, consistent operational stability |
Snapshot taken at build time on 2026-11-26. Actual charges follow the live price table above and your console.
Capabilities
- Provider
- OpenAI
- Features
- Conversation · Image Recognition · Thinking
- API formats
- OpenAI Responses
Quick start
Base URL: https://api.openlux.ai/v1. Create an API key in the console and replace YOUR_API_KEY in the examples.
curl https://api.openlux.ai/v1/responses \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-5-codex", "input": "Hello"}'from openai import OpenAI
client = OpenAI(base_url="https://api.openlux.ai/v1", api_key="YOUR_API_KEY")
resp = client.responses.create(model="gpt-5-codex", input="Hello")
print(resp.output_text)Full parameters in the API docs
FAQ
How do I call the gpt-5-codex API?
Sign up for OpenLux, create an API key in the console, set the base URL to https://api.openlux.ai/v1 and use gpt-5-codex as the model name.
How is the gpt-5-codex API billed?
Pay as you go: input and output tokens are priced separately, and the price depends on the group you choose. At build time the lowest public group was $0.55 per 1M input tokens and $4.40 per 1M output tokens. Top-ups start at $1.
How is prompt caching billed for gpt-5-codex?
Cache hits (cache reads) cost 0.1× the input price.
Is there a Batch API?
Not at the moment. OpenLux has no Batch API; all requests are real-time calls billed as such. For bulk jobs, send concurrent requests to the regular endpoints.
Which API formats does gpt-5-codex support?
OpenAI Responses.