Models/gpt-5.4-mini
Model Code
gpt-5.4-mini
Try now

Model overview

MiniReasoningVisionTools

GPT-5.4 mini is a smaller GPT-5.4 model for high-volume workloads that need strong capability with lower latency and cost. It supports text and image input, text output, tool use, structured outputs, and Responses API access.

Company: OpenAIProvider: OpenAI

Model capabilities

Input modalityT
Output modalityT
Model experience
Function calling
Structured output
Web search
Prefix completion-
Context cache
Batch inference
Fine-tuning×

Model pricing

Input$0.75/1M tokens
Input (cache hit)$0.075/1M tokens
Output$4.50/1M tokens
Input (Batch)$0.375/1M tokens
Input (Batch cache hit)$0.0375/1M tokens
Output (Batch)$2.25/1M tokens

Tool call pricing

Web search Responses API$10/1K calls + model token charges
File search Responses APIUsage based

Rate limits and context

Maximum input length400K
Context length400K
Maximum output length128K
Knowledge cutoff2025-08-31
Supported endpointsResponses / Chat Completions / Batch

API reference

EndpointPOST /v1/chat/completions or POST /v1/responses
SDKOpenAI-compatible

API code examples

Get API Key
from openai import OpenAI

client = OpenAI(
    api_key="$WLROUTER_API_KEY",
    base_url="https://api.wlrouter.com/v1"
)

response = client.chat.completions.create(
    model="gpt-5.4-mini",
    messages=[
        {"role": "user", "content": "Reply with one short sentence."}
    ],
    max_tokens=32
)

print(response.choices[0].message.content)