Models/openai/gpt-image-2

GPT Image 2

prospolabs/gpt-image-2

OpenAI's reasoning-first image model. Generate from a prompt, or edit existing images with optional masks. Best-in-class text rendering and typography.

OpenAIImage to ImageCommercial useTypographytext-to-imageimage-to-image
Up to 40% off

Starts from

$0.0072/ image

Retail $0.012

Pay-as-you-go — no subscription, no tokens.

Call the GPT Image 2 API on Prospolabs with a single POST to /v1/generate using model id gpt-image-2 and a mode field (one of: generate, edit). The API and the playground share the same USD price — $0.0072 (Low) to $0.077 (High) per image — 40% off market. Each call returns a generation_id and an output_url valid for 7 days, and failed runs are auto-refunded.

Quickstart

Send a POST request to /v1/generate with your API key. The model id is gpt-image-2 and a mode field selecting which input shape you're sending..

Create an image from a text prompt.

curl -X POST "https://api.prospolabs.com/v1/generate" \
  -H "Authorization: Bearer $PROSPOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "model": "gpt-image-2",
        "mode": "generate",
        "prompt": "Minimalist product photo of a ceramic coffee mug, soft light",
        "quality": "high",
        "image_size": "landscape_4_3",
        "output_format": "png",
        "num_images": 1,
        "seed": 0
      }'

Backed by openai/gpt-image-2.

Supported parameters for Generate

ParameterTypeDefaultNotes
modestringgenerateRequired. One of: generate, edit.
promptstringRequired.
qualitystringhighOne of: auto, low, medium, high.
image_sizestring | { width, height }landscape_4_3One of: square_hd, square, landscape_4_3, landscape_16_9, portrait_4_3, portrait_16_9. Or pass an object: {"width": int, "height": int}. Width and height must be multiples of 16, between 16 and 3840, with aspect ratio between 1:3 and 3:1.
output_formatstringpngOne of: png, jpeg, webp.
num_imagesnumber1Range: 1–8.
seednumber

Response

{
  "generation_id": "gen_abc123",
  "status": "completed",
  "model": "gpt-image-2",
  "mode": "generate",
  "estimated_cost_usd": 0.60,
  "output_url": "https://cdn.prospolabs.com/...",
  "duration_ms": 2143
}

Output retention: output_url is valid for 7 days after generation. After that, requests return HTTP 410 Gone with { "code": "output_expired" }. Download anything you want to keep.