Nano Banana 2
Почти флагманское качество Google на скорости Flash: до 4K, аккуратный текст и консистентность персонажей по референсам. Бери, когда хочешь результат уровня Pro, но быстрее и дешевле.
Coste
desde 3 tokens
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":"nano-banana-2","input":{"prompt":"retrato de estudio de un corgi pelirrojo, luz suave","aspectRatio":"9:16","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 | 9:16, 16:9, 1:1, 4:3, 3:4, 2:3, 3:2, 21:9 |
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 14 · asset, https, data |
promptImage description.
- Tipo
- string
- Predeterminado
- —
- Permitido
- string
aspectRatio- Tipo
- string
- Predeterminado
- 9:16
- Permitido
- 9:16, 16:9, 1:1, 4:3, 3:4, 2:3, 3:2, 21:9
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 14 · asset, https, data
Coste
desde 3 tokensLa variante se selecciona automáticamente a partir de los campos de la petición; no necesitas enviarla.
Capacidades
text_to_imageimage_editimage_referencesourceImage:imagemaskImage:imagereferenceAssetUris:image[]<=14Ejecutar Nano Banana 2
Obtén una clave API y el mismo formato de petición funcionará con cualquier modelo del catálogo.