Перейти к содержимому
Главная

Nano Banana

nano_banana

Nano Banana provides AI-powered image generation with text prompts and reference-image inputs.

POST /v1/queue/nano_banana # Создать задачу
GET /v1/queue/nano_banana/requests/{request_id}/status # Проверить статус
GET /v1/queue/nano_banana/requests/{request_id}/response # Получить результат
PUT /v1/queue/nano_banana/requests/{request_id}/cancel # Отменить задачу
Окно терминала
curl --location "https://odirouter.ai/model/v1/queue/nano_banana" \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"prompt": "A red apple on a white table, clean studio lighting, simple background.",
"image_urls": [
"https://example.com/reference-image.webp"
]
}'
prompt string обязательно

Image generation prompt

For realistic scenes, use photography terms such as camera angle, lens type, lighting, and detail level

For stylized illustrations, stickers, icons, or assets, clearly describe the style and ask for a transparent background when needed

For text inside the image, state the exact text, font style, and overall design

For product mockups and commercial photography, describe a clean professional product shot suitable for ecommerce, ads, or branding

For minimal layouts and negative space, describe where text or marketing content should be overlaid later

Length: 1 - 2500 characters

image_urls string[]

Input image URLs used as reference images or visual context, with up to 3 images supported

aspect_ratio string

Output image aspect ratio

Allowed values: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9

image_size string

Output image size tier

Allowed values: 1K

resolution string

Output image resolution

Allowed values: 1024x1024, 832x1248, 1248x832, 864x1184, 1184x864, 896x1152, 1152x896, 768x1344, 1344x768, 1536x672

response_modalities string[]

Controls which response modalities the model returns

By default, the model returns text and image responses: ["Text", "Image"]; pass ["Image"] to return only images without text

{
"request_id": "mmsu_01hxyz...",
"response_url": "https://odirouter.ai/model/v1/queue/nano_banana/requests/mmsu_01hxyz.../response",
"status_url": "https://odirouter.ai/model/v1/queue/nano_banana/requests/mmsu_01hxyz.../status",
"cancel_url": "https://odirouter.ai/model/v1/queue/nano_banana/requests/mmsu_01hxyz.../cancel",
"queue_position": 0
}
ПолеТипОписание
request_idstringИдентификатор задачи, используемый во всех последующих операциях.
response_urlstringURL для получения итогового результата.
status_urlstringURL для проверки статуса задачи.
cancel_urlstringURL для отмены задачи.
queue_positionintТекущая позиция в очереди.