还没有图片。提交表单以生成图片。
探索不同用例和参数配置
透明定价,无隐藏费用。按需支付。
| 规则与模式 | 渠道 | 积分 | 价格(美元) | 官方/参考价格 | 每日节省 |
|---|---|---|---|---|---|
qwen-image-2 imageqwen | Starter | 0.7per run | $0.003 | - | - |
qwen image 2 使用完整指南
通过 ApiPass Kie 适配器使用公共模型名称 qwen/qwen-image-2 生成静态图像。

Alibaba 的 Qwen Image 2.0 现已在 APIPASS 上可用。这是一款高度通用的统一 AI 模型,专为处理写实图像生成、结构化文字渲染和灵活的自然语言图像编辑而设计。它面向完整的创意与视觉设计工作流打造,可输出惊艳的原生 2K 图像。
每个请求都需要提供 prompt。适配器会在尝试任何上游请求之前拒绝空的 prompt payload。
该模型支持 square、square_hd、portrait_4_3、portrait_16_9、landscape_4_3 和 landscape_16_9。适配器也接受 imageSize,并会将不支持的值规范化为 square_hd。
你可以调整 num_inference_steps、guidance_scale、enable_safety_checker、output_format、negative_prompt、acceleration 和 seed。适配器会在向上游转发请求之前,对不支持的值进行限制或规范化。
在 APIPASS 上,Qwen Image 2.0 API 可以轻松处理详细的 prompt 指令,创建包含大量文字的视觉内容。无论你是在设计 PPT 风格幻灯片、复杂信息图、漫画还是海报,该 API 都能确保图像内文字高度清晰可读,并实现精准的版式控制,是面向设计型视觉生成的理想引擎。
以无与伦比的精准度将你的创意变为现实。Qwen Image 2 API 提供原生 2K 支持和出色的语义遵循能力,能够准确理解复杂的视觉指令。无论是人物、自然场景还是复杂建筑场景,都能生成高度细致、精致且写实的图像。
告别割裂的创意流程。APIPASS 提供的 Qwen-Image 2.0 是一个统一解决方案,可在同一个模型工作流中结合基于 prompt 的生成与后续视觉编辑。对于同时需要初始图像创建和后续优化的产品而言,它提供了高度一致且高效的实现路径。
使用 Qwen Image Edit API 加速你的视觉任务。该 API 基于高效轻量的 7B 参数模型架构构建,专为快速响应而设计,能够轻松处理自然语言中的实用编辑指令,让你直接通过 APIPASS 即时执行背景替换、对象更新、风格调整和文字修订。
该集成流程与 ApiPass 上其他由 Kie 支持的异步图像模型一致。
选择 qwen/qwen-image-2 作为模型,并准备包含 prompt 的 input 对象,以及任何可选的 Qwen 控制参数,例如 image_size、guidance_scale、output_format 和 negative_prompt。
将 payload 发送到 ApiPass /api/v1/jobs/createTask 端点。适配器会将模型名称重写为 qwen/text-to-image,并将规范化后的 input 对象转发给 Kie.ai。
通过 /api/v1/jobs/recordInfo 跟踪任务执行情况,或配置 callBackUrl 以接收异步完成通知。
任务成功后,从任务响应对象的 resultJson.resultUrls 中读取生成图像的 URL。
这些建议遵循适配器的防护规则以及当前上游参数契约。
在优化 prompt 措辞之前,为竖版布局选择 portrait_16_9,为横幅选择 landscape_16_9,为通用艺术作品或电商平台选择 square_hd。
当你明确排除常见缺陷时,Qwen 图像质量通常会提升,例如模糊、多余手指、低对比度、解剖结构扭曲或噪点纹理。
探索阶段可先使用适中的 num_inference_steps,并将 acceleration 设置为 none 或 regular。只有在构图已经可用且需要更高保真度时,再增加步数。
通过强有力的 prompt 构图、合适的 image_size 预设以及可选的 negative_prompt 约束,创建适合横幅或社交媒体使用的静态图像。
使用 seed 值、尺寸预设和受控的 prompt 变化,快速迭代环境、产品和视觉方向。
为落地页、说明板块、博客封面和功能展示生成干净、可控的构图,同时明确抑制常见视觉瑕疵。
本文档使用 qwen/qwen-image-2 作为 ApiPass 公共模型名称,因为这是代码库和示例脚本当前使用的 SUPPORT_MODEL 值。
readme 和 API 部分说明 ApiPass 会将 qwen/qwen-image-2 转发到上游 Kie.ai 模型 qwen/text-to-image,与 _get_kie_api_model_name 中实现的适配器映射一致。
该 JSON 记录了适配器中为 image_size、num_inference_steps、guidance_scale、output_format、acceleration,以及 imageSize 和 enableSafetyChecker 等兼容别名实现的相同强制转换规则。
所有 API 都需要通过 Bearer Token 进行身份验证。
Authorization: Bearer
通过 ApiPass 统一 jobs API 创建新的 Qwen Image 2 生成任务
ApiPass 会在由 Kie 支持的异步图像模型之间保持公共请求封装稳定。Qwen 专属参数放在 input 对象中。
1{
2 "model": "qwen/qwen-image-2",
3 "callBackUrl": "string (optional)",
4 "input": {
5 "prompt": "string",
6 "image_size": "square | square_hd | portrait_4_3 | portrait_16_9 | landscape_4_3 | landscape_16_9",
7 "num_inference_steps": 30,
8 "seed": 123456,
9 "guidance_scale": 2.5,
10 "enable_safety_checker": true,
11 "output_format": "png | jpeg",
12 "negative_prompt": "string",
13 "acceleration": "none | regular | high"
14 },
15 "channel": "auto"
16}model必填stringQwen Image 2 的 ApiPass 公共模型名称。
"qwen/qwen-image-2"
callBackUrl可选string用于任务完成通知的可选回调 URL。
"https://your-domain.com/api/callback"
channel可选string你可以通过 channel 参数指定 APIPASS 中对应的服务商;这些服务商负责实际的图像和视频生成任务。APIPASS 目前提供三种服务商选项:
channel 参数的默认值为 auto。启用后,APIPASS 会根据实时价格和稳定性指标,在可用服务商之间自动分配任务,以平衡最低成本和可靠性能。除非你有自定义路由需求,否则请保留默认值 auto。
可用选项:
auto
input 对象包含 ApiPass 接受的 Qwen Image 2 参数。适配器会在将请求转发到上游之前规范化别名并拦截无效值。
input.prompt必填string描述你想要生成的图像的提示词。
"A cinematic mountain lake at sunrise with mist and reflective water."
input.image_size可选string图像尺寸预设。适配器也接受 imageSize,并会将不支持的值规范化为 square_hd。
可用选项:
"portrait_16_9"
input.num_inference_steps可选number推理步数。适配器也接受 numInferenceSteps,并会将该值限制在 2-250 范围内。
40
input.seed可选number可选 seed。适配器会尝试将传入值强制转换为整数,并跳过无效值。
123456
input.guidance_scale可选number引导强度。适配器也接受 guidanceScale,并会将该值限制在 0-20 范围内。
3.25
input.enable_safety_checker可选boolean是否启用服务商安全检查器。适配器也接受 enableSafetyChecker,并默认将该字段设为 true。
true
input.output_format可选string图像输出格式。适配器接受 jpg 并将其转换为 jpeg,不支持的值则回退为 png。
可用选项:
"jpeg"
input.negative_prompt可选string可选负向提示词。适配器也接受 negativePrompt,并在省略时默认设为一个空格。
"blurry, low quality"
input.acceleration可选string加速模式。不支持的值会被规范化为 none。
可用选项:
"regular"
1curl -X POST "https://api.apipass.dev/api/v1/jobs/createTask" \
2 -H "Content-Type: application/json" \
3 -H "Authorization: Bearer YOUR_API_KEY" \
4 -d '{
5 "model": "qwen/qwen-image-2",
6 "callBackUrl": "https://your-domain.com/api/callback",
7 "input": {
8 "prompt": "A cinematic astronaut exploring a crystal cave on an alien planet, volumetric lighting, ultra detailed.",
9 "image_size": "square_hd",
10 "num_inference_steps": 30,
11 "seed": 123456,
12 "guidance_scale": 2.5,
13 "enable_safety_checker": true,
14 "output_format": "png",
15 "negative_prompt": "blurry, low resolution, distorted hands, extra fingers",
16 "acceleration": "none"
17 }
18 }'1{
2 "code": 200,
3 "message": "success",
4 "data": {
5 "taskId": "task_qwen_1765166238716"
6 }
7}code状态码。200 表示任务已成功创建。
messageApiPass 返回的响应消息。
data.taskId用于后续状态查询的任务标识符。

flux
flux
Generate photorealistic images with robust text
起价
0 积分
Nano Banana 2 Lite, aka Gemini 3.1 Flash-Lite Image, is a newly released image model from Google DeepMind built for fast 1K image generation, efficient creative iteration, prompt-based image editing, and responsive visual output in product-facing creative scenarios.
起价
0 积分
OpenAI
OpenAI
Generate intentionally designed visuals with less prompting using the latest OpenAI GPT Image 2 model.
起价
0 积分
Nano Banana now allows you to freely draw on edited images, bringing you a completely new experience. Simply click on the image to draw whatever you want. You can also add text and details, and Gemini will do the rest.
起价
0 积分
Fast image generation model built on Gemini 3.1 Flash Image. Supports text-to-image, image editing, multi-image fusion with up to 14 reference images, Google Search grounding, and outputs up to 4K resolution.
起价
0 积分
seedream
seedream
起价
0 积分
grok
grok
Grok Imagine is xAI’s AI video generation model for creating high-quality videos with realistic motion, native audio, and synchronized speech. Grok Imagine 1.5 introduces faster generation speeds, improved motion physics, and stronger visual consistency for modern AI video applications.
起价
0 积分
qwen
qwen
Generate realistic 2K images with structured text
起价
0 积分
seedream
seedream
起价
0 积分
OpenAI
OpenAI
Bring your ideas to life with sharper, faster, more precise image generation using the GPT Image 2.5 API.
起价
0 积分
wan
wan
Generate images with cinematic precision through high-fidelity text-to-image synthesis and structural editing.
起价
0 积分
seedream
seedream
Gemini said Generate images with lightning-fast efficiency and high-fidelity detail through a streamlined, lightweight architecture optimized for instant creative expression.
起价
0 积分
Luma
Luma
起价
0 积分
seedream
seedream
起价
0 积分