---
title: &quot;Hermes Agent에서 Imagen 4 사용하기 via RunAPI — 이미지 API 가이드&quot;
url: &quot;https://runapi.ai/ko/hermes-imagen-4.md&quot;
canonical: &quot;https://runapi.ai/ko/hermes-imagen-4&quot;
locale: &quot;ko&quot;
model: &quot;imagen-4&quot;
---

# Hermes Agent에서 Imagen 4 사용하기.

Imagen 4는 정확한 텍스트 렌더링과 높은 프롬프트 충실도를 갖춘 Google DeepMind의 이미지 생성 모델입니다. Hermes Agent는 채팅에 사용하는 동일한 RunAPI custom provider endpoint를 통해 호출합니다 — ComfyUI나 GPU 설정이 필요 없습니다.

## API example

```bash
curl -X POST https://runapi.ai/v1/text_to_image \
  -H &quot;Authorization: Bearer $RUNAPI_API_KEY&quot; \
  -H &quot;Content-Type: application/json&quot; \
  -d &#39;{
    &quot;model&quot;: &quot;imagen-4&quot;,
    &quot;prompt&quot;: &quot;A ceramic coffee mug on a wooden table with morning light, the text HELLO printed on the side in serif font, photorealistic&quot;
  }&#39;

```

### Response

```json
{
  &quot;task_id&quot;: &quot;tsk_abc123&quot;,
  &quot;status&quot;: &quot;pending&quot;,
  &quot;model&quot;: &quot;imagen-4&quot;
}

```

## How it works

1. **RunAPI 설정** — RUNAPI_API_KEY 환경 변수를 설정하세요. 이미 Hermes Agent에서 채팅용 custom:runapi provider로 RunAPI를 설정했다면, 동일한 key와 base_url이 이미지 생성에도 사용됩니다.
2. **Imagen 4 호출** — model을 imagen-4로 설정하여 text_to_image endpoint에 POST 요청을 보내세요. 설명적인 프롬프트를 포함하세요. 필요에 따라 aspect_ratio나 negative_prompt를 추가하세요.
3. **결과 가져오기** — 응답에는 task_id가 포함됩니다. status가 completed로 변경될 때까지 task status endpoint를 폴링하세요. 완료된 응답에는 생성된 이미지 URL이 포함됩니다.

## Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `model` | `string` | 필수. imagen-4, imagen-4-fast, 또는 imagen-4-ultra. |
| `prompt` | `string` | 원하는 이미지에 대한 텍스트 설명. |
| `aspect_ratio` | `string` | 선택 사항. 예) 1:1, 16:9, 9:16. |
| `negative_prompt` | `string` | 선택 사항. 생성된 이미지에서 피해야 할 것. |

## FAQ

### Hermes Agent에서 Imagen 4를 사용할 수 있나요?

네. Hermes Agent는 RunAPI text_to_image endpoint를 통해 Imagen 4를 호출합니다. model 필드를 imagen-4로 설정하고, custom:runapi provider에 설정한 동일한 RUNAPI_API_KEY로 요청을 보내세요. ComfyUI나 GPU 임대가 필요 없습니다.

### Imagen 4에 별도의 API key가 필요한가요?

아니요. 동일한 RUNAPI_API_KEY로 채팅, 이미지, 비디오, 음악 등 113개 이상의 모든 모델을 사용할 수 있습니다. 하나의 key, 하나의 결제 계정입니다.

### Imagen 4는 비동기인가요, 동기인가요?

Imagen 4는 비동기입니다. 초기 요청은 status pending으로 task_id를 반환합니다. task가 완료될 때까지 task status endpoint를 폴링한 뒤, 응답에서 이미지 URL을 가져오세요. RunAPI SDK는 폴링을 자동으로 처리합니다.

### RunAPI를 통한 Imagen 4 비용은 얼마인가요?

Imagen 4 가격은 월 최소 요금 없이 사용한 만큼 청구됩니다. 티어에 따라 비용이 다릅니다: imagen-4-fast가 가장 저렴하고, imagen-4가 표준이며, imagen-4-ultra가 최고 품질입니다. 현재 이미지당 요금은 RunAPI 가격 페이지에서 확인하세요.


## Links

- [Hermes Agent 설정 가이드 →](https://runapi.ai/ko/hermes-agent)
- [Imagen 4 모델 →](https://runapi.ai/ko/models/imagen-4)
- [Model catalog](https://runapi.ai/ko/models)
- [API docs](https://runapi.ai/ko/docs)
