Skip to main content

Image model

GPT-5.4 Image 2

openai/gpt-5.4-image-2

openai/gpt-5.4-image-2 is an image generation model from OpenAI you can call on the OceanToken API at $8.00 per 1M input tokens and $30.00 per 1M output tokens, with a 272K-token context window and up to 128K output tokens; it supports reasoning, image input.

At a glance

Model IDopenai/gpt-5.4-image-2
TypeImage
PublisherOpenAI
Context window272,000 tokens
Max output128,000 tokens
Input price$8.00 per 1M tokens
Output price$30.00 per 1M tokens
Cached input price$2.00 per 1M tokens
Endpoint/v1/images/generations, /v1/images/edits
API shapeOpenAI-compatible
In the catalog since2026-04-21

Call it

Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.

curl https://api.oceantoken.ai/v1/images/generations \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "openai/gpt-5.4-image-2", "prompt": "A lighthouse at dawn, photographic"}'

Compared with similar models

Image models on OceanToken closest to openai/gpt-5.4-image-2 in price. Every price is what you pay, in US dollars, with no platform fee on top.

ModelPublisherContextPrice (per 1M tokens)
GPT-5.4 Image 2OpenAI272,000$8.00 / $30.00
Gemini 2.5 Flash Image
google/gemini-2.5-flash-image
Google33K$0.30 / $30.00
Gemini 3.1 Flash Lite Image
google/gemini-3.1-flash-lite-image
Google66K$0.25 / $30.00
Mai Image 2.6
microsoft/mai-image-2.6
Microsoft$5.00 / $38.00

More from OpenAI

All OpenAI models on OceanToken

Use it

Create an account All models and prices

Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.