GPT Image 2 Image API Parameters
The GPT Image 2 asynchronous image contract accepted by this API.
Model summary
- Provider
- GRSAI
- Region
- Global
- Fixed credit cost
- 20
- Output type
- image
- Operations
- generation, edit
- Image sizes
- 1K
Generation request
json
{
"model": "gpt-image-2",
"prompt": "A cinematic product photograph with soft studio lighting",
"size": "1024x1024",
"response_format": "url"
}Image field contract
| Field | Use | Values |
|---|---|---|
model | Required model ID | gpt-image-2 |
prompt | Required generation or editing instruction | 1–20,000 characters |
size | Pixel dimensions | 256–1024 pixels per side |
image_urls | Required only for edits | 1–16 public HTTPS URLs |
response_format | Optional | url |