gpt-4o API Pricing & Access
GPT-4o is an AI model provided by OpenAI.
Pricing by group
USD per 1M tokens. Price = base price × group ratio.
| Group | Input | Output | Cache read | About this group |
|---|---|---|---|---|
| Azure-Gpt-1 | $0.11 | $0.44 | $0.055 | Maximum discount, weak operational stability |
| Azure-Gpt-2 | $0.25 | $1.00 | $0.125 | Generous discount, response speed may vary at peak hours |
| Azure-Gpt-3 | $0.55 | $2.20 | $0.275 | Moderate discount, decent stability |
| Azure-Gpt-4 | $1.10 | $4.40 | $0.55 | Standard discount, reliable stability |
| Openai-Gpt-1 | $1.471 | $5.882 | $0.7353 | More attractive discount, may queue at peak hours |
| Azure-Gpt-5 | $1.50 | $6.00 | $0.75 | Minor discount, consistent operational stability |
| Openai-Gpt-2 | $1.838 | $7.353 | $0.9191 | Favorable discount, more stable runtime performance |
| Azure-Gpt-6 | $2.25 | $9.00 | $1.125 | Minimal discount, excellent 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
- API formats
- OpenAI Chat Completions
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/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.openlux.ai/v1", api_key="YOUR_API_KEY")
resp = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)Full parameters in the API docs
FAQ
How do I call the gpt-4o 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-4o as the model name.
How is the gpt-4o 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.11 per 1M input tokens and $0.44 per 1M output tokens. Top-ups start at $1.
How is prompt caching billed for gpt-4o?
Cache hits (cache reads) cost 0.5× 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-4o support?
OpenAI Chat Completions.