Skip to content
Pricing
OpenAI

GPT Image 2 API

Create images with GPT Image 2 using text, images. Available resolutions: 1k / 2k / 4k. Try the current API settings, preview results and reuse your inputs.

Modalities
TextImageImage
Published
1kAbout 62% less than official
$0.02/ request
$0.05268 · official reference
2kAbout 53% less than official
$0.05/ request
$0.10704 · official reference
4kAbout 32% less than official
$0.12/ request
$0.1779 · official reference
Input
Sign in to choose a key from your account.
Generation mode
Describe what you want to create.
Legacy parameters
Request preview
{
  "model": "gpt-image-2",
  "input": {
    "quality": "high",
    "resolution": "2k",
    "output_format": "jpeg",
    "prompt": "Create an exceptionally clear, richly colored cinematic fantasy photograph, one complete 16:9 landscape frame. A magnificent red-gold citadel rises above a golden cloud sea against a deep cobalt-blue sky. A closer three-quarter view from a nearby rocky ridge: the entire citadel occupies about 65 percent of the frame width and 75 percent of its height, with breathing room above its tallest tower. One majestic central keep, four elegant subsidiary towers, broad terracotta copper roofs and monumental sandstone arches form a coherent, memorable architectural silhouette. Avoid a mass of tiny fussy spires. A small traveler in a crimson cloak stands fully visible on the lower-left ridge. Warm clear sunlight from the upper left illuminates the front and side of the castle, revealing individual masonry joints, carved balconies and sharply defined copper roof tiles. Cool cobalt shadows retain visible detail. The air between camera and castle is perfectly clear; the sculptural golden clouds stay below the foundation, with dark blue storm clouds far behind. Brilliant red copper, warm gold and deep cobalt, luminous but controlled highlights. Large-format cinema camera, high resolving power prime lens, deep focus, precise natural edges, strong local contrast in stone and metal, beautifully separated forms. Tactile photographic realism, majestic scale, bold clean visual hierarchy. No diffusion filter, no bloom, no lens flare, no fog over the subject, no soft focus, no motion blur, no film grain, no painterly or smeared details, no sharpening halos. No text, logos, watermark, border, collage, space stations, circular portals or machinery.",
    "aspect_ratio": "16:9"
  }
}
Output
Example output
Citadel above the golden clouds
Open original
Next

GPT Image 2 pricing

Estimate one request, then choose a budget for your workflow.

UsageQuantityRateCost
1k1 request$0.02/ request$0.02
Cost per request$0.02

Public USD estimate. Your account rate and final recorded usage determine the actual charge.

View all specifications and prices
SpecificationOur priceOfficial reference
1k$0.02 / request$0.05268 About 62% less than official
2k$0.05 / request$0.10704 About 53% less than official
4k$0.12 / request$0.1779 About 32% less than official

See what it can create.

Existing examples generated through the platform, with original media and prompts.

A sunlit red-gold citadel with clearly defined stone arches and copper roofs rises above golden clouds against a cobalt-blue sky, with a traveler in the foreground.

Citadel above the golden clouds

View prompt

Create an exceptionally clear, richly colored cinematic fantasy photograph, one complete 16:9 landscape frame. A magnificent red-gold citadel rises above a golden cloud sea against a deep cobalt-blue sky. A closer three-quarter view from a nearby rocky ridge: the entire citadel occupies about 65 percent of the frame width and 75 percent of its height, with breathing room above its tallest tower. One majestic central keep, four elegant subsidiary towers, broad terracotta copper roofs and monumental sandstone arches form a coherent, memorable architectural silhouette. Avoid a mass of tiny fussy spires. A small traveler in a crimson cloak stands fully visible on the lower-left ridge. Warm clear sunlight from the upper left illuminates the front and side of the castle, revealing individual masonry joints, carved balconies and sharply defined copper roof tiles. Cool cobalt shadows retain visible detail. The air between camera and castle is perfectly clear; the sculptural golden clouds stay below the foundation, with dark blue storm clouds far behind. Brilliant red copper, warm gold and deep cobalt, luminous but controlled highlights. Large-format cinema camera, high resolving power prime lens, deep focus, precise natural edges, strong local contrast in stone and metal, beautifully separated forms. Tactile photographic realism, majestic scale, bold clean visual hierarchy. No diffusion filter, no bloom, no lens flare, no fog over the subject, no soft focus, no motion blur, no film grain, no painterly or smeared details, no sharpening halos. No text, logos, watermark, border, collage, space stations, circular portals or machinery.

A sharply defined horned forest guardian crosses a clear emerald rainforest stream, its slate hide and moss lit by amber sunlight beneath turquoise waterfalls.

The emerald rainforest colossus

View prompt

A spectacular, exceptionally sharp live-action fantasy creature photograph in a complete 16:9 landscape frame. Low camera beside a crystal-clear jungle stream, looking up at one colossal horned forest guardian in an emerald rainforest canyon. Its magnificent complete four-legged body fills 70 percent of the image width, seen in a readable three-quarter side view; one expressive broad head and both elegantly swept horns are prominent near the left third. All four powerful legs, its single torso and a short tail have coherent anatomy and fit inside the frame with clear margins. Slate-green rhinoceros-like hide with sharply resolved natural folds, individual moss cushions on its shoulders, wet ivory horns, a vivid amber eye. The head and chest are clearly lit by broad open-sky light; a narrow amber side-backlight outlines its shoulder without obscuring texture. Two turquoise waterfalls and clean vertical rock walls sit behind it, separated from the creature silhouette. Emerald ferns, glossy jade leaves, a few crimson flowers and sharply defined water ripples provide rich color and scale. Clear humid air, no blanket of mist. Premium high-resolution cinematic realism, deep focus across the entire creature, high shutter speed freezing droplets, precise natural microtexture and robust local contrast, open detailed shadows. An awe-inspiring living animal, not a stone statue or a mechanical monster. Avoid glow, bloom, fog veils, backlit haze, shallow focus, motion blur, soft painterly fur, oversharpened halos, extra legs, duplicated heads and cropped horns. No text, watermark, logos, borders, collage, glowing network nodes or futuristic structures.

A violet crystal temple with distinct faceted buttresses stands above transparent turquoise tidal terraces beneath a rose-pink sky.

Temple of the amethyst tides

View prompt

An extraordinary cinematic photograph of an original amethyst tidal temple, complete 16:9 landscape composition, brilliant clarity and rich jewel colors. From a gently elevated wide viewpoint over transparent turquoise water, one monumental violet temple fills 65 percent of the frame width. Its whole silhouette is visible: a single tall triangular sanctuary, six broad faceted amethyst buttresses and two orderly open colonnades rising from dark basalt terraces. The design is bold, coherent, monumental and beautifully readable, with a limited number of large architectural forms instead of countless tiny crystal spikes. Deep violet crystal has physically plausible polished facets, precise edges, subtle internal inclusions and clear specular highlights, mixed with intricately carved but sharply defined dark stone. Thin transparent sheets of turquoise seawater spill down the foreground terraces; individual ripple ridges and submerged paving blocks are crisply resolved. A rose-pink sky and peach clouds form a clean background above a narrow bright horizon. Late-day sunlight from the side and bright sky fill illuminate the front facade; all columns and openings remain distinguishable, with violet shadows retaining detail. A few tiny pilgrims on a causeway establish immense scale. Amethyst purple, sea-glass turquoise and luminous rose with clear color separation. Large-format architectural photography, deep focus, crisp natural microcontrast, extremely clean air, sharp wet stone and crystal surfaces. No diffusion, bloom, heavy mist, sea-spray veil, soft focus, blurry reflections, grain, painterly texture or excessive sharpening. No text, watermark, logo, border, collage, circular portals, planets or futuristic machinery.

A fully visible vermilion dragon with crisp red scales and ivory horns sweeps above sunlit snow ridges and a cliffside timber temple.

Vermilion dragon over the snow peaks

View prompt

A breathtaking, tack-sharp action photograph from an original Eastern fantasy epic, one complete 16:9 landscape image. One magnificent vermilion Eastern dragon flies diagonally above a snowy mountain gorge, filling about 80 percent of the frame width. A graceful single open S-shaped body leads from the tapered tail at upper left to a striking head near the right third; the complete tail, body, horns, whiskers and exactly four small clawed limbs are fully visible with breathing room. No wings. The head is large enough to read at thumbnail size, with one expressive amber eye, beautifully articulated ivory horns, individual golden mane hairs and rows of clearly separated red lacquer-like scales continuing coherently along the muscular body. Bright clear winter sunlight lights the face and red scales from the camera side; a golden edge light adds shape. Freeze the action with a high shutter speed: the head, scales, claws, mane and tail are all in sharp focus. Below, an elegant dark-timber cliff temple with sharply defined tiled roofs stands against white snow ridges, cyan ice and deep ink-blue rocky shadows. Snow crystals and rock strata remain crisp; thin distant clouds stay behind the mountains and never obscure the dragon. Rich vermilion and gold against clean icy whites and blues, precise photographic edges, excellent natural microcontrast, strong separation, deep focus and a lucid monumental composition. Realistic high-end cinematic creature work. No motion blur, haze, bloom, soft focus, grain, painterly smearing, artificial sharpening halos, duplicate heads, tangled coils or extra limbs. No text, watermark, logo, border, collage, planets, portals or science-fiction objects.

What is GPT Image 2?

Create images with GPT Image 2 using text, images. Available resolutions: 1k / 2k / 4k. Try the current API settings, preview results and reuse your inputs.

Describe the subject, composition, lighting and intended use in your prompt. Add reference images when you want to guide the subject or visual style. Choose only the resolution, aspect ratio and output options listed in the current contract; inspect the result before reusing it in your product.

GPT Image 2 specifications

Model IDgpt-image-2
ProviderOpenAI
API/v1/tasks
Resolution1k / 2k / 4k
Aspect ratio21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16
Qualitylow / medium / high
Output formatpng / jpeg / webp
Backgroundauto / transparent / opaque
Reference imagesUp to 20

Before you generate

  • Use the current model ID and the API request shape shown on this page.
  • Generation is asynchronous. Keep the returned task ID to retrieve the result and billing status.
  • Only options supported by the current platform contract are exposed in Playground.

Compare GPT Image 2 with related models

SpecificationGPT Image 2GPT Image 2.5 FlareGPT Image 2.5 Sunburst
ProviderOpenAIOpenAIOpenAI
Input → outputTextImageImageTextImageImageTextImageImage
Selection basisCurrent modelBoth declare text, image input · Same billing unitsBoth declare text, image input · Same billing units
Resolution1k / 2k / 4k1k / 2k / 4k1k / 2k / 4k
Reference images202020
Starting price$0.02 / request$0.03 / request$0.03 / request

Choose by the input types, output settings and billing unit your workflow needs. Try the same prompt across models to compare results for your own use case.

BUILD WITH NEWROUTERS

Build with GPT Image 2 in your app

Submit parameters through the Media Tasks API, then retrieve the result with the task ID. Image and video models keep their own input requirements.

  1. 01
    Get your API key

    Sign in and prepare a key with access to this model.

  2. 02
    Configure your request

    Choose parameters in Playground and copy the API example.

  3. 03
    Run and inspect the result

    Review status, outputs and charges in History.

API integration

POST /v1/tasks · Authorization: Bearer

cURL
curl 'https://newrouters.com/v1/tasks' \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $MODEL_API_KEY" \
  --data '{
  "model": "gpt-image-2",
  "input": {
    "quality": "medium",
    "resolution": "1k",
    "output_format": "jpeg",
    "prompt": "A quiet mountain lake at sunrise, soft morning light."
  }
}'
JavaScript
const response = await fetch("https://newrouters.com/v1/tasks", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer $MODEL_API_KEY"
  },
  body: JSON.stringify({
    "model": "gpt-image-2",
    "input": {
      "quality": "medium",
      "resolution": "1k",
      "output_format": "jpeg",
      "prompt": "A quiet mountain lake at sunrise, soft morning light."
    }
  })
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.text());
Python
import json
import requests

response = requests.post(
    "https://newrouters.com/v1/tasks",
    headers=json.loads("{\"Content-Type\":\"application/json\",\"Authorization\":\"Bearer $MODEL_API_KEY\"}"),
    json=json.loads("{\"model\":\"gpt-image-2\",\"input\":{\"quality\":\"medium\",\"resolution\":\"1k\",\"output_format\":\"jpeg\",\"prompt\":\"A quiet mountain lake at sunrise, soft morning light.\"}}"),
    timeout=300,
)
response.raise_for_status()
print(response.text)

Poll the returned task ID for processing status and output assets.

curl -H "Authorization: Bearer $MODEL_API_KEY" "https://newrouters.com/v1/tasks/$TASK_ID"

Documentation: Authentication · Task status and results · Error handling

Full API parameters and combination constraints

Request parameters

ParameterTypeValues & constraints
sizestringDeprecated compatibility field. Prefer aspect_ratio.
imagesarray
prompt *string
qualityJSON"low" · "medium" · "high"Default: "medium"
backgroundJSON"auto" · "transparent" · "opaque"
resolutionJSON"1k" · "2k" · "4k"Default: "1k"
aspect_ratioJSON"21:9" · "16:9" · "3:2" · "4:3" · "5:4" · "1:1" · "4:5" · "3:4" · "2:3" · "9:16"
output_formatJSON"png" · "jpeg" · "webp"Default: "jpeg"
Full JSON Schema and combination constraints
{
  "type": "object",
  "required": [
    "prompt"
  ],
  "properties": {
    "size": {
      "type": "string",
      "pattern": "^(?:auto|[1-9][0-9]{1,4}x[1-9][0-9]{1,4})$",
      "deprecated": true,
      "description": "Deprecated compatibility field. Prefer aspect_ratio."
    },
    "images": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "maxItems": 20
    },
    "prompt": {
      "type": "string",
      "maxLength": 100000,
      "minLength": 1
    },
    "quality": {
      "enum": [
        "low",
        "medium",
        "high"
      ],
      "default": "medium"
    },
    "background": {
      "enum": [
        "auto",
        "transparent",
        "opaque"
      ]
    },
    "resolution": {
      "enum": [
        "1k",
        "2k",
        "4k"
      ],
      "default": "1k"
    },
    "aspect_ratio": {
      "enum": [
        "21:9",
        "16:9",
        "3:2",
        "4:3",
        "5:4",
        "1:1",
        "4:5",
        "3:4",
        "2:3",
        "9:16"
      ]
    },
    "output_format": {
      "enum": [
        "png",
        "jpeg",
        "webp"
      ],
      "default": "jpeg"
    }
  },
  "additionalProperties": false
}

GPT Image 2 API · Common questions

Answers about pricing, inputs, integration and results.

How much does GPT Image 2 cost?

The current public price starts at $0.02 / request. The pricing section lists each specification. Playground checks your account price before submitting; the completed request records the final charge.

How do I get a NewRouters API key?

Sign in and open Quick Start above the workspace. Select or create a key with access to this model, then copy the request example.

Which inputs and output settings are supported?

Supported input fields: images, prompt, quality, background, resolution, aspect_ratio, output_format. The parameter table includes allowed values and defaults.

Can I use reference images?

Yes. Use the reference mode to upload images or supply their URLs. The current limit is 20 images. Reference images guide a new generation; they do not imply mask editing support.

How do I retrieve results and past requests?

Save the returned task ID and query the task until it succeeds or fails. The History tab lets you reopen your tasks and reuse their parameters.

What happens if the model is closed?

The model keeps its page and identity, but new generation requests are blocked. Existing task records remain accessible. An upstream outage is reported separately from an administrator closing the model.

Read the API documentation ↗

Discover more AI tools

Browse all models ↗

Integration topics / Documentation

All documentation ↗