Skip to main content
POST
Submit Qwen Image 2.0 task

提交任务

prompt 必填(最多 800 个字符)。图片生成时省略 image_urls;图片编辑时传入 1–3 个公网 HTTP(S) URL,不支持 base64。resolution 为 1K(默认)或 2K。每个请求生成一张图片。
网关每张收取 31 积分,1K 与 2K 同价。具体积分以 /pricing 为准。

授权

Authorization
string
header
必填

Wizzx API key. This is not a JWT.

请求体

application/json

Shared by qwen-image-2.0 and qwen-image-2.0-pro. Omit image_urls for text-to-image or provide 1-3 public URLs for image-to-image. One image per request; 1K and 2K cost the same.

prompt
string
必填

Required prompt, at most 800 Unicode characters.

Required string length: 1 - 800
negative_prompt
string
Maximum string length: 500
image_urls
string<uri>[]
Maximum array length: 3

Publicly reachable HTTP(S) URL.

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

Case-insensitive. Does not change the price.

可用选项:
1K,
2K

响应

Task accepted

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

"success"

data
object
必填
request_id
string<uuid>
必填