跳转到主要内容
POST
/
generate
/
k
/
nano-banana-pro
Nano Banana Pro 图片生成
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/nano-banana-pro \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "aspect_ratio": "1:1",
  "image_input": [
    "https://example.com/input1.jpg",
    "https://example.com/input2.jpg"
  ],
  "output_format": "png",
  "prompt": "Comic poster: cool banana hero in shades leaps from sci-fi pad. Six panels: 1) 4K mountain landscape, 2) banana holds page of long multilingual text with auto translation, 3) Gemini 3 hologram for search/knowledge/reasoning, 4) camera UI sliders for angle focus color, 5) frame trio 1:1-9:16, 6) consistent banana poses. Footer shows Google icons. Tagline: Nano Banana Pro now on Kie AI.",
  "resolution": "1K"
}'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
Nano Banana Pro 是google最新的图片模型, 支持文生图和图生图

Authorizations

Authorization
string
header
required

请使用您的 API Token 进行认证

Body

application/json

Task parameters

prompt
string
required

Prompt 图片生成的文本描述(必填,最大5000字符)

Maximum length: 5000
Example:

"Comic poster: cool banana hero in shades leaps from sci-fi pad. Six panels: 1) 4K mountain landscape, 2) banana holds page of long multilingual text with auto translation, 3) Gemini 3 hologram for search/knowledge/reasoning, 4) camera UI sliders for angle focus color, 5) frame trio 1:1-9:16, 6) consistent banana poses. Footer shows Google icons. Tagline: Nano Banana Pro now on Kie AI."

aspect_ratio
enum<string>
default:1:1

AspectRatio 图片宽高比(可选,默认 1:1)

可用选项:
1:1,
2:3,
3:2,
3:4,
4:3,
4:5,
5:4,
9:16,
16:9,
21:9
Example:

"1:1"

image_input
string[]

ImageInput 输入图片列表(可选,支持最多8张图片,每张最大10MB)

Maximum length: 8
Example:
[
"https://example.com/input1.jpg",
"https://example.com/input2.jpg"
]
output_format
enum<string>
default:png

OutputFormat 输出图片格式(可选,默认 png)

可用选项:
png,
jpg
Example:

"png"

resolution
enum<string>
default:1K

Resolution 图片分辨率(可选,默认 1K)

可用选项:
1K,
2K,
4K
Example:

"1K"

Response

OK

task_id
string
required

Task ID

Example:

"01234567-89ab-cdef-0123-456789abcdef"