Skip to main content
POST
Submit Nano Banana 2 Lite task

提交任务

prompt 必填。文生图时省略 image_urls;图片编辑时最多传入 10 个公网 HTTP(S) URL。Lite 模型不接受 resolution 或 output_format。
省略时,aspect_ratio 默认 auto。

授权

Authorization
string
header
必填

Wizzx API key. This is not a JWT.

请求体

application/json
prompt
string
必填

Required prompt. The gateway enforces a 20000-byte UTF-8 limit.

Minimum string length: 1
image_urls
string<uri>[]
Maximum array length: 10

Publicly reachable HTTP(S) URL.

Pattern: ^https?://
aspect_ratio
enum<string>
默认值:auto
可用选项:
1:1,
1:4,
1:8,
2:3,
3:2,
3:4,
4:1,
4:3,
4:5,
5:4,
8:1,
9:16,
16:9,
21:9,
auto

响应

Task accepted

code
enum<integer>
必填
可用选项:
0
message
string
必填
示例:

"success"

data
object
必填
request_id
string<uuid>
必填