curl-X POST 'https://pollo.ai/api/platform/v1/generation/google/nano-banana-2-1/image'\-H'Content-Type: application/json'\-H'x-api-key: YOUR_API_KEY'\-d'{ "input": { "prompt": "A cinematic shot of a golden retriever running through a field of sunflowers at sunset, warm rim light, shallow depth of field", "aspectRatio": "1:1", "resolution": "1K", "thinkingLevel": "minimal" }}'
При желании укажите webhookUrl, чтобы получать обратный вызов в случае успешного или неудачного выполнения задачи.
Необязательное поле запроса
{"input":{"prompt":"A cinematic shot of a golden retriever running through a field of sunflowers at sunset, warm rim light, shallow depth of field","aspectRatio":"1:1","resolution":"1K","thinkingLevel":"minimal"},"webhookUrl":"https://example.com/webhooks/pollo"}
Схема
Поля ввода для выбранной конечной точки и режима.
Поле
Тип
Необходимый
Описание
prompt
string
Да
Text prompt describing the content to generate.
aspectRatio
string
Нет
Output aspect ratio, as width:height (e.g. 16:9).
resolution
string
Нет
Output resolution of the generated media (e.g. 720p, 1080p, 2K, 4K). Values are case-insensitive.
thinkingLevel
string
Нет
How much the model reasons before generating the image. Higher levels may improve quality but take longer.
Ошибки
Типичные коды ответов общедоступных API.
400
Недопустимые входные данные или ограничения модели.