YepAPI
OpenAIImage Generation/v1/media/queue

GPT Image 2 API

OpenAI's GPT Image 2 from $0.02 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.02 per image.

No credit card required. Takes 30 seconds.

GPT Image 2 API pricing

Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated October 23, 2026.

BillingPrice
Rate$0.02/image
What it costsPer 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 Image 2.

POST/v1/media/queue

Drop image or click to upload

For image-to-image editing

Response
Hit "Send Request" to see the response

GPT Image 2 specs

ProviderOpenAI
Model IDopenai/gpt-image-2
Endpoint/v1/media/queue
TypeImage Generation
Aspect ratios1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 21:9, auto
Image inputYes

How to get a GPT Image 2 API key

  1. 1

    Create a free account

    Sign up at yepapi.com with Google or email. It takes about 30 seconds and needs no card.

  2. 2

    Create an API key

    Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.

  3. 3

    Call GPT Image 2

    Send a request to /v1/media/queue with the x-api-key header and model "openai/gpt-image-2".

  4. 4

    Pay as you go

    Usage is billed per request from your balance. Top up any amount; there is no subscription.

Strengths

✓
Prompt understanding

GPT Image 2 follows long, conditional prompts closely — counts, spatial relationships, and 'don't include' instructions land more often than with diffusion-only models.

✓
Text inside images

Renders headlines, labels, and packaging copy legibly, which makes it a practical choice for ad creative and mockups.

✓
Image editing

Send a reference image with an instruction to edit, extend, or restyle it while keeping the subject intact.

✓
Nine aspect ratios

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? }

GPT Image 2 vs similar models

Every model below runs on the same API key — switch by changing the model ID.

ModelProviderPrice
GPT Image 2OpenAIfrom $0.02/image
GPT Image 1 MiniOpenAIfrom $0.02/image
GPT-5.4 Image 2OpenAIfrom $0.02/image
GPT-5 Image MiniOpenAIfrom $0.02/image
GPT Image 2.5 FlareOpenAIfrom $0.02/image
GPT Image 2.5 SunburstOpenAIfrom $0.02/image
FLUX 3 Image KleinBlack Forest Labsfrom $0.02/image
Recraft V4.1 FlashRecraftfrom $0.02/image

Why use GPT Image 2 through YepAPI?

✓One API key for all models — no separate accounts
✓No monthly minimums — pay per call
✓Switch models with one line of code
✓Simple REST API — works from any language
✓Unified billing across all providers
✓No rate limits for most use cases

GPT Image 2 API — OpenAI image generation from $0.02

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.02 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.”

Marcus T.

SEO Platform Founder

“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”

Priya S.

Full-Stack Developer

“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”

Jake R.

Indie Hacker

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.02 per image.

GPT 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 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 Image 2 without a card. After that you pay per request at the rates above — there is no subscription.

Use "openai/gpt-image-2" as the model on /v1/media/queue. The short alias "gpt-image" also works.

Ready to use GPT Image 2?

$5 free credit on signup. No credit card required. Pay per call.

Explore more models