ChatGPT Images 2.0
Флагман OpenAI для сложных изображений: точно держит длинные инструкции, многоэлементную композицию и текст внутри кадра на разных языках. Бери под инфографику, слайды, упаковку и многоязычные постеры; 1K/2K/4K, правки по всей картинке.
Coste
desde 1 tokens
IDEMPOTENCY_KEY="${IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.givon.ai/api/v1/generations \
-H "Authorization: Bearer $GIVON_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"image","model":"gpt-image-2","input":{"prompt":"retrato de estudio de un corgi pelirrojo, luz suave","aspectRatio":"9:16","quality":"low","imageSize":"1K","sourceImage":"asset://asset_...","referenceAssetUris":["asset://asset_..."]}}'Campos de entrada
* obligatorio| Campo | Tipo | Predeterminado | Permitido |
|---|---|---|---|
prompt* promptImage description. | string | — | string |
aspectRatio aspectRatio | string | 9:16 | 16:9, 1:1, 21:9, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16 |
quality quality | string | low | 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 · hasta 16 · asset, https, data |
promptImage description.
- Tipo
- string
- Predeterminado
- —
- Permitido
- string
aspectRatio- Tipo
- string
- Predeterminado
- 9:16
- Permitido
- 16:9, 1:1, 21:9, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16
quality- Tipo
- string
- Predeterminado
- low
- Permitido
- low, medium, high
imageSize- Tipo
- string
- Predeterminado
- 1K
- Permitido
- 1K, 2K, 4K
sourceImageAsset used as the source image for image editing.
- Tipo
- string
- Predeterminado
- —
- Permitido
- image · asset, https, data
maskImageOptional mask image for region editing. Requires sourceImage.
- Tipo
- string
- Predeterminado
- —
- Permitido
- image · asset, https, data
referenceAssetUrisOptional reference images as asset:// URIs, HTTPS URLs, or data URIs.
- Tipo
- array
- Predeterminado
- —
- Permitido
- image · hasta 16 · asset, https, data
Coste
desde 1 tokensLa variante se selecciona automáticamente a partir de los campos de la petición; no necesitas enviarla.
Capacidades
text_to_imageimage_editsourceImage:imagemaskImage:imagereferenceAssetUris:image[]<=16Ejecutar ChatGPT Images 2.0
Obtén una clave API y el mismo formato de petición funcionará con cualquier modelo del catálogo.