GPT text model pricing has been updated. All GPT text models are now billed at 10% of OpenAI's official API prices, including the latest official price reductions for GPT-5.6 Terra and Luna.View latest pricing
OpenAI

GPT-5.4

Official

openai/gpt-5.4

The prior-generation GPT-5.4. Strong reasoning and coding at roughly half the token price of 5.5, with a 1M-token context window. A solid default when 5.5 is overkill.

1000K contextVisionReasoningTool callingCodingPrompt cache

Pricing

Source: openai_x0.10 · Verified 2026-08-02

InputOfficial $2.5 / M tokens
$0.25/ M tokensSave 90%
OutputOfficial $15 / M tokens
$1.5/ M tokensSave 90%

Fast $0.5 / $3 /M

Cache read $0.025/M · Cache write /M

TierInputCache readCache writeOutput
Standard ≤272K$0.25$2.5 90%$0.025$0.25 90%$1.5$15 90%
Standard >272K$0.5$5 90%$0.05$0.5 90%$2.25$22.5 90%
Priority$0.5$5 90%$0.05$0.5 90%$3$30 90%

Estimate cost

Estimated cost$0.004

Protocols

  • OpenAI Chat CompletionsStatus: Available: Streaminghttps://api.routemux.com/v1
  • OpenAI ResponsesStatus: Available: Streaminghttps://api.routemux.com/v1
  • Anthropic MessagesStatus: Available: Streaminghttps://api.routemux.com/anthropic
  • Google Vertex AIStatus: Not supported
  • OpenAI ImagesStatus: Not supported
  • OpenAI SoraStatus: Not supported

Call IDs

Use either ID to call this model via the API.

RouteMux nameopenai/gpt-5.4

Try it

Replace the ROUTEMUX_KEY placeholder with your API key. Create one →

from openai import OpenAI

client = OpenAI(
    base_url="https://api.routemux.com/v1",
    api_key="<ROUTEMUX_KEY>",
)

completion = client.chat.completions.create(
    model="openai/gpt-5.4",
    messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)
base_url: https://api.routemux.com/v1

Other variants in this family

Frequently asked questions

What is GPT-5.4?

OpenAI GPT-5.4 — strong general model, 1M context, lower cost than 5.5.

How large is the context window of GPT-5.4?

GPT-5.4 supports a context window of up to 1M tokens, with up to 128K output tokens per request.

How much does the GPT-5.4 API cost?

Through RouteMux, GPT-5.4 costs $0.25 for input and $1.5 for output (USD per 1M tokens), below the official list price.

How do I call GPT-5.4 via API?

GPT-5.4 is OpenAI-compatible: point your base URL at RouteMux and set the model field to openai/gpt-5.4 — no code changes needed.

Which input and output modalities does GPT-5.4 support?

GPT-5.4 accepts text, image as input and produces text as output.