GPT Image 2
OpenAI's latest image generation model
model: "gpt-image-2"
Modes
One model id, every mode below. The fields you send pick the mode, and the price follows the mode.
| Mode | Selected by | Typical price |
|---|---|---|
| Text to image | promptExample request{
"model": "gpt-image-2",
"input": {
"prompt": "a lighthouse at dusk"
}
} | $0.041 |
| Image edit | image_urlExample request{
"model": "gpt-image-2",
"input": {
"prompt": "a lighthouse at dusk",
"image_url": "https://example.com/image.jpg"
}
} | $0.197 |
Input
Prompt
Image Size
Number of Images
Source image to edit or vary (https URL, or an upload URL from POST /v1/uploads). Leave it out to generate from the prompt alone.
More source images (https URLs), for edits that combine several images. image_url, if sent, is the first.
Advanced options (2)
Provider settings beyond the main controls. Leave them empty to use the model's defaults.
Compression level of the output file.
File format of the result.
Result
Example outputA real result from this model. Run it to see yours here.
curl https://arteza.ai/api/v1/generations \
-H "Authorization: Bearer $ARTEZA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"input": {
"prompt": "Extreme macro of fresh wasabi being hand-grated on a sharkskin oroshigane, pale green paste accumulating in delicate curls at the leading edge, raking cool north-light revealing every cellulose fiber and fine moisture bead on the rhizome surface, square abstract food and craft composition, muted jade and pale ivory palette, fine grated mist suspended above the grater teeth, entirely unpeopled, precise botanical clarity"
}
}'Made with GPT Image 2






Related models
ImageNewByteDance
Seedream 5.0 Lite
Latest generation with deep-thinking mode
ImageNewByteDance
Seedream 5.0 Pro
Flagship deep-thinking image model with on-image text and precise editing
ImageNewBlack Forest Labs
FLUX 2 Pro
Production-grade photorealism
ImageNewBlack Forest Labs
FLUX Kontext Pro
Edit images with text instructions
ImageNewBlack Forest Labs
FLUX Pro Ultra
Maximum quality, up to 2K resolution
ImageNewBlack Forest Labs
FLUX.1 Dev
High-quality image generation with fine control