---
title: "Hermes Agent x GPT-4o Image 使用指南"
url: "https://runapi.ai/zh-CN/hermes-gpt-4o-image.md"
canonical: "https://runapi.ai/zh-CN/hermes-gpt-4o-image"
locale: "zh-CN"
model_line: "gpt-4o-image"
---

# Hermes Agent x GPT-4o Image

GPT-4o Image 将视觉创作原生集成到 GPT-4o 中，融合推理与生成。通过 RunAPI，与所有 OpenAI 模型共享 API 和计费。

## 公开版本与端点

| 模型 ID | 版本 | 端点 | 起步价格 |
| --- | --- | --- | --- |
| `gpt-4o-image` | gpt-4o-image | /api/v1/gpt_4o_image/text_to_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_4o_image/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-4o-image",
  "prompt": "A cobalt vase on white marble.",
  "aspect_ratio": "1:1"
}'
```

POST /api/v1/gpt_4o_image/text_to_image，并保存返回的 Task ID。
GET /api/v1/gpt_4o_image/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-4o Image - 模型目录](https://runapi.ai/zh-CN/models/gpt-4o-image)
- [gpt-4o-image](https://runapi.ai/zh-CN/models/gpt-4o-image/gpt-4o-image)

```json
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "Hermes Agent x GPT-4o Image",
  "url": "https://runapi.ai/zh-CN/hermes-gpt-4o-image"
}
```
