ChatGPT Images 2.0
Image-модель OpenAI, которая «думает» над композицией: почти безупречный текст внутри картинки на десятках языков и точное следование инструкции. Бери под инфографику, слайды и многоязычные постеры; 1K/2K/4K, правки по всей картинке.
Стоимость
от 1 токенов
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":"студийный портрет рыжего корги, мягкий свет","aspectRatio":"9:16","quality":"medium","imageSize":"1K","sourceImage":"asset://asset_...","referenceAssetUris":["asset://asset_..."]}}'Входные поля
* — обязательное| Поле | Тип | По умолчанию | Допустимо |
|---|---|---|---|
prompt* promptImage description. | string | — | string |
aspectRatio aspectRatio | string | 9:16 | 1:1, 2:3, 3:2, 4:3, 3:4, 4:5, 5:4, 16:9, 9:16, 21:9 |
quality quality | string | medium | low, medium, high |
imageSize imageSize | string | 1K | 1K, 2K, 4K |
Source image sourceImageAsset used as the source image for image editing. | string | — | image · asset, https, data |
Mask image maskImageOptional mask image for region editing. Requires sourceImage. | string | — | image · asset, https, data |
Reference images referenceAssetUrisOptional reference images as asset:// URIs, HTTPS URLs, or data URIs. | array | — | image · до 16 · asset, https, data |
promptImage description.
- Тип
- string
- По умолчанию
- —
- Допустимо
- string
aspectRatio- Тип
- string
- По умолчанию
- 9:16
- Допустимо
- 1:1, 2:3, 3:2, 4:3, 3:4, 4:5, 5:4, 16:9, 9:16, 21:9
quality- Тип
- string
- По умолчанию
- medium
- Допустимо
- low, medium, high
imageSize- Тип
- string
- По умолчанию
- 1K
- Допустимо
- 1K, 2K, 4K
sourceImageAsset used as the source image for image editing.
- Тип
- string
- По умолчанию
- —
- Допустимо
- image · asset, https, data
maskImageOptional mask image for region editing. Requires sourceImage.
- Тип
- string
- По умолчанию
- —
- Допустимо
- image · asset, https, data
referenceAssetUrisOptional reference images as asset:// URIs, HTTPS URLs, or data URIs.
- Тип
- array
- По умолчанию
- —
- Допустимо
- image · до 16 · asset, https, data
Стоимость
от 1 токеновВариант подбирается по полям запроса автоматически — указывать его не нужно.
Возможности
text_to_imageimage_editimage_referencesourceImage:imagemaskImage:imagereferenceAssetUris:image[]<=16Запустить ChatGPT Images 2.0
Получи API-ключ — и этот же запрос заработает для любой модели каталога.