🎉 Get Free $5 on Signup!
Models
Enterprise
Subscribe
Resource
Documentation
Console

/openai/gpt-5.4-mini

O

OpenAI: gpt-5.4-mini

GPT-5.4 Mini sits between Nano and the flagship tier, offering solid reasoning and professional-task performance at a lower operating cost than GPT-5.4 Pro.

Modefile、image、text → text
Input price$0.75 per M tokens
Output price$4.5 per M tokens
Context length400K tokens
Listed at2026-03-17T00:00:00Z

OpenAI

Latency—
Throughput—
Upload rate—
Context length400K tokens
Max output128K tokens
Input price$0.75per 1M tokens
Output price$4.5per 1M tokens
Cache read$0.075per 1M tokens
Cache write—per 1M tokens

Performance

Avg TPS—
Avg latency—
Avg success rate—
TPS—
TTFT—
Latency—
Success rate—

Success rate

Speed

Code Example

curl ${API_BASE_URL}/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.4-mini",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'

Replace <YOUR_API_KEY> with the API key generated on your token management page.

Authentication

All requests must include the Authorization: Bearer <TOKEN> header.

Endpoint Path

POST
openai

Supported Parameters

ParameterTypeDefaultDescription
boolean-Deprecated alias for reasoning.exclude. When true, reasoning tokens are returned in the response when supported by the model.
integer-This sets the upper limit for the number of tokens the model can generate in response. It won't produce more than this limit. The maximum value is the context length minus the prompt length.
integer-This sets the upper limit for the number of tokens the model can generate in response. It won't produce more than this limit. The maximum value is the context length minus the prompt length.
map-Controls reasoning behavior for models that support thinking tokens, including whether reasoning is enabled, the reasoning effort, maximum reasoning tokens, and whether reasoning is excluded from the response.
map-Forces the model to produce specific output format. Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is valid JSON. **Note**: when using JSON mode, you should also instruct the model to produce JSON yourself via a system or user message.
integer-If specified, the inferencing will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for some models.
boolean-If the model can return structured outputs using response\_format json\_schema.
string or object-Controls which (if any) tool is called by the model. 'none' means the model will not call any tool and instead generates a message. 'auto' means the model can pick between generating a message or calling one or more tools. 'required' means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
array-Tool calling parameter, following OpenAI's tool calling request shape. For non-OpenAI providers, it will be transformed accordingly. [Click here to learn more about tool calling](/docs/guides/features/tool-calling)

Rate Limits

GroupRPMTPMRPD

RPM = requests per minute, TPM = tokens per minute, RPD = requests per day. Limits apply by token group.

Pricing

ProviderBilling typePrice summary
O
OpenAI-Default0%
Expression
Input price$0.75per 1M tokens
Completion price$4.5per 1M tokens
Cache read price$0.075per 1M tokens
Cache write price$—per 1M tokens