Back to Gallery
GPT Image 2.0, OpenAI's latest image model, is capable of creating extremely detailed images with fine typography.
$0.133/image 2026-04-21
Install
pip install requestsRun the model
import requests
response = requests.post(
"https://api.runflow.io/v1/run/gpt-image-2",
headers={"Authorization": "Bearer RUNFLOW_API_KEY"},
json={
"prompt": "A hand-drawn storefront sign reading 'CIRCUIT & GRAIN — specialty coffee' on ..."
},
)
data = response.json()
print(data["images"][0]["url"])Input schema
| Parameter | Type | Description |
|---|---|---|
| prompt | string | The prompt for image generation |
| num_images | integer | Number of images to generate |
| output_format | string | Output format for the images |
| image_size | string | The size of the generated image. Supports preset names or explicit {width, height}. Both dimensions must be multiples of 16, max edge 3840px, aspect ratio <= 3:1, total pixels between 655,360 and 8,294,400. |
| quality | string | Quality for the generated image |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. |
Output schema
| Field | Type | Description |
|---|---|---|
| outputs | json | Unified output array. |
| seed | json | Seed used for generation, or null. |
| timing | json | Provider timing info, or null. |
| nsfw_detected | json | NSFW flag, or null. |
Related models
GPT Image 1.5
openai/gpt-image-1.5
GPT Image 1.5 generates high-fidelity images with strong prompt adherence, prese...
$0.133/image
GPT Image 2 Edit
openai/gpt-image-2/edit
GPT Image 2.0, OpenAI's latest image model, is capable of making fine-grained, d...
$0.133/image
FLUX.2 [klein] 9B
black-forest-labs/flux-2-klein-9b
Text-to-image generation with FLUX.2 [klein] 9B from Black Forest Labs. Enhanced...
$0.006/megapixel
Ideogram v3
ideogram/v3
Generate high-quality images, posters, and logos with Ideogram V3. Features exce...
$0.06/image
Start generating with GPT Image 2
Get API access in minutes. No GPU setup, no infrastructure to manage.