Nano Banana Pro
nano_banana_pro
Nano Banana Pro provides enhanced AI-powered image generation with professional reference-image control.
Эндпоинты
Заголовок раздела «Эндпоинты»POST /v1/queue/nano_banana_pro # Создать задачуGET /v1/queue/nano_banana_pro/requests/{request_id}/status # Проверить статусGET /v1/queue/nano_banana_pro/requests/{request_id}/response # Получить результатPUT /v1/queue/nano_banana_pro/requests/{request_id}/cancel # Отменить задачуПараметры запроса
Заголовок раздела «Параметры запроса»curl --location "https://odirouter.ai/model/v1/queue/nano_banana_pro" \ --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" ] }'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
Input image URLs used as reference images or visual context, with up to 14 reference images supported. Up to 6 high-fidelity object images can be included in the final image, and up to 5 person images can be used to preserve character consistency
Output image aspect ratio
By default, the model keeps the output image size consistent with the input image; otherwise it generates a 1:1 square image
Allowed values: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
Output image size tier
Allowed values: 1K, 2K, 4K
Resolution. Use uppercase K, such as 1K, 2K, and 4K
Allowed values: 1K, 2K, 4K
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_pro/requests/mmsu_01hxyz.../response", "status_url": "https://odirouter.ai/model/v1/queue/nano_banana_pro/requests/mmsu_01hxyz.../status", "cancel_url": "https://odirouter.ai/model/v1/queue/nano_banana_pro/requests/mmsu_01hxyz.../cancel", "queue_position": 0}| Поле | Тип | Описание |
|---|---|---|
request_id | string | Идентификатор задачи, используемый во всех последующих операциях. |
response_url | string | URL для получения итогового результата. |
status_url | string | URL для проверки статуса задачи. |
cancel_url | string | URL для отмены задачи. |
queue_position | int | Текущая позиция в очереди. |