OpenAI

GPT-5.4 Mini

Chat
Not available
Get started

Compact reasoning model with extended 400K context. Balanced cost-performance for reasoning tasks.

Context
400Ktokens
Max output
128Ktokens
Latency
~10ms
Released
2026-06

Pricing

$ / 1M tokens
Input
$0.75/M
Output
$4.50/M
Cache Read
$0.075/M
Cache Write
$0.75/M

Capabilities

4 listed
  • Chat
  • Tool Use
  • Vision
  • Coding

Code examples

POST /v1/chat/completions
python
from openai import OpenAI

client = OpenAI(
    api_key="your_api_key",
    base_url="https://api.modelstack.cc/v1",
)

response = client.chat.completions.create(
    model="gpt-5.4-mini",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Related models

Frequently asked questions

How is GPT-5.4 Mini billed on ModelStack?expand_more
ModelStack bills based on actual request usage. Input, output, cache, and any other applicable rates follow the live pricing table on this page. Final request costs are available in the console.
What are the context window and maximum output for GPT-5.4 Mini?expand_more
GPT-5.4 Mini has a 400K context window and supports up to 128K of output.
How can I call GPT-5.4 Mini through ModelStack?expand_more
Use the model ID `gpt-5.4-mini` with any OpenAI-compatible SDK pointed at the ModelStack API — see the code examples above for Python, Node.js, and cURL.
Which capabilities does GPT-5.4 Mini support?expand_more
GPT-5.4 Mini supports: Chat, Tool Use, Vision, Coding.