curl 'https://api.kerox.ai/v1/tasks' \
-H "Authorization: Bearer $KEROX_API_KEY" \
-H 'Content-Type: application/json' \
--data-binary '{
"model": "alibaba/qwen-image-2.0",
"input": {
"prompt": "editorial portrait of a ceramicist in morning sunlight, 35mm film",
"size": "2048x2048"
}
}'响应示例
{
"id": "task_01JD8X9B4Q2M7T8N3K5P6R1S0V",
"object": "task",
"model": "alibaba/qwen-image-2.0",
"status": "processing"
}可传入的参数
参数一律用统一格式的名字,各模型通用。
| 参数名 | 类型 | 必填 | 默认值 | 可选值 | 作用 |
|---|---|---|---|---|---|
prompt | string | 必填 | — | — | 提示词 |
images | string | string[] | — | — | — | 参考图 |
size | string | — | — | — | 精确尺寸 |
seed | integer | — | -1 | -1–2147483647 | 随机种子 |
n | integer | — | 1 | 1 | 生成数量 |
暂不支持: negative_prompt, prompt_extend, watermark
定价
1 张
$0.0298
$0.0350比官方价低 14%
常见用法参考价
| 规格 | 官方价 | Kerox | 比官方价低 |
|---|---|---|---|
| 1 张 | $0.0298 | 14% | |
| $10 能做多少 | 335 张图片 | ||
| 档位 | 官方价 | Kerox |
|---|---|---|
| 按张 | $0.0298 |
提交任务前可用 POST /v1/estimate 估价。
Qwen Image 2.0 生成的作品

The front of a small noodle shop at dusk, a wooden signboard above the door carved with the Chinese characters "老街面馆" in gold brush calligraphy, a red paper lantern on each side, steam drifting from the open kitchen, warm light spilling onto the street, cinematic photograph

A grand old library reading room with tall arched windows, long oak tables with green banker's lamps, towering bookshelves and a spiral staircase, soft morning light falling across the floor, symmetrical composition, architectural photograph

A fleet of white sailboats racing across a deep blue sea on a bright windy day, sails taut, sparkling spray at the bows, a rocky coastline with a lighthouse in the distance, aerial view, crisp vivid photograph
关于 Qwen Image 2.0
Qwen Image 2.0,Alibaba 的图片生成模型。
常见问题
Qwen Image 2.0 多少钱?
Kerox 上的 Qwen Image 2.0 $0.0298 / 张 起,比官方价低 14%。按次付费,生成失败不扣费。每一档的价格见本页的价格表。
Qwen Image 2.0 有 API 吗?
有。用模型 ID alibaba/qwen-image-2.0 向 Kerox 的接口提交任务,然后查询任务,或等 webhook 通知。Qwen Image 2.0 的 API 文档里有全部参数和代码示例。
不写代码能在网页上直接用 Qwen Image 2.0 吗?
可以。在本页生成面板选择参数即可查看价格,登录后即可生成。 在线体验
用 Qwen Image 2.0 需要订阅吗?
不需要。没有套餐,也没有月费。$5 起充,用多少付多少。
