Crazyrouter 中文指南主站
图片 API 指南

Qwen Image API 中文接入指南

Qwen Image 覆盖 Crazyrouter 价格 API 当前返回的三个 Qwen 图片模型。

适用场景

搜索 Qwen Image API 的开发者需要确认客户侧标准模型名、图片生成端点、Base URL 和最小可运行请求。

标准模型名与价格

来源:GET https://cn.crazyrouter.com/api/pricing,快照日期 2026-06-06.

POST /v1/images/generations
qwen-image-plus
$0.0286/image
计费方式: per_image
公开端点类型: image-generation
支持端点类型: image-generation, openai
价格规则: t2i, verified
qwen-image-max
$0.0714/image
计费方式: per_image
公开端点类型: image-generation
支持端点类型: image-generation, openai
价格规则: t2i, verified
qwen-image-2.0
$0.0286/image
计费方式: per_image
公开端点类型: image-generation
支持端点类型: image-generation, openai
价格规则: t2i, verified

可用模型和计费方式

当前 Qwen Image 接入使用价格目录公开的模型:qwen-image-plus、qwen-image-max 和 qwen-image-2.0。

  • qwen-image-plus:$0.0286/张;公开端点类型:image-generation。
  • qwen-image-max:$0.0714/张;公开端点类型:image-generation。
  • qwen-image-2.0:$0.0286/张;公开端点类型:image-generation。

客户侧协议

Crazyrouter 通过 OpenAI Images 兼容的 POST /v1/images/generations 路由暴露这些 Qwen Image 模型。供应商侧同步或异步执行由网关处理。

  • 质量优先的文生图基线可先测 qwen-image-max。
  • 标准请求先使用 size 和 n。
  • response_format 只在 Qwen 文档允许 url 或 b64_json 时使用。

何时比较 Qwen Image

当业务包含中文提示词、海报式构图或需要阿里系图片生成路线时,Qwen Image 值得纳入同一评估集。

cn.crazyrouter.com 实测证据

这里只展示返回 200 的检查结果。API 请求使用 https://cn.crazyrouter.com;账号、充值和控制台使用 https://crazyrouter.com。

检查项请求状态结果
价格 API 返回 200GET https://cn.crazyrouter.com/api/pricing200已返回当前指南使用的模型价格、端点类型和计费方式。
模型列表返回 200GET https://cn.crazyrouter.com/v1/models200已返回目标模型列表,包含本组指南使用的图片与视频模型。

接入示例

cURL
curl -X POST https://cn.crazyrouter.com/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "qwen-image-max",
    "prompt": "A premium product poster for a glass perfume bottle with soft studio lighting",
    "n": 1
  }'
Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://cn.crazyrouter.com/v1",
)

response = client.images.generate(
    model="qwen-image-max",
    prompt="A premium product poster for a glass perfume bottle with soft studio lighting",
    n=1,
)

print(response.data[0].url)

补充说明

当前包含 Qwen 图片编辑吗?

当前 Qwen Image 文档聚焦文生图。图片编辑能力应等对应公开能力和参数说明明确后再接入。

Base URL 是什么?

OpenAI 兼容 SDK 使用 https://cn.crazyrouter.com/v1。