It looks like you may prefer a different language. Switch anytime.

Alibaba · Image

Hermes Agent x Qwen Image

Qwen Image 是阿里巴巴的初代图像模型系列,与更新的 Qwen 2 代际不同。通过 RunAPI,其生成、重混和编辑端点采用各自独立的模型 ID,并遵循一致的任务协议。

3 variants 起价 $0.040 可商用

Prerequisite: npx runapi mcp install

Prompt

Prompt 模型

任务匹配时使用 qwen-image-edit-image:精准文字指令编辑,具备强语义控制能力。

You have access to RunAPI task tools for Qwen Image.

Available Qwen Image models:
- qwen-image-edit-image: 精准文字指令编辑,具备强语义控制能力
  endpoints: /api/v1/qwen_image/edit_image
  request fields: model, prompt, source_image_url
- qwen-image-remix-image: 提示词引导的源图重混,可调节原图保留程度
  endpoints: /api/v1/qwen_image/remix_image
  request fields: model, prompt, source_image_url
- qwen-image-text-to-image: 高质量照片级真实感文生图,文字渲染能力出色
  endpoints: /api/v1/qwen_image/text_to_image
  request fields: model, prompt

Use the model ID and endpoint that match the user's request.
Example prompt: 创作一张黄昏时分的杭州电影感旅行海报,湖面倒映清晰的中英双语标题文字。
/api/v1/qwen_image/edit_image: Submit the task, poll for its status, then verify the completed output. POST /api/v1/qwen_image/edit_image,并保存返回的 Task ID。
GET /api/v1/qwen_image/edit_image/<task-id>,直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。
/api/v1/qwen_image/remix_image: Submit the task, poll for its status, then verify the completed output. POST /api/v1/qwen_image/remix_image,并保存返回的 Task ID。
GET /api/v1/qwen_image/remix_image/<task-id>,直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。
/api/v1/qwen_image/text_to_image: Submit the task, poll for its status, then verify the completed output. POST /api/v1/qwen_image/text_to_image,并保存返回的 Task ID。
GET /api/v1/qwen_image/text_to_image/<task-id>,直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。

公开版本与端点

模型 ID 端点 起步价格 模型目录
qwen-image-edit-image
/api/v1/qwen_image/edit_image
$0.060 模型详情
qwen-image-remix-image
/api/v1/qwen_image/remix_image
$0.040 模型详情
qwen-image-text-to-image
/api/v1/qwen_image/text_to_image
$0.040 模型详情

验证

轮询,直到 Task 进入终态

选择 <model-id> 后生成验证命令。

配置

指南端点: <endpoint>

选择 <model-id> 后,按端点的公开输入契约生成请求。
使用流程

三步开始使用

  1. 选择模型 ID

    选择公开模型 ID,并查看其端点与当前起步价格。

  2. 配置 RunAPI

    调用端点前设置 RUNAPI_API_KEY。

  3. 验证结果

    对于异步端点,轮询同一端点,直到 Task 进入终态。

使用 Hermes Agent + Qwen Image 可以构建什么

  • 产品演示视频

    根据文字描述生成 5 至 10 秒的产品动画,适合电商展示和社交广告。

  • AI 数字人内容

    创建带口型同步的数字人视频,用于培训材料、客户支持和营销内容。

  • 批量视频制作

    排队生成数百个视频,并通过 webhook 接收结果。

为什么通过 RunAPI + Hermes Agent 使用 Qwen Image

  • 3 个变体,一个 API 密钥

    通过一个 RunAPI 连接选择可用的模型变体,无需更改现有集成。

  • 清晰的用量价格

    发送请求前查看目录中的当前价格,无需订阅或最低消费。

  • 自动化任务流程

    通过一致的任务流程提交任务、查询状态并收集异步结果,无需编写手动轮询代码。

Hermes Agent + Qwen Image 常见问题

应该使用哪个模型 ID?

从版本表选择公开模型 ID。每个 ID 可使用的端点均显示在对应行。

本指南会配置聊天模型吗?

不会。该 Model Line 使用页面所示的端点流程,不会被描述为 Agent 聊天模型。

开始在 Hermes Agent 中使用 Qwen Image

需要团队接入支持?

我们可以协助团队接入、完成系统集成并解答技术问题。

联系我们