---
title: "GPT-5.4 Mini"
description: "GPT-5.4 Mini by OpenAI: 400K context. Compare provider prices and applicable pricing conditions on the model page. Pay as you go."
canonical: https://pirouter.ai/models/openai/gpt-5.4-mini
last-updated: 2026-10-15
---

# GPT-5.4 Mini

> GPT-5.4 Mini by OpenAI: 400K context. Compare provider prices and applicable pricing conditions on the model page. Pay as you go.

GPT-5.4 Mini brings GPT-5.4's strengths to a faster, more efficient model for high-volume coding, computer use and subagent work. It sits between GPT-5.4 and GPT-5.4 Nano, with a 400K-token context, image input and 128K output.

## At a glance

- Model ID: `openai/gpt-5.4-mini`
- Also accepted as: `gpt-5.4-mini`
- Vendor: OpenAI
- Category: text
- Openness: Proprietary
- Model page: https://developers.openai.com/api/docs/models/gpt-5.4-mini
- Context: 400,000 tokens
- Max output: 128,000 tokens
- Added to pirouter: 2026-03-17
- Knowledge cutoff: 2025-08-31
- Status: Available

## Pricing (USD per 1M tokens)

|  | Input | Output | Cache read | Cache write | Reasoning |
|---|---|---|---|---|---|
| Standard | $0.525 ~~$0.75~~ | $3.15 ~~$4.5~~ | $0.0525 ~~$0.075~~ | $0.65625 ~~$0.9375~~ | $3.15 ~~$4.5~~ |

30% off for a limited time · Ends 2026-10-31 23:59 HKT · Same price on every provider · this is what you are billed.

## Capabilities

- Function calling
- Tool choice
- Parallel tool calls
- Structured outputs
- Response schema
- Reasoning
- Prompt caching
- System messages
- Streaming
- Vision
- PDF input

## Reasoning effort

- xhigh, high, medium, low, minimal, none (default: none)

## How to call it

One pirouter API key works with every API format below; create it in the console. Use one of these formats; formats not listed are not available for this model.

- API key: https://app.pirouter.ai/sign-in

### OpenAI Responses

- Endpoint: `POST /v1/responses` on https://api.pirouter.ai
- Auth: `Authorization: Bearer <key>`
- SDK base URL: https://api.pirouter.ai/v1
- Reference: https://pirouter.ai/docs/api/responses

```bash
curl https://api.pirouter.ai/v1/responses \
  -H "Authorization: Bearer $PIROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.4-mini",
    "input": "Hello!"
  }'
```

### OpenAI Chat

- Endpoint: `POST /v1/chat/completions` on https://api.pirouter.ai
- Auth: `Authorization: Bearer <key>`
- SDK base URL: https://api.pirouter.ai/v1
- Reference: https://pirouter.ai/docs/api/chat-completions

```bash
curl https://api.pirouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $PIROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.4-mini",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'
```

## Providers

One row per provider; pirouter sends each request to a healthy one.

| Provider | API format | Context | Max output | Input /M | Output /M | Trains on your data | Data retention |
|---|---|---|---|---|---|---|---|
| azure | openai | 400,000 | 128,000 | $0.525 ~~$0.75~~ | $3.15 ~~$4.5~~ | No | Limited |

## Rankings

Where this model ranks on each blind-vote leaderboard, listing the boards where it makes the top 100. Open a board for the full ranking.

| Board | Rank | Score |
|---|---|---|
| [Overall](https://pirouter.ai/rankings/overall) | #70 / 385 | 1447 |
| [Coding](https://pirouter.ai/rankings/coding) | #74 / 380 | 1495 |
| [Math](https://pirouter.ai/rankings/math) | #81 / 371 | 1439 |
| [Creative writing](https://pirouter.ai/rankings/creative) | #90 / 383 | 1402 |
| [Instruction following](https://pirouter.ai/rankings/instruct) | #76 / 385 | 1434 |
| [Multi-turn](https://pirouter.ai/rankings/multiturn) | #56 / 383 | 1466 |
| [Long prompts](https://pirouter.ai/rankings/longctx) | #81 / 363 | 1447 |
| [Chinese](https://pirouter.ai/rankings/chinese) | #90 / 362 | 1474 |
| [Web dev](https://pirouter.ai/rankings/webdev) | #74 / 121 | 1397 |
| [Vision](https://pirouter.ai/rankings/vision) | #42 / 144 | 1251 |

Data: [LMArena leaderboard dataset](https://huggingface.co/datasets/lmarena-ai/leaderboard-dataset), used under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Updated 2026-10-01

## Supported parameters

`tools`, `tool_choice`, `parallel_tool_calls`, `response_format`, `structured_outputs`, `max_tokens`, `max_completion_tokens`, `seed`, `reasoning`, `include_reasoning`, `stream`, `n`, `verbosity`

## Links

- HTML: https://pirouter.ai/models/openai/gpt-5.4-mini
- JSON: https://pirouter.ai/api/models/openai/gpt-5.4-mini
- Providers JSON: https://api.pirouter.ai/v1/models/openai/gpt-5.4-mini/endpoints
- Leaderboard ranks (JSON): https://pirouter.ai/api/models/openai/gpt-5.4-mini/rankings
- Catalog: https://pirouter.ai/models
- Quickstart: https://pirouter.ai/docs/quickstart
- How routing works: https://pirouter.ai/docs/routing
- llms.txt: https://pirouter.ai/llms.txt

---

HTML version: https://pirouter.ai/models/openai/gpt-5.4-mini · Machine-readable index: https://pirouter.ai/llms.txt
