GPT Image 2
OpenAI's GPT Image 2 from $0.07 per image — best-in-class prompt following and in-image text, via one REST call.
OpenAI's latest image model. Best-in-class prompt understanding and in-image text, nine aspect ratios up to 21:9, and reference-image editing — from $0.07 per image.
No credit card required. Takes 30 seconds.
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 Image 2.
Drop image or click to upload
For image-to-image editing
Pricing
Per-image: from $0.07/image
Endpoint
/v1/media/queue
Strengths
GPT Image 2 follows long, conditional prompts closely — counts, spatial relationships, and 'don't include' instructions land more often than with diffusion-only models.
Renders headlines, labels, and packaging copy legibly, which makes it a practical choice for ad creative and mockups.
Send a reference image with an instruction to edit, extend, or restyle it while keeping the subject intact.
1:1 through 21:9 plus auto, covering square social posts, portrait stories, and ultra-wide banners from a single prompt.
Quick start
Copy this snippet and start making calls with GPT 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-image-2",
"prompt": "A vintage travel poster for a fictional moon colony, bold sans-serif headline reading LUNAR BAY, three astronauts on a ridge, deep indigo sky, screen-printed texture, limited five-color palette",
"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? }Why use GPT Image 2 through YepAPI?
GPT Image 2 API — OpenAI image generation from $0.07
GPT Image 2 is OpenAI's newest image generation model. Its strength is instruction following: complex, multi-clause prompts, accurate object counts, and legible text rendered inside the image itself — the areas where earlier image models tended to drift.
On YepAPI, GPT Image 2 runs on the shared `/v1/media/queue` endpoint at about $0.07 per image with the same `yep_sk_` key you use for chat, SEO, and scraping — no separate OpenAI account or org verification.
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
OpenAI's latest image model. Best-in-class prompt understanding and in-image text, nine aspect ratios up to 21:9, and reference-image editing — from $0.07 per image.
Pricing for GPT Image 2 through YepAPI is based on usage. No monthly minimums — you only pay for what you use.
Sign up for a free API key, then send requests to the /v1/media/queue endpoint.
Ready to use GPT Image 2?
$5 free credit on signup. No credit card required. Pay per call.
Explore more models
GPT-4o Mini
OpenAIAccess GPT-4o Mini through one API key. Fast, cheap, and OpenAI-compatible.
GPT-4o
OpenAIAccess GPT-4o through one API key. Flagship reasoning and multimodal capabilities.
GPT-5.5
OpenAIAccess GPT-5.5 through one API key. OpenAI's newest and most capable model.