ChatGPT Images 2.0

OpenAI image model that reasons about composition: excellent text rendering across dozens of languages and close instruction following. Use it for infographics, slides, multilingual posters, and full-image edits in 1K, 2K, or 4K.

Cost

from 1 tokens

ImageProvider: OpenAI
Run generation
curl -X POST https://api.givon.ai/api/v1/generations \
  -H "Authorization: Bearer $GIVON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"image","model":"gpt-image-2","input":{"prompt":"studio portrait of a red corgi, soft light","aspectRatio":"9:16","quality":"medium","imageSize":"1K","sourceImage":"asset://asset_...","referenceAssetUris":["asset://asset_..."]}}'

Input fields

* required
prompt*prompt

Image description.

Type
string
Default
Allowed
string
aspectRatioaspectRatio
Type
string
Default
9:16
Allowed
1:1, 2:3, 3:2, 4:3, 3:4, 4:5, 5:4, 16:9, 9:16, 21:9
qualityquality
Type
string
Default
medium
Allowed
low, medium, high
imageSizeimageSize
Type
string
Default
1K
Allowed
1K, 2K, 4K
Source imagesourceImage

Asset used as the source image for image editing.

Type
string
Default
Allowed
image · asset, https, data
Mask imagemaskImage

Optional mask image for region editing. Requires sourceImage.

Type
string
Default
Allowed
image · asset, https, data
Reference imagesreferenceAssetUris

Optional reference images as asset:// URIs, HTTPS URLs, or data URIs.

Type
array
Default
Allowed
image · up to 16 · asset, https, data

Cost

from 1 tokens
Low · 1K1 tokens
Low · 2K1.5 tokens
Low · 4K3 tokens
Medium · 1Kdefault1.5 tokens
Medium · 2K3 tokens
Medium · 4K5 tokens
High · 1K5 tokens
High · 2K9 tokens
High · 4K15 tokens

The variant is selected automatically from request fields, so you do not need to send it.

Capabilities

Modestext_to_imageimage_editimage_reference
Asset slotssourceImage:imagemaskImage:imagereferenceAssetUris:image[]<=16

Run ChatGPT Images 2.0

Get an API key and the same request shape will work across every model in the catalog.

ChatGPT Images 2.0 API - image generation · Givon AI