Gpt Image 2

Image generationNewAvailable
by OpenAIModel ID: gpt-image-2

OpenAI's state-of-the-art image generation model. Create and edit images from text with strong instruction following, sharp text rendering, and detailed editing.

Price
$0.1536/image
Aspect ratios
1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16
Input โ†’ output
Text โ†’ Image
Developer
OpenAI
Updated
September 24, 2026
01

Playground

Try Gpt Image 2

Input & output

$0.1536/image
Try Gpt Image 2
Advanced settings (1)
Output
Your image appears here.

This run

$0.1536 ยท 15.36 credits

For accounts without a purchase: runs above 2 credits need a top-up.

New here?

10 free credits ($0.10) when you sign up with Google

Usable 24 hours after sign-up, up to 5 runs per day and at most 2 credits per run. Other sign-in methods start without credits.

02

Examples

Real outputs from the public examples of this model on Replicate, with the prompt and settings that produced them. They were not generated live on this page.
  • Example output 1 from Gpt Image 2: A photo of a computer screen displaying a Spotify playlist in golden hour evening in a living room with lots of green plants in the backgrouOpen full size
    InputInput

    Prompt

    A photo of a computer screen displaying a Spotify playlist in golden hour evening in a living room with lots of green plants in the background. The playlist says GPT-image-2. caption is "this new image model from OpenAI is dope." and the artists are Replicate. the songs are themes about open source AI and Machine learning. the account name is Replicate. use the logo for replicate as the profile picture and artist image.

    Settings

    aspect_ratio
    3:2
    quality
    auto
03

About Gpt Image 2

TL;DRAs of September 24, 2026

Gpt Image 2 is a model by OpenAI in the Image generation category. On Railwail, Gpt Image 2 costs $0.1536 per image. Depending on the settings, the price ranges from $0.0144/image to $0.1536/image. Supported aspect ratios: 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, and 9:16.

04

Pricing

Prices in US dollars. Usage is charged from prepaid credits.
quality: autoDefault$0.1536 per image
quality: low$0.0144 per image
quality: medium$0.0564 per image
quality: high$0.1536 per image
  • 1 credit = $0.01

Cost calculator

Price calculator

Variant
/ run

Total

$15.36

1,536 credits

Per run

$0.1536 ยท 15.36 credits

Fixed price per run, known before the run starts.

05

API

Call Gpt Image 2 with your Railwail API key. Use this model ID in the request:
curl https://railwail.com/api/v1/images/generations \
  -H "Authorization: Bearer $RAILWAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "A lighthouse on a rocky coast at sunset, photorealistic"
  }'
Set your key as RAILWAIL_API_KEYCreate API key
06

Specifications

Model ID
gpt-image-2
Developer
OpenAI
Input
Text
Output
Image
Aspect ratios
1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16
Billing
Fixed price, known before the run
Catalog entry updated
September 24, 2026

Input parameters

Inputs and settings from the model's input schema. The example in the API section shows which of them the API accepts.

  • promptrequired
    Type: Text
    Default: โ€“
    Allowed values: โ€“
  • aspectRatio
    Type: Choice
    Default: โ€“
    Allowed values: 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, auto, 1024x1024, 1536x1024, 1024x1536, 1536x1152, 1152x1536, 2048x2048, 2048x1152, 1152x2048, 3840x2160, or 2160x3840

Tags

  • replicate
  • openai
  • text-to-image
07

Use cases

08

Frequently asked questions

What is Gpt Image 2?

Gpt Image 2 is a model by OpenAI in the Image generation category. On Railwail you can call it with an API key through the Railwail API.

How much does Gpt Image 2 cost on Railwail?

On Railwail, Gpt Image 2 costs $0.1536 per image. Depending on the settings, the price ranges from $0.0144/image to $0.1536/image. The price is known before the run starts. Usage is paid from prepaid credits; 1 credit equals $0.01.

Which settings does Gpt Image 2 support?

According to its input schema, Gpt Image 2 knows these parameters: prompt and aspectRatio (1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, auto, 1024x1024, 1536x1024, 1024x1536, 1536x1152, 1152x1536, 2048x2048, 2048x1152, 1152x2048, 3840x2160, or 2160x3840).

How fast is Gpt Image 2?

There are not enough measured runs of Gpt Image 2 on Railwail yet to state a run time. It depends on the input, the settings and the load at the provider.

Is Gpt Image 2 better than FLUX 1.1 Pro?

That depends on the task. Gpt Image 2 (OpenAI) and FLUX 1.1 Pro (Black Forest Labs) are both models in the Image generation category. The comparison page shows their prices and specifications side by side.

Compare Gpt Image 2 and FLUX 1.1 Pro

How do I use Gpt Image 2 through the API?

Create a Railwail API key and send your request with the model ID gpt-image-2. Code examples for curl, Python and JavaScript are in the API section of this page.

09

Comparable models

All in this category

Use Gpt Image 2 via the API

One API key for every model on Railwail. Usage is charged from prepaid credits, 1 credit = $0.01.