---
title: Hermes Agent x KIE 使用指南 | RunAPI
description: 通过 RunAPI 在 Hermes Agent 中使用 KIE。比较当前模型 ID、端点与价格，然后按对应流程完成配置。
url: https://runapi.ai/zh-CN/hermes-kie.md
canonical: https://runapi.ai/zh-CN/hermes-kie
locale: zh-CN
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
alternates:
  en: https://runapi.ai/hermes-kie
  zh-CN: https://runapi.ai/zh-CN/hermes-kie
  es: https://runapi.ai/es/hermes-kie
  ja: https://runapi.ai/ja/hermes-kie
  de: https://runapi.ai/de/hermes-kie
  fr: https://runapi.ai/fr/hermes-kie
  pt-BR: https://runapi.ai/pt-BR/hermes-kie
  ko: https://runapi.ai/ko/hermes-kie
  it: https://runapi.ai/it/hermes-kie
  nl: https://runapi.ai/nl/hermes-kie
  pl: https://runapi.ai/pl/hermes-kie
  tr: https://runapi.ai/tr/hermes-kie
  zh-TW: https://runapi.ai/zh-TW/hermes-kie
  zh-HK: https://runapi.ai/zh-HK/hermes-kie
  ar: https://runapi.ai/ar/hermes-kie
  x-default: https://runapi.ai/hermes-kie
model_line: kie
---

> HTML version: https://runapi.ai/zh-CN/hermes-kie
> Site index for agents: https://runapi.ai/llms.txt


<!-- agent-model-guide-section: breadcrumb_hero owner=API-1798 state=ready -->

[Hermes Agent](https://runapi.ai/zh-CN/hermes-agent.md) / [KIE](https://runapi.ai/zh-CN/models/kie.md)

# Hermes Agent x KIE

KIE API 提供 KIE 系列的工具模型。通过 RunAPI 可使用统一接口和账单，并安装模型技能包，为 AI 编程助手提供接入文档和参数说明。

- [获取 API Key](https://runapi.ai/zh-CN/login)
- [查看 Hermes Agent 文档](https://runapi.ai/zh-CN/docs/guides)

<!-- agent-model-guide-section: key_facts owner=API-1800 state=ready -->
2 variants · 起价 $0.01 / 次调用 · 可商用


<!-- agent-model-guide-section: prompt_terminal owner=API-1808 state=ready -->
## Prompt

Prerequisite: `npx runapi mcp install`

```text
You have access to RunAPI task tools for KIE.

Available KIE models:
- kie-upscale-image: 最高 8 倍图片放大，按输出像素限制尺寸
  endpoints: /api/v1/kie/upscale_image
  request fields: model, source_image_url, upscale_factor
- kie-upscale-video: 视频增强至 1080P、2K 或 4K
  endpoints: /api/v1/kie/upscale_video
  request fields: model, source_video_url, resolution

Use the model ID and endpoint that match the user's request.
Example prompt: 生成一张 4K 的产品 hero 图：哑光黑色水瓶放在米色石面上，侧光柔和。
/api/v1/kie/upscale_image: Submit the task, poll for its status, then verify the completed output. POST /api/v1/kie/upscale_image，并保存返回的 Task ID。
GET /api/v1/kie/upscale_image/<task-id>，直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。
/api/v1/kie/upscale_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/kie/upscale_video，并保存返回的 Task ID。
GET /api/v1/kie/upscale_video/<task-id>，直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。
```





<!-- agent-model-guide-section: prompt_model_tabs owner=API-1812 state=ready -->
## Prompt 模型

通过本指南使用 RunAPI 和 KIE。

可用的 KIE 模型：

- `kie-upscale-image`: 最高 8 倍图片放大，按输出像素限制尺寸
- `kie-upscale-video`: 视频增强至 1080P、2K 或 4K
任务匹配时使用 kie-upscale-image：最高 8 倍图片放大，按输出像素限制尺寸。



<!-- agent-model-guide-section: versions_endpoints owner=API-1817 state=runtime_fallback -->

## 公开版本与端点

| 模型 ID | 版本 | 端点 | 起步价格 |
| --- | --- | --- | --- |
| `kie-upscale-image` | 最高 8 倍图片放大，按输出像素限制尺寸 | /api/v1/kie/upscale_image | $0.01 / 次调用 |
| `kie-upscale-video` | 视频增强至 1080P、2K 或 4K | /api/v1/kie/upscale_video | $0.01 / 秒 |


<!-- agent-model-guide-section: verify_code_block owner=API-1824 state=runtime_fallback -->

## 验证

轮询，直到 Task 进入终态

POST <endpoint>，并保存返回的 Task ID。
GET <endpoint>/<task-id>，直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。



## 配置

设置 `RUNAPI_API_KEY`，然后向 `<endpoint>` 发送包含 `<model-id>` 的请求。仅当端点返回异步 Task 时才轮询。

```shell
export RUNAPI_API_KEY=your_api_key

curl -X POST https://runapi.ai<endpoint> \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d @request.json
```


<!-- agent-model-guide-section: three_step_flow owner=API-1830 state=ready -->

## 三步开始使用

1. **选择模型 ID.** 选择公开模型 ID，并查看其端点与当前起步价格。
2. **配置 RunAPI.** 调用端点前设置 RUNAPI_API_KEY。
3. **验证结果.** 对于异步端点，轮询同一端点，直到 Task 进入终态。



<!-- agent-model-guide-section: use_case_cards owner=API-1837 state=ready -->

## 使用 Hermes Agent + KIE 可以构建什么

**供代码使用的结构化结果**

获得机器可读的输出而非聊天文本，让应用可以直接存储、比较或据此执行操作。

**加工你自己的数据**

将文档、图片或记录交给模型处理，并把结果与源数据保存在一起，供后续步骤使用。

**大批量处理**

使用同一个 RunAPI 密钥批量提交输入，并通过程序收集结果。



<!-- agent-model-guide-section: benefit_cards owner=API-1844 state=ready -->

## 为什么通过 RunAPI + Hermes Agent 使用 KIE

**2 个变体，一个 API 密钥**

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

**清晰的用量价格**

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

**自动化任务流程**

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




<!-- agent-model-guide-section: faq owner=API-1851 state=ready -->

## Hermes Agent + KIE 常见问题

### 两种放大模型有什么区别？

图片模型支持 1、2、4 或 8 倍放大；视频模型可输出 1080P、2K 或 4K。

### 应该使用哪个模型 ID？

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

### 本指南会配置聊天模型吗？

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




<!-- agent-model-guide-section: related_guides owner=API-1859 state=ready -->

## 更多 Hermes Agent 指南

- [Hermes Agent x Claude](https://runapi.ai/zh-CN/hermes-claude.md) - Anthropic · 文本 · 起价 $0.08 / 百万 tokens
- [Hermes Agent x DeepSeek](https://runapi.ai/zh-CN/hermes-deepseek.md) - DeepSeek · 文本 · 起价 $0.24 / 百万 tokens
- [Hermes Agent x Embedding](https://runapi.ai/zh-CN/hermes-embedding.md) - OpenAI · 文本 · 起价 $0.02 / 百万 tokens
- [Hermes Agent x Fish Audio](https://runapi.ai/zh-CN/hermes-fish-audio.md) - Fish Audio · 音频与音乐 · 起价 $0.02 / 1K UTF-8 字节


<!-- agent-model-guide-section: final_cta owner=API-1866 state=ready -->

## 开始在 Hermes Agent 中使用 KIE

- [获取 API Key](https://runapi.ai/zh-CN/login)
- [阅读快速开始](https://runapi.ai/zh-CN/docs/guides)


<!-- agent-model-guide-section: team_contact_cta owner=API-1873 state=ready -->
## 需要团队接入支持？

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

[联系我们](https://runapi.ai/zh-CN/contact.md)




<!-- agent-model-guide-section: footer owner=API-1880 state=shared -->


---

## More from RunAPI

- [Home](https://runapi.ai/zh-CN/.md)
### 产品
- [模型目录](https://runapi.ai/zh-CN/models.md)
- [定价](https://runapi.ai/zh-CN/pricing.md)
- [提供方](https://runapi.ai/zh-CN/models#all-models)
- [提示词库](https://runapi.ai/zh-CN/prompts.md)
### 开发者
- [文档](https://runapi.ai/zh-CN/docs/guides)
- [SDK](https://runapi.ai/zh-CN/sdk.md)
- [CLI](https://runapi.ai/zh-CN/cli.md)
- [MCP Server](https://runapi.ai/zh-CN/mcp.md)
- [x402](https://runapi.ai/zh-CN/x402.md)
### 指南
- [Claude Code 与 Cursor](https://runapi.ai/zh-CN/claude-code-vs-cursor.md)
- [Cursor API 设置](https://runapi.ai/zh-CN/cursor-api-setup.md)
- [RunAPI 与 OpenRouter](https://runapi.ai/zh-CN/openrouter-alternative.md)
### 公司
- [企业版](https://runapi.ai/zh-CN/contact.md)
- [邀请返利](https://runapi.ai/zh-CN/referral-program.md)
- [联系](https://runapi.ai/zh-CN/contact.md)
### 法律
- [服务条款](https://runapi.ai/zh-CN/terms.md)
- [隐私政策](https://runapi.ai/zh-CN/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai


## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-CN",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-CN/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-CN",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/icon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "SoftwareApplication",
    "name": "Hermes Agent x KIE",
    "applicationCategory": "DeveloperApplication",
    "description": "通过 RunAPI 在 Hermes Agent 中使用 KIE。比较当前模型 ID、端点与价格，然后按对应流程完成配置。",
    "url": "https://runapi.ai/zh-CN/hermes-kie"
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "两种放大模型有什么区别？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "图片模型支持 1、2、4 或 8 倍放大；视频模型可输出 1080P、2K 或 4K。"
        }
      },
      {
        "@type": "Question",
        "name": "应该使用哪个模型 ID？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "从版本表选择公开模型 ID。每个 ID 可使用的端点均显示在对应行。"
        }
      },
      {
        "@type": "Question",
        "name": "本指南会配置聊天模型吗？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "不会。该 Model Line 使用页面所示的端点流程，不会被描述为 Agent 聊天模型。"
        }
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "HowTo",
    "name": "在 Hermes Agent 中使用 KIE",
    "step": [
      {
        "@type": "HowToStep",
        "position": 1,
        "name": "选择模型 ID",
        "text": "选择公开模型 ID，并查看其端点与当前起步价格。",
        "url": "https://runapi.ai/zh-CN/hermes-kie#how-step-1"
      },
      {
        "@type": "HowToStep",
        "position": 2,
        "name": "配置 RunAPI",
        "text": "调用端点前设置 RUNAPI_API_KEY。",
        "url": "https://runapi.ai/zh-CN/hermes-kie#how-step-2"
      },
      {
        "@type": "HowToStep",
        "position": 3,
        "name": "验证结果",
        "text": "对于异步端点，轮询同一端点，直到 Task 进入终态。",
        "url": "https://runapi.ai/zh-CN/hermes-kie#how-step-3"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "首页",
        "item": "https://runapi.ai/zh-CN"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Hermes Agent",
        "item": "https://runapi.ai/zh-CN/hermes-agent"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "KIE",
        "item": "https://runapi.ai/zh-CN/hermes-kie"
      }
    ]
  }
]
```
