---
title: "create image by text or image"
method: POST
path: "/generation/google/nano-banana/image"
tags: ["generation", "image generation"]
---

# create image by text or image

`POST /generation/google/nano-banana/image`

## Request body

- object
  - `input` union, required
    - object
      - `prompt` string — The prompt of the generation
      - `aspectRatio` '1:1' | '9:16' | '16:9' | '4:3' | '3:4' | '3:2' | '2:3' | '5:4' | '4:5' | '21:9', required
      - `resolution` '1K' | '2K' | '4K' — The resolution of the generation
      - `imageUrl` string, required
      - `images` string[] — Only image URLs are accepted (HTTPS preferred); base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1.
    - object
      - `prompt` string — The prompt of the generation
      - `aspectRatio` '1:1' | '9:16' | '16:9' | '4:3' | '3:4' | '3:2' | '2:3' | '5:4' | '4:5' | '21:9', required
      - `resolution` '1K' | '2K' | '4K' — The resolution of the generation
      - `imageUrl` string
      - `images` string[], required — Only image URLs are accepted (HTTPS preferred); base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1.
    - object
      - `prompt` string, required — The prompt of the generation
      - `aspectRatio` '1:1' | '9:16' | '16:9' | '4:3' | '3:4' | '3:2' | '2:3' | '5:4' | '4:5' | '21:9', required
      - `resolution` '1K' | '2K' | '4K' — The resolution of the generation
  - `webhookUrl` string
  - `clientSource` string

## Response `200`

Successful response

- object
  - `taskId` string, required
  - `status` 'waiting' | 'succeed' | 'failed' | 'processing', required

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/pollo/apis/pollo-ai-video-collection.md) · [All operations](https://skmtc.net/pollo/apis/pollo-ai-video-collection/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pollo/pollo-ai-video-collection/revisions/b3c228cf4e87/schema)
