GPT-5.4 Image 2 API
GPT-5.4 Image 2 from $0.02 per image — reasoning-led image generation on the unified media endpoint.
GPT-5.4's image generation head. Reasoning-led image generation that interprets long, nuanced briefs — from $0.02 per image, with reference-image editing.
No credit card required. Takes 30 seconds.
GPT-5.4 Image 2 API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated October 23, 2026.
| Billing | Price |
|---|---|
| Rate | $0.02/image |
| What it costs | Per job |
|---|---|
| 1 imagefrom default size | $0.02 |
| 100 imagesa product catalog batch | $2.00 |
| 1,000 imagesa month of app traffic | $20.00 |
2,400+
Developers
1.2M+
API calls served
100+
Endpoints
$0.01
Per call
Yep, that's it.
Try it live
Enter a prompt and generate an image with GPT-5.4 Image 2.
Drop image or click to upload
For image-to-image editing
GPT-5.4 Image 2 specs
| Provider | OpenAI |
|---|---|
| Model ID | openai/gpt-5.4-image-2 |
| Endpoint | /v1/media/queue |
| Type | Image Generation |
| Image input | Yes |
How to get a GPT-5.4 Image 2 API key
- 1
Create a free account
Sign up at yepapi.com with Google or email. It takes about 30 seconds and needs no card.
- 2
Create an API key
Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.
- 3
Call GPT-5.4 Image 2
Send a request to /v1/media/queue with the x-api-key header and model "openai/gpt-5.4-image-2".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
Strengths
Built on the GPT-5.4 stack, it reasons about the brief before rendering, which helps on prompts with constraints, counts, and relationships.
Long creative directions — mood, lens, materials, what to avoid — survive into the final image instead of being averaged away.
Send a reference image to edit or restyle while keeping the original composition.
Flagship-class output at the same per-image price band as GPT Image 2, billed from your prepaid balance.
Quick start
Copy this snippet and start making calls with GPT-5.4 Image 2.
// Step 1: Submit job
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "openai/gpt-5.4-image-2",
"prompt": "An architectural render of a library built inside a decommissioned grain silo — four floating mezzanines, a single skylight column, warm oak against raw concrete, morning haze",
"options": {
"aspectRatio": "1:1"
}
}),
});
const { data } = await res.json();
const jobId = data.jobId;
// Step 2: Poll for result
const status = await fetch(`https://api.yepapi.com/v1/media/status/${jobId}`, {
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status: "pending" | "processing" | "completed" | "failed"
// job.result: { text?, image?, audio?, video? }GPT-5.4 Image 2 vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price |
|---|---|---|
| GPT-5.4 Image 2 | OpenAI | from $0.02/image |
| GPT Image 2 | OpenAI | from $0.02/image |
| GPT Image 1 Mini | OpenAI | from $0.02/image |
| GPT-5 Image Mini | OpenAI | from $0.02/image |
| GPT Image 2.5 Flare | OpenAI | from $0.02/image |
| GPT Image 2.5 Sunburst | OpenAI | from $0.02/image |
| FLUX 3 Image Klein | Black Forest Labs | from $0.02/image |
| Recraft V4.1 Flash | Recraft | from $0.02/image |
Why use GPT-5.4 Image 2 through YepAPI?
GPT-5.4 Image 2 API — reasoning-led image generation
GPT-5.4 Image 2 is the image generation model built on OpenAI's GPT-5.4 line. Because it reasons over the brief before rendering, it holds onto constraints — object counts, spatial relations, explicit exclusions — that purely diffusion-driven models tend to lose.
On YepAPI it is one `POST /v1/media/queue` call away at about $0.02 per image, with the same key, envelope, and billing as every other model.
Start generating in 30 seconds
$5 free credit on signup. No credit card required. Pay per call.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
GPT-5.4's image generation head. Reasoning-led image generation that interprets long, nuanced briefs — from $0.02 per image, with reference-image editing.
GPT-5.4 Image 2 costs from $0.02/image through YepAPI, billed per request with no monthly fee. For example, a 1 image (from default size) costs about $0.02.
Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for GPT-5.4 Image 2 and every other model — no separate OpenAI account or waitlist.
New YepAPI accounts in most countries get free signup credit, enough to test GPT-5.4 Image 2 without a card. After that you pay per request at the rates above — there is no subscription.
Use "openai/gpt-5.4-image-2" as the model on /v1/media/queue. The short alias "gpt-5-4-image" also works.
Ready to use GPT-5.4 Image 2?
$5 free credit on signup. No credit card required. Pay per call.
Explore more models
GPT-5 Image
OpenAIGPT-5 Image from $0.09 per image — detailed, prompt-faithful generation through one API key.
GPT Image 2.5 Sunburst
OpenAIOpenAI's GPT Image 2.5 Sunburst from $0.02 per image — the precision tier of GPT Image 2.5 via one REST call.
GPT Image 2.5 Flare
OpenAIOpenAI's GPT Image 2.5 Flare from $0.02 per image — the speed tier of GPT Image 2.5 for everyday volume.
FLUX 3 Image
Black Forest LabsFLUX 3 Image from $0.11 per image — Black Forest Labs' flagship generation and editing model via one REST call.
MAI-Image-2.6
MicrosoftMicrosoft MAI-Image-2.6 from $0.09 per image — design-ready generation and editing through one API key.
MAI Image 2.5
MicrosoftMicrosoft MAI Image 2.5 from $0.11 per image — general-purpose generation through one API key.
More Image Generation models
- Krea K3 Edit API · Krea
- Qwen Image 3 Pro API · Qwen
- FLUX.2 Flex API · Black Forest Labs
- FLUX.2 Pro API · Black Forest Labs
- Seedream 5.0 Lite API · ByteDance
- Recraft V4 Styles Vector API · Recraft
- Recraft V4.1 Vector API · Recraft
- Recraft V4 Pro API · Recraft
- Riverflow 2 Fast API · Sourceful
- Meta Muse Image API · Meta
- Qwen Image 3 API · Qwen
- FLUX 3 Image Klein API · Black Forest Labs