GPT-5.4 mini
Model details
- Model
gpt-5.4-mini- Provider
openai-codex- API
openai-codex-responses- Base URL
https://chatgpt.com/backend-api- Input
- text, image
- Reasoning
- Yes
- Context window
- 272,000
- Max tokens
- 128,000
Show configuration
{
"providers": {
"openai-codex": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "gpt-5.4-mini",
"name": "GPT-5.4 mini",
"reasoning": true,
"input": [
"text",
"image"
],
"thinkingLevelMap": {
"xhigh": "xhigh",
"minimal": "low"
},
"contextWindow": 272000,
"maxTokens": 128000,
"cost": {
"input": 0.75,
"output": 4.5,
"cacheRead": 0.075,
"cacheWrite": 0
},
"compat": {
"supportsToolSearch": true
}
}
],
"api": "openai-codex-responses",
"baseUrl": "https://chatgpt.com/backend-api"
}
}
}Pricing
USD per million tokens. A tier is selected from the total input tokens in each request and applies to that entire request.
| Request input | Input | Output | Cache read | Cache write |
|---|---|---|---|---|
| All requests | $0.75 | $4.5 | $0.075 | $0 |
Session cost calculator
Estimate the requests made during an agent session. A user turn can make several model calls while using tools, so costs are calculated per model request.
Estimated session$0.00
- Uncached input
- —
- Cache reads
- —
- Uncached prefixes
- —
- Cache writes
- —
- Output
- —
- Without caching
- —
The first request starts cold unless marked otherwise. Output is billed separately from context growth because reasoning tokens are not always retained. This remains a directional estimate: providers differ in eligibility, rounding, and retention.
Compatibility flags
Effective values after applying Pi's API defaults and model overrides.
| Feature | Value |
|---|---|
supportsToolSearch | Yes |