GPT-5.4 mini API

Call GPT-5.4 mini from OpenAI through Deftrouter's OpenAI-compatible endpoint: one key, the OpenAI SDK you already use, and usage tracked per key. Access is by request.

Strong small GPT for coding subagents, quick tool use, and high-volume work.

Specifications

Provider OpenAI
Model ID gpt-5.4-mini
Context window 400,000 tokens
Maximum output 128,000 tokens
Input types text, image
Reasoning Yes
Tool calling Yes
Structured output Yes
Open weights No
Released March 17, 2026
Knowledge cutoff August 31, 2025

GPT-5.4 mini API pricing

These are OpenAI's list prices as of November 30, 2026, in US dollars per 1 million tokens. Deftrouter confirms its own price by email when you request access.

Input
$0.75
per 1M tokens
Output
$4.50
per 1M tokens
Cached input
$0.075
per 1M tokens

For example, a request with 10,000 input tokens and 1,000 output tokens costs about $0.012 at list price.

Call GPT-5.4 mini with the OpenAI SDK

Point the OpenAI SDK at Deftrouter and set the model ID. The rest of your code stays the same.

quickstart.py
from openai import OpenAI

client = OpenAI(
    base_url="https://api.deftrouter.com/v1",
    api_key="YOUR_DEFTROUTER_KEY",
)

# Your Deftrouter key, sent to one endpoint for every model.
reply = client.chat.completions.create(
    model="gpt-5.4-mini",
    messages=[{"role": "user", "content": "Hello"}],
)

Request GPT-5.4 mini API access

Access is by request for now. Leave your email and the models you need, and we will email you when your key is ready.

Model names, or the kind of work: coding, reasoning, long documents.

We use these details only to set up your access and to contact you about it. See the privacy page.

GPT-5.4 mini API questions

How do I get GPT-5.4 mini API access?

Request it through Deftrouter: send the form on this page with your email, and we will email you when your key is ready. You then call GPT-5.4 mini with the OpenAI SDK by changing the base URL and the model ID.

How much does the GPT-5.4 mini API cost?

OpenAI lists GPT-5.4 mini at $0.75 per 1 million input tokens and $4.50 per 1 million output tokens as of November 30, 2026. Deftrouter confirms its own price by email when you request access.

What is the context window of GPT-5.4 mini?

GPT-5.4 mini accepts up to 400,000 tokens of context and can return up to 128,000 tokens in a single response.

Does GPT-5.4 mini support tool calling and image input?

GPT-5.4 mini supports tool calling. It accepts images as input.

List price per 1 million tokens, in US dollars
Model Context window Input Output
GPT-6.2 Astra 1,050,000 $8.00 $40.00
GPT-6.2 Sol 1,050,000 $2.00 $10.00
GPT-6.1 Terra 1,050,000 $1.00 $5.00
GPT-6.1 Sol 1,050,000 $2.00 $10.00
GPT-6 Luna 1,050,000 $0.10 $0.50
GPT-6 Sol 1,050,000 $2.00 $10.00

All OpenAI models · All models

Model data from models.dev, retrieved November 30, 2026. Limits and prices are set by the provider and can change. models.dev · OpenAI