GPT Image 2 API

OpenAI's flagship image model with strong prompt fidelity, crisp text rendering, and instruction-based editing across up to 16 reference images.

OpenAIImage GenerationReleased Apr 21, 2026Proprietary Endpoint

About GPT Image 2

OpenAI's flagship image model with strong prompt fidelity, crisp text rendering, and instruction-based editing across up to 16 reference images.

Also known as OpenAI GPT Image 2

image generationimage editingtext renderingmulti image

GPT Image 2 specs

Model ID
gpt-image-2
Provider
OpenAI
Category
Image Generation
Released
Apr 21, 2026
Input
TextImage
Output
Image
Endpoints
POST/v1/images/generations
Alternate model IDs
openai/gpt-image-2

GPT Image 2 API pricing

Live pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.

Type
Spec
Rate
Low
per image
$0.012
Medium
per image
$0.106
High
per image
$0.422
Compare on the full pricing page

How to call the GPT Image 2 API

GPT Image 2 runs through POST /v1/images/generations. The request returns a job_id right away; poll GET /v1/jobs/{job_id} until the job completes and read the output URLs from the result. Or add "sync": true to skip polling: the request stays open and returns the finished OpenAI-style image response directly, so OpenAI SDKs work as-is. Get an API key from the EmpirioLabs dashboard.

cURL: submit the job
curl https://api.empiriolabs.ai/v1/images/generations \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "Describe what you want GPT Image 2 to generate."
  }'
cURL: poll for the result
curl https://api.empiriolabs.ai/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY"
Python
import requests

response = requests.post(
    "https://api.empiriolabs.ai/v1/images/generations",
    headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
    json={
        "model": "gpt-image-2",
        "prompt": "Describe what you want GPT Image 2 to generate.",
    },
)
job = response.json()

# Generation runs as an async job. Poll until it completes.
import time
while True:
    status = requests.get(
        f"https://api.empiriolabs.ai/v1/jobs/{job['job_id']}",
        headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
    ).json()
    if status.get("status") in ("completed", "failed"):
        print(status)
        break
    time.sleep(5)
Full GPT Image 2 API reference

GPT Image 2 API parameters

Request parameters supported by the GPT Image 2 API on EmpirioLabs. Defaults apply when a field is omitted.

ParameterTypeDefaultRange / valuesDescription
promptstring--Text prompt. With input images attached, becomes an editing or compositing instruction.
qualityenummediumlow, medium, highRendering quality tier. Higher tiers produce more detail and cost more per image.
sizeenum1024x10241024x1024, 1536x1024, 1024x1536Output resolution: square, landscape, or portrait.
imagearray--Up to 16 input image URLs for editing or multi-reference composition.
num_imagesnumber11 to 4Number of images to generate. Each is billed separately.
moderationenumautoauto, lowContent filtering strictness applied by the model service.
response_formatenumurlurl, b64_jsonReturn signed URLs or base64 image data.

Good to know

Quality tiers Low, Medium, and High set the rendering fidelity and the per-image price. Output sizes are 1024x1024, 1536x1024, and 1024x1536. Attach up to 16 images to edit or composite them, with the prompt as the instruction.

Content safety

  • Generated images pass an automated content-safety check. An image flagged as explicit is not returned. Because the image is generated before the check runs, a flagged generation is still billed.

GPT Image 2 API: common questions

How much does the GPT Image 2 API cost?

On EmpirioLabs, GPT Image 2 is billed pay as you go: Low $0.012 per image; Medium $0.106 per image; High $0.422 per image. The live rate card on this page always matches what the API charges.

Which endpoint does GPT Image 2 use?

GPT Image 2 is served through POST /v1/images/generations on api.empiriolabs.ai with standard bearer-token authentication.

Can I try GPT Image 2 in the browser before integrating?

Yes. The EmpirioLabs playground runs GPT Image 2 in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a GPT Image 2 API key?

Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.

Ready to use better endpoints?

Check out our pricing or reach out if you want your own model deployed on our stack.