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 ID | openai/gpt-5.4-image-2 |
|---|---|
| Type | Image |
| Publisher | OpenAI |
| Context window | 272,000 tokens |
| Max output | 128,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 shape | OpenAI-compatible |
| In the catalog since | 2026-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.
| Model | Publisher | Context | Price (per 1M tokens) |
|---|---|---|---|
| GPT-5.4 Image 2 | OpenAI | 272,000 | $8.00 / $30.00 |
Gemini 2.5 Flash Imagegoogle/gemini-2.5-flash-image | 33K | $0.30 / $30.00 | |
Gemini 3.1 Flash Lite Imagegoogle/gemini-3.1-flash-lite-image | 66K | $0.25 / $30.00 | |
Mai Image 2.6microsoft/mai-image-2.6 | Microsoft | $5.00 / $38.00 |
More from OpenAI
- GPT-3.5 Turbo
openai/gpt-3.5-turbo - GPT-3.5 Turbo 0613
openai/gpt-3.5-turbo-0613 - GPT-3.5 Turbo 16K
openai/gpt-3.5-turbo-16k - GPT-4
openai/gpt-4 - GPT-4 Turbo
openai/gpt-4-turbo - GPT-4.1
openai/gpt-4.1 - GPT-4.1 Mini
openai/gpt-4.1-mini - GPT-4.1 Nano
openai/gpt-4.1-nano
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.