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

# Hermes Agent x GPT-4o Image

GPT-4o Image integrates visual creation natively into GPT-4o, combining reasoning with generation. Through RunAPI, it shares the same API access and billing as all OpenAI models.

## 公開版本與端點

| 模型 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-HK/hermes-agent)
- [GPT-4o Image - 模型目錄](https://runapi.ai/zh-HK/models/gpt-4o-image)
- [gpt-4o-image](https://runapi.ai/zh-HK/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-HK/hermes-gpt-4o-image"
}
```
