跳到主要内容
Qwen检查中

Qwen Image 2.0 Pro / Text to Image

qwen-image-2-0-pro-text-to-image

文生图输出: 图像输入: 文本
正在加载价格…
官方原价 · 未验证
获取 API Key

参数

必填
prompt: string必填

Positive prompt describing desired image content, style and composition. Supports Chinese and English, max 800 characters. ≤ 800 chars

常用参数
size: string

Output resolution (width*height). Total pixels must be between 512*512 and 2048*2048. Default: 1024*1024.

imageNum: string

Number of output images. Default: 1, max: 6.

高级参数 (2)
negativePrompt: string

Negative prompt describing unwanted content. Supports Chinese and English, max 500 characters. ≤ 500 chars

promptExtend: boolean

Enable smart prompt enhancement. When enabled, the model optimizes and enriches the prompt for more diverse results.

请求预览

{
  "model": "qwen-image-2-0-pro-text-to-image",
  "input": {
    "size": "1024*1024",
    "imageNum": "1",
    "promptExtend": true
  }
}

网页 Playground 使用你的登录会话发送此请求体。在代码中请使用 API Key 发送相同内容。

预计费用

正在加载价格…

任务接收时预留额度,仅成功后扣费。失败任务释放预留额度;结果未确认时会保留额度,直到核实。