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

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

# Hermes Agent x GPT Image 2

GPT Image 2 是 OpenAI 最新图像模型，以多语言图内文字近乎完美渲染著称。通过 RunAPI，文生图和图像编辑端点共享一把 key。

## 公开版本与端点

| 模型 ID | 版本 | 端点 | 起步价格 |
| --- | --- | --- | --- |
| `gpt-image-2` | gpt-image-2 | /api/v1/gpt_image_2/text_to_image, /api/v1/gpt_image_2/edit_image | $0.060 |

## 配置

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

```shell
export RUNAPI_API_KEY=your_api_key

curl -X POST https://runapi.ai/api/v1/gpt_image_2/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-image-2",
  "prompt": "A cobalt vase on white marble."
}'
```


## 验证


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


## 使用流程

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

## 常见问题

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

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

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

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


### 相关链接

- [Hermes Agent](https://runapi.ai/zh-CN/hermes-agent)
- [GPT Image 2 - 模型目录](https://runapi.ai/zh-CN/models/gpt-image-2)
- [gpt-image-2](https://runapi.ai/zh-CN/models/gpt-image-2/gpt-image-2)

---

## More from RunAPI

- [Home](https://runapi.ai/zh-CN/.md)
- [模型](https://runapi.ai/zh-CN/models.md)
- [AI 视频 API 对比](https://runapi.ai/zh-CN/ai-video-api-comparison.md)
- [OpenClaw 集成](https://runapi.ai/zh-CN/openclaw.md)
- [OpenClaw 最佳 API](https://runapi.ai/zh-CN/best-api-for-openclaw.md)
- [OpenClaw 图片生成](https://runapi.ai/zh-CN/openclaw-image-generation.md)
- [Hermes 智能体集成](https://runapi.ai/zh-CN/hermes-agent.md)
- [定价](https://runapi.ai/zh-CN/pricing.md)
- [Claude API 定价](https://runapi.ai/zh-CN/claude-api-pricing.md)
- [ChatGPT API 定价](https://runapi.ai/zh-CN/chatgpt-api-pricing.md)
- [OpenAI API 定价](https://runapi.ai/zh-CN/openai-api-pricing.md)
- [Gemini API 定价](https://runapi.ai/zh-CN/gemini-api-pricing.md)
- [Claude Code 定价](https://runapi.ai/zh-CN/claude-code-pricing.md)
- [Claude Code API](https://runapi.ai/zh-CN/claude-code-api.md)
- [Claude Code 对比 Cursor](https://runapi.ai/zh-CN/claude-code-vs-cursor.md)
- [Claude Max 对比 API](https://runapi.ai/zh-CN/claude-max-vs-api.md)
- [Requesty 替代方案](https://runapi.ai/zh-CN/requesty-alternative.md)
- [文档](https://runapi.ai/zh-CN/docs/guides)
- [SDK](https://runapi.ai/zh-CN/sdk.md)
- [Skills](https://runapi.ai/zh-CN/skills.md)
- [MCP Server](https://runapi.ai/zh-CN/mcp.md)
- [CLI](https://runapi.ai/zh-CN/cli.md)
- [反馈](https://runapi.makethisbetter.dev)
- [联系](mailto:support@runapi.ai)
- [服务条款](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/zh-CNicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "SoftwareApplication",
    "name": "Hermes Agent x GPT Image 2",
    "applicationCategory": "DeveloperApplication",
    "description": "通过 RunAPI 在 Hermes Agent 中使用 GPT Image 2。比较当前模型 ID、端点与价格，然后按对应流程完成配置。",
    "url": "https://runapi.ai/zh-CN/hermes-gpt-image-2"
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@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 中使用 GPT Image 2",
    "step": [
      {
        "@type": "HowToStep",
        "position": 1,
        "name": "选择模型 ID",
        "text": "选择公开模型 ID，并查看其端点与当前起步价格。",
        "url": "https://runapi.ai/zh-CN/hermes-gpt-image-2#how-step-1"
      },
      {
        "@type": "HowToStep",
        "position": 2,
        "name": "配置 RunAPI",
        "text": "调用端点前设置 RUNAPI_API_KEY。",
        "url": "https://runapi.ai/zh-CN/hermes-gpt-image-2#how-step-2"
      },
      {
        "@type": "HowToStep",
        "position": 3,
        "name": "验证结果",
        "text": "对于异步端点，轮询同一端点，直到 Task 进入终态。",
        "url": "https://runapi.ai/zh-CN/hermes-gpt-image-2#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": "GPT Image 2",
        "item": "https://runapi.ai/zh-CN/hermes-gpt-image-2"
      }
    ]
  }
]
```
