GPT Image 2 Image-to-Image
Image Generation - GPT Image 2
GPT Image 2 Image-to-Image
Edit images using GPT Image 2 model (async)
POST
GPT Image 2 Image-to-Image
Edit images using OpenAI’s GPT Image 2 model.
Key Features:
- Image Editing - Provide one or more input images (max 30MB each, jpeg/png/webp/jpg)
- Long Prompts - Supports prompts up to 20000 characters
- Multiple Aspect Ratios - Auto, 1:1, 5:4, 9:16, 21:9, 16:9, 4:3, 3:2, 4:5, 3:4, 2:3
- High Resolution - Supports 1K / 2K / 4K output
- NSFW Filter - Optional NSFW content check (enabled by default)
Authorizations
Please use your API Token for authentication
Body
application/json
Task parameters
Input image URL list (required, max 30MB, supports jpeg/png/webp/jpg)
Minimum array length:
1Example:
[
"https://media.sinancode.com/examples/gpt-image-2/input.png"
]Prompt (required, max 20000 characters)
Required string length:
1 - 20000Example:
"take a photo with Sam Altman in the conference room"
Aspect ratio (optional, default auto)
Available options:
auto, 1:1, 5:4, 9:16, 21:9, 16:9, 4:3, 3:2, 4:5, 3:4, 2:3 Example:
"auto"
NSFW check (optional, default true)
Example:
true
Resolution (optional, default 1K)
Available options:
1K, 2K, 4K Example:
"1K"
Response
OK
Task ID
Example:
"01234567-89ab-cdef-0123-456789abcdef"