在线试用 Qwen Image 2.0 生成图片,再接入 API
Qwen Image 2.0 在 Crazyrouter 上通过 OpenAI 兼容的 images 接口提供。按张付费、无订阅,与文本模型共用一把 Key。
把模型 ID、实时价格、Base URL 和调用示例一次粘贴进你的 coding agent。
Qwen Image 2.0 是什么?
Qwen Image 2.0 是 Alibaba 的 Qwen Image 系列图片模型,支持文生图与图片编辑。在 Crazyrouter 上它与对话、视频、音频模型共用 Key 和余额,不用再开一家账号。
请求与响应结构与 OpenAI Images API 一致,现有客户端代码可直接用。
只按成功生成的图片数量、以本页价格扣费。
上游模型支持时可传参考图做编辑与风格迁移。
图片、对话、视频、音乐共用一个余额。
Qwen Image 2.0 API 快速开始
向 https://api.crazyrouter.com/v1/images/generations 发 POST,model 填 qwen-image-2.0。响应遵循 OpenAI images 格式(URL 或 base64)。
curl https://api.crazyrouter.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $CRAZYROUTER_API_KEY" \
-d '{
"model": "qwen-image-2.0",
"prompt": "Product photo of a matte ceramic coffee mug on a light oak desk, soft morning window light, shallow depth of field, neutral background, commercial photography",
"n": 1,
"size": "1536x1024"
}'适用场景
开发工具兼容
OpenAI SDK
client.images.generate(model="qwen-image-2.0", prompt=...),base URL 指向 Crazyrouter。
n8n / Dify / Make
用 HTTP 节点或 OpenAI 兼容连接器接 Crazyrouter。
自建后端
纯 HTTPS 调用,不依赖 SDK。
Crazyrouter 演练场
写代码前先在控制台试提示词。
Qwen Image 2.0 常见问题
调用哪个接口?
https://api.crazyrouter.com/v1/images/generations,model 填 qwen-image-2.0。
怎么计费?
按成功生成的图片张数、按本页价格扣费,失败不计费。
支持哪些尺寸和格式?
以上游模型为准,按厂商文档传 size 与 response_format。
能编辑已有图片吗?
上游支持编辑的模型可通过 edits 接口或 image 字段传参考图。
有限流吗?
按账户等级限流,需要更高吞吐可联系支持。
相关指南与对比
Comparison6 个 Vision API 模型实测总览:Gemini 2.5、GPT-4.1、Qwen3 VL 图片理解怎么选?
本文综合实测 Gemini 2.5 Flash、Gemini 2.5 Flash Lite、GPT-4.1 Mini、GPT-4.1 Nano、Qwen3 VL Flash、Qwen3 VL Plus 六个图片理解模型,从准确率、延迟、成本、usage 信号、失败风险和生产路由角度给出选型建议。
GuideGemini 是什么?2026 完整指南:功能、定价与开发者使用教程
"全面介绍 Google Gemini 是什么,包括 Gemini 2.5 系列模型能力、免费版与 Advanced 区别、API 接入方法、定价对比,以及通过 Crazyrouter 降低成本的实用方案。"
TutorialOpenAI O4-Mini 完整指南:新一代推理模型 API 使用教程 2026
全面介绍 OpenAI O4-Mini 推理模型的能力、API 接入方法、与 DeepSeek R2/Kimi K2 Thinking 对比、定价分析和代码示例。
最新节目
EP196 · 2026年10月29日 · 6:53
AI API Security Posture — Turn Controls Into Continuous Evidence
A practical guide to AI API security posture: inventory exposure, verify controls continuously, protect keys and data, constrain tools, and turn security assumptions into evidence that operators can act on.
EP195 · 2026年10月28日 · 7:21
AI API Policy Drift — Detect When Production Rules Stop Matching Intent
A practical guide to policy drift in AI APIs: version routing and safety rules, detect stale enforcement, compare intended and observed behavior, and restore control before small gaps become incidents.
