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

Midjourney · Utility

Hermes Agent x Midjourney

Midjourney 图片和视频生成以任务状态响应异步运行,共用一把 RunAPI 密钥;提示词工具(图片转提示词、提示词精简、种子查询)同步返回。

3 variants 起价 $0.050 可商用

Prerequisite: npx runapi mcp install

Prompt

Prompt 模型

任务匹配时使用 midjourney-edit-image:基于单张来源图片的提示词引导编辑。

You have access to RunAPI task tools for Midjourney.

Available Midjourney models:
- midjourney-edit-image: 基于单张来源图片的提示词引导编辑
  endpoints: /api/v1/midjourney/edit_image
  request fields: model, prompt, source_image_url
- midjourney-image-to-video: 将来源图片生成视频,可选运动描述和结束帧
  endpoints: /api/v1/midjourney/extend_video, /api/v1/midjourney/image_to_video
  request fields: model, prompt, source_image_url
- midjourney-v8.1: V8.1 文生图,支持宽高比控制和可选提示词翻译
  endpoints: /api/v1/midjourney/text_to_image
  request fields: model, prompt

Use the model ID and endpoint that match the user's request.
Example prompt: 创作一张钴蓝色陶瓷花瓶置于白色大理石上的电影感产品图,然后用缓慢环绕镜头将其生成视频。
/api/v1/midjourney/edit_image: Submit the task, poll for its status, then verify the completed output. POST /api/v1/midjourney/edit_image,并保存返回的 Task ID。
GET /api/v1/midjourney/edit_image/<task-id>,直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。
/api/v1/midjourney/extend_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/midjourney/extend_video,并保存返回的 Task ID。
GET /api/v1/midjourney/extend_video/<task-id>,直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。
/api/v1/midjourney/image_to_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/midjourney/image_to_video,并保存返回的 Task ID。
GET /api/v1/midjourney/image_to_video/<task-id>,直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。
/api/v1/midjourney/text_to_image: Submit the task, poll for its status, then verify the completed output. POST /api/v1/midjourney/text_to_image,并保存返回的 Task ID。
GET /api/v1/midjourney/text_to_image/<task-id>,直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。

公开版本与端点

模型 ID 端点 起步价格 模型目录
midjourney-edit-image
/api/v1/midjourney/edit_image
$0.060 模型详情
midjourney-image-to-video
/api/v1/midjourney/extend_video /api/v1/midjourney/image_to_video
$0.470 模型详情
midjourney-v8.1
/api/v1/midjourney/text_to_image
$0.050 模型详情

验证

轮询,直到 Task 进入终态

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

配置

指南端点: <endpoint>

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

其他操作

这些操作不使用模型 ID。

  • /api/v1/midjourney/image_to_prompt
  • /api/v1/midjourney/shorten_prompt
  • /api/v1/midjourney/get_seed
使用流程

三步开始使用

  1. 选择模型 ID

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

  2. 配置 RunAPI

    调用端点前设置 RUNAPI_API_KEY。

  3. 验证结果

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

使用 Hermes Agent + Midjourney 可以构建什么

  • 产品演示视频

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

  • AI 数字人内容

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

  • 批量视频制作

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

为什么通过 RunAPI + Hermes Agent 使用 Midjourney

  • 3 个变体,一个 API 密钥

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

  • 清晰的用量价格

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

  • 自动化任务流程

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

Hermes Agent + Midjourney 常见问题

应该使用哪个模型 ID?

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

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

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

开始在 Hermes Agent 中使用 Midjourney

需要团队接入支持?

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

联系我们