OpenAI: GPT 5.4 Nano

gpt-5.4-nano

GPT 5.4 Nano costs $0.260 per million input tokens and $1.63 per million output tokens, supports 400K context, and is available through the OpenAI-compatible API.

GPT-5.4 nano is the most lightweight and cost-efficient variant of the GPT-5.4 family, optimized for speed-critical and high-volume tasks.

Modalities

Text + Image → Text

Input / output price

$0.260 / $1.63 per 1M

Context

400K · max output 128K

Capabilities

ReasoningVisionTool callingLong context

Pricing

Billed per token actually used and deducted from your credits.

ItemUSD per 1M tokens
Input$0.260
Output$1.63
Cached input$0.026

Calculator

Drag the sliders to estimate what this model will cost.

Per request
$0.00208
Per day
$1.04
Per month (30 days)
$31.20

GPT 5.4 Nano: input $0.26/M · output $1.625/M · cached input $0.026/M

Request with these settings
curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-5.4-nano", "max_tokens": 800,
       "messages": [{"role": "user", "content": "…"}]}'

Code samples

OpenAI-compatible. Set the base URL to https://api.geniusrelaygpt.com/v1 and the model to gpt-5.4-nano.

curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.4-nano",
    "stream": true,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Use it in a client: Cursor · Cline · SillyTavern · Codex

Parameters

Common OpenAI parameters can be passed as-is.

temperaturetop_pmax_tokensstreamstoppresence_penaltyfrequency_penaltyseed

FAQ

How is GPT 5.4 Nano billed?
Input is $0.260 and output is $1.63 per million tokens; cached input is $0.026. The charge for every request is listed in Usage Logs in the console.
How long is the context window?
400K tokens. In a long conversation every turn is billed for the full input, so keep the history under control.
Does it support streaming?
Yes. Add "stream": true to the request to receive server-sent events in the OpenAI format.
GPT 5.4 Nano API pricing · GeniusRelay