OpenAI
A hosted service with its own key and prices. This page lists the addresses it answers, the facts its documentation states, and the setup of each harness.
Addresses and facts
- OpenAI Responses:
https://api.openai.com/v1provider documentation, read - OpenAI Chat Completions:
https://api.openai.com/v1provider documentation, read
- Authentication
- Authorization: Bearer, with the key in
OPENAI_API_KEYprovider documentation, read - Structured output
- JSON schema output with strict mode. provider documentation, read
- Tool calling
- provider documentation, read
- Rate limits
- Read the page provider documentation, read
- Prices
- Read the page provider documentation, read
- Data retention
- Abuse monitoring logs are kept for up to 30 days by default. Zero data retention is offered to approved organizations. Read the page provider documentation, read
- Documentation
- Unknown
- Output limits Baltor recorded
- Baltor's own provider client declares an output limit for gpt-6-astra (128,000 tokens, 2026-09-04). Baltor records, read
Harness setup
Replace chatgpt-image-latest with the model you want.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"openai": {
"npm": "@ai-sdk/openai-compatible",
"name": "OpenAI",
"options": {
"baseURL": "https://api.openai.com/v1",
"apiKey": "{env:OPENAI_API_KEY}"
},
"models": {
"chatgpt-image-latest": {
"name": "chatgpt-image-latest"
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"openai": {
"baseUrl": "https://api.openai.com/v1",
"api": "openai-completions",
"apiKey": "$OPENAI_API_KEY",
"models": [
{
"id": "chatgpt-image-latest"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Put this in ~/.codex/config.toml:
model = "chatgpt-image-latest"- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Claude Code sends Anthropic Messages requests, and OpenAI documents no such address. A gateway that translates to that API can sit in between.
- Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.
From Claude Code documentation, read .
Models it lists
Prices in US dollars per million tokens, input and output, as models.dev, read records them.
| Model | Input | Output | Context | As of |
|---|---|---|---|---|
chatgpt-image-latest chatgpt-image-latest | Unknown | Unknown | Unknown | |
GPT-3.5-turbo gpt-3.5-turbo | 0.500 USD | 1.50 USD | 16,385 | older than 30 days |
GPT-4 gpt-4 | 30.00 USD | 60.00 USD | 8,192 | older than 30 days |
GPT-4 Turbo gpt-4-turbo | 10.00 USD | 30.00 USD | 128,000 | older than 30 days |
GPT-4.1 gpt-4.1 | 2.00 USD | 8.00 USD | 1,047,576 | older than 30 days |
GPT-4.1 mini gpt-4.1-mini | 0.400 USD | 1.60 USD | 1,047,576 | older than 30 days |
GPT-4.1 nano gpt-4.1-nano | 0.100 USD | 0.400 USD | 1,047,576 | older than 30 days |
GPT-4o gpt-4o | 2.50 USD | 10.00 USD | 128,000 | older than 30 days |
GPT-4o (2024-05-13) gpt-4o-2024-05-13 | 5.00 USD | 15.00 USD | 128,000 | older than 30 days |
GPT-4o (2024-08-06) gpt-4o-2024-08-06 | 2.50 USD | 10.00 USD | 128,000 | older than 30 days |
GPT-4o (2024-11-20) gpt-4o-2024-11-20 | 2.50 USD | 10.00 USD | 128,000 | older than 30 days |
GPT-4o mini gpt-4o-mini | 0.150 USD | 0.600 USD | 128,000 | older than 30 days |
GPT-5 gpt-5 | 1.25 USD | 10.00 USD | 400,000 | older than 30 days |
GPT-5 Mini gpt-5-mini | 0.250 USD | 2.00 USD | 400,000 | older than 30 days |
GPT-5 Nano gpt-5-nano | 0.050 USD | 0.400 USD | 400,000 | older than 30 days |
GPT-5 Pro gpt-5-pro | 15.00 USD | 120.00 USD | 400,000 | older than 30 days |
GPT-5.1 gpt-5.1 | 1.25 USD | 10.00 USD | 400,000 | older than 30 days |
GPT-5.2 gpt-5.2 | 1.75 USD | 14.00 USD | 400,000 | older than 30 days |
GPT-5.2 Chat gpt-5.2-chat-latest | 1.75 USD | 14.00 USD | 128,000 | older than 30 days |
GPT-5.2 Pro gpt-5.2-pro | 21.00 USD | 168.00 USD | 400,000 | older than 30 days |
GPT-5.3 Chat (latest) gpt-5.3-chat-latest | 1.75 USD | 14.00 USD | 128,000 | older than 30 days |
GPT-5.3 Codex gpt-5.3-codex | 1.75 USD | 14.00 USD | 400,000 | older than 30 days |
GPT-5.3 Codex Spark gpt-5.3-codex-spark | 1.75 USD | 14.00 USD | 128,000 | older than 30 days |
GPT-5.4 gpt-5.4 | 2.50 USD | 15.00 USD | 1,050,000 | older than 30 days |
GPT-5.4 mini gpt-5.4-mini | 0.750 USD | 4.50 USD | 400,000 | older than 30 days |
GPT-5.4 nano gpt-5.4-nano | 0.200 USD | 1.25 USD | 400,000 | older than 30 days |
GPT-5.4 Pro gpt-5.4-pro | 30.00 USD | 180.00 USD | 1,050,000 | older than 30 days |
GPT-5.5 gpt-5.5 | 5.00 USD | 30.00 USD | 1,050,000 | older than 30 days |
GPT-5.5 Pro gpt-5.5-pro | 30.00 USD | 180.00 USD | 1,050,000 | older than 30 days |
GPT-5.6 gpt-5.6 | 4.00 USD | 20.00 USD | 1,050,000 | older than 30 days |
GPT-5.6 Luna gpt-5.6-luna | 0.200 USD | 1.20 USD | 1,050,000 | older than 30 days |
GPT-5.6 Sol gpt-5.6-sol | 4.00 USD | 20.00 USD | 1,050,000 | older than 30 days |
GPT-5.6 Terra gpt-5.6-terra | 2.00 USD | 12.00 USD | 1,050,000 | older than 30 days |
GPT-6 Astra gpt-6-astra | 10.00 USD | 50.00 USD | 1,050,000 | |
GPT-6 Luna gpt-6-luna | 0.100 USD | 0.500 USD | 1,050,000 | |
GPT-6 Sol gpt-6-sol | 2.00 USD | 10.00 USD | 1,050,000 | |
gpt-image-1 gpt-image-1 | Unknown | Unknown | Unknown | |
gpt-image-1-mini gpt-image-1-mini | Unknown | Unknown | Unknown | |
gpt-image-1.5 gpt-image-1.5 | Unknown | Unknown | Unknown | |
gpt-image-2 gpt-image-2 | 5.00 USD | 30.00 USD | Unknown | older than 30 days |
GPT-Realtime-2.1 gpt-realtime-2.1 | 4.00 USD | 24.00 USD | 128,000 | older than 30 days |
o1 o1 | 15.00 USD | 60.00 USD | 200,000 | older than 30 days |
o1-pro o1-pro | 150.00 USD | 600.00 USD | 200,000 | older than 30 days |
o3 o3 | 2.00 USD | 8.00 USD | 200,000 | older than 30 days |
o3-mini o3-mini | 1.10 USD | 4.40 USD | 200,000 | older than 30 days |
o3-pro o3-pro | 20.00 USD | 80.00 USD | 200,000 | older than 30 days |
o4-mini o4-mini | 1.10 USD | 4.40 USD | 200,000 | older than 30 days |
text-embedding-3-large text-embedding-3-large | 0.130 USD | 0 USD | 8,191 | older than 30 days |
text-embedding-3-small text-embedding-3-small | 0.020 USD | 0 USD | 8,191 | older than 30 days |
text-embedding-ada-002 text-embedding-ada-002 | 0.100 USD | 0 USD | 8,192 | older than 30 days |
Sources of this page
- developers.openai.com/api/docs/guides/structured-outputs, read
- developers.openai.com/api/docs/guides/function-calling, read
- developers.openai.com/api/docs/guides/rate-limits, read
- developers.openai.com/api/docs/pricing, read
- developers.openai.com/api/docs/guides/your-data, read
- models.dev/api.json, read
- github.com/alisonjieli-png/loop-engine/blob/main/src/loop_engine/core/openai_responses_client.py, read
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.