---
title: &quot;Hermes Agent에서 RunAPI로 Claude 사용하기 — LLM API 가이드&quot;
url: &quot;https://runapi.ai/ko/hermes-claude.md&quot;
canonical: &quot;https://runapi.ai/ko/hermes-claude&quot;
locale: &quot;ko&quot;
model: &quot;claude&quot;
---

# Hermes Agent에서 Claude를 사용하세요.

Anthropic Claude는 최고 성능을 위한 Opus 4.8(200K 컨텍스트, 확장 사고), 균형 잡힌 성능의 Sonnet 4.6, 속도 중심의 Haiku 4.5를 제공합니다. Hermes Agent는 채팅용으로 설정한 동일한 key와 base_url로 custom:runapi 공급자를 통해 Anthropic 공식 토큰당 요금의 50%로 Claude를 호출합니다.

## API example

```bash
curl -X POST https://runapi.ai/v1/chat/completions \
  -H &quot;Authorization: Bearer $RUNAPI_API_KEY&quot; \
  -H &quot;Content-Type: application/json&quot; \
  -d &#39;{
    &quot;model&quot;: &quot;claude-opus-4.8&quot;,
    &quot;max_tokens&quot;: 1024,
    &quot;messages&quot;: [
      {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Explain the difference between a mutex and a semaphore in three sentences.&quot;}
    ]
  }&#39;

```

### Response

```json
{
  &quot;id&quot;: &quot;chatcmpl-abc123&quot;,
  &quot;object&quot;: &quot;chat.completion&quot;,
  &quot;model&quot;: &quot;claude-opus-4.8&quot;,
  &quot;choices&quot;: [
    {
      &quot;index&quot;: 0,
      &quot;message&quot;: {
        &quot;role&quot;: &quot;assistant&quot;,
        &quot;content&quot;: &quot;A mutex is a locking mechanism that allows only one thread to access a resource at a time...&quot;
      },
      &quot;finish_reason&quot;: &quot;stop&quot;
    }
  ],
  &quot;usage&quot;: {
    &quot;prompt_tokens&quot;: 24,
    &quot;completion_tokens&quot;: 87,
    &quot;total_tokens&quot;: 111
  }
}

```

## How it works

1. **RunAPI 설정** — RUNAPI_API_KEY 환경 변수를 설정하세요. 이미 Hermes Agent에 RunAPI를 custom:runapi 공급자로 추가했다면 동일한 key와 base_url로 Claude를 사용할 수 있습니다 — Hermes 설정에서 model 파라미터를 claude-opus-4.8로 변경하거나 /model 명령어를 사용하세요.
2. **Claude 호출** — model을 claude-opus-4.8로 설정하고 최소 하나의 사용자 메시지가 포함된 messages 배열을 포함하여 /v1/chat/completions로 POST 요청을 보내세요. max_tokens로 응답 길이를 제어하세요. Hermes 세션에서 토큰 단위 SSE 출력을 위해 &quot;stream&quot; true를 추가하세요.
3. **응답 읽기** — 엔드포인트는 어시스턴트 메시지를 동기적으로 반환합니다 — 작업 폴링이 필요하지 않습니다. Hermes Agent가 응답을 인라인으로 표시합니다. 응답에는 청구 투명성을 위한 토큰 사용량 카운트가 포함됩니다. 스트리밍 응답은 실시간 표시를 위해 SSE 이벤트로 도착합니다.

## Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `model` | `string` | 필수. claude-opus-4.8, claude-sonnet-4.6, claude-haiku-4.5, 또는 RunAPI 카탈로그에 있는 모든 Claude 변형. |
| `messages` | `array` | 필수. role(system, user, assistant)과 content 필드가 있는 메시지 객체 배열. |
| `max_tokens` | `integer` | 응답의 최대 토큰 수. 기본값은 모델마다 다릅니다 — 예측 가능한 청구를 위해 명시적으로 설정하세요. |
| `stream` | `boolean` | true이면 단일 JSON 응답 대신 증분 토큰 델타가 포함된 서버 전송 이벤트를 반환합니다. |
| `temperature` | `float` | 0~1 사이의 샘플링 온도. 낮을수록 결정론적 출력이 생성됩니다. |
| `top_p` | `float` | 핵 샘플링 컷오프. temperature의 대안 — 둘 중 하나만 사용하세요. |

## FAQ

### RunAPI를 통해 Hermes Agent에서 Claude를 호출할 수 있나요?

네. Hermes Agent에서 base_url https://runapi.ai/v1과 api_mode chat_completions로 RunAPI를 custom:runapi 공급자로 설정하세요. model을 claude-opus-4.8이나 다른 Claude 변형으로 설정하세요. 동일한 RUNAPI_API_KEY가 채팅, 이미지, 영상, 음악 모델을 모두 처리합니다.

### RunAPI Claude 가격은 Anthropic 직접 구매와 어떻게 다른가요?

RunAPI는 Anthropic 공식 토큰당 요금의 50%를 청구합니다. Opus 4.8은 RunAPI를 통해 입력/출력 백만 토큰당 $7.50/$37.50이며, 직접 구매 시 $15/$75입니다. 구독이나 볼륨 약정이 필요하지 않습니다.

### Claude 모델 간 전환 시 Hermes Agent를 재설정해야 하나요?

아니요. Hermes 설정에서 model 파라미터만 변경하거나 세션 중 /model 명령어를 사용하세요. custom:runapi 공급자, base_url, API key는 모든 Claude 변형 — Opus 4.8, Sonnet 4.6, Haiku 4.5, 날짜 스냅샷 — 에서 동일하게 유지됩니다.

### Hermes Agent에서 네이티브 Anthropic Messages API를 사용할 수 있나요?

RunAPI는 /v1/chat/completions(OpenAI 호환, Hermes Agent의 chat_completions 모드에서 사용)와 /v1/messages(네이티브 Anthropic 형식) 모두를 제공합니다. 네이티브 엔드포인트는 확장 사고와 Anthropic 전용 기능을 지원합니다. Hermes Agent의 경우 OpenAI 호환 경로가 표준 채팅과 스트리밍을 처리합니다.

### Hermes Agent의 코딩 작업에 어떤 Claude 모델을 선택해야 하나요?

복잡한 다중 파일 리팩토링과 아키텍처 결정에는 Opus 4.8. 일상적인 코딩 — PR 리뷰, 테스트 생성, 버그 수정 — 에는 Sonnet 4.6. 깊이보다 지연 시간이 중요한 빠른 자동 완성과 인라인 제안에는 Haiku 4.5.


## Links

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