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

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

DeepSeek V4는 RunAPI를 통해 OpenAI 채팅 컴플리션과 Anthropic 메시지 프로토콜을 모두 지원합니다. Hermes Agent는 custom:runapi 프로바이더를 통해 연결됩니다 — 다른 모델에 사용하는 것과 동일한 base URL과 key. 요청 파라미터로 추론 모드를 활성화하세요. RunAPI는 DeepSeek를 공식 요금의 50%로 제공합니다.

## 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;deepseek-v4-pro&quot;,
    &quot;messages&quot;: [
      {&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;You are a helpful coding assistant.&quot;},
      {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Write a Python function that finds the longest palindromic substring in O(n) time using Manacher algorithm.&quot;}
    ],
    &quot;stream&quot;: true,
    &quot;max_tokens&quot;: 4096
  }&#39;

```

### Response

```json
{
  &quot;id&quot;: &quot;chatcmpl-abc123&quot;,
  &quot;object&quot;: &quot;chat.completion&quot;,
  &quot;model&quot;: &quot;deepseek-v4-pro&quot;,
  &quot;choices&quot;: [
    {
      &quot;index&quot;: 0,
      &quot;message&quot;: {
        &quot;role&quot;: &quot;assistant&quot;,
        &quot;content&quot;: &quot;Here is Manacher&#39;s algorithm implementation...&quot;
      },
      &quot;finish_reason&quot;: &quot;stop&quot;
    }
  ],
  &quot;usage&quot;: {
    &quot;prompt_tokens&quot;: 42,
    &quot;completion_tokens&quot;: 356,
    &quot;total_tokens&quot;: 398
  }
}

```

## How it works

1. **RunAPI 프로바이더 설정** — RUNAPI_API_KEY 환경 변수를 설정하세요. Hermes Agent에서 이미 RunAPI를 custom:runapi로 추가했다면, 동일한 프로바이더와 key가 DeepSeek에도 작동합니다 — 추가 설정이 없습니다. 아직 설정하지 않았다면, base_url https://runapi.ai/v1과 api_mode chat_completions으로 RunAPI를 추가하세요.
2. **DeepSeek 모델 선택** — 품질에는 model을 deepseek-v4-pro로, 속도에는 deepseek-v4-flash로 전환하세요. 둘 다 custom:runapi 프로바이더를 통해 /v1/chat/completions 엔드포인트를 사용합니다. thinking.type을 enabled로 전달하여 추론을 활성화하세요 — 별도의 모델 항목이 필요 없습니다.
3. **응답 스트리밍** — Hermes Agent는 OpenAI 채팅 컴플리션 형식의 SSE 스트림으로 응답을 받습니다. 토큰 사용량은 마지막 이벤트에 나타납니다. 프로바이더 설정 변경 없이 DeepSeek, GPT, Claude 모델 간에 전환하세요 — model 필드만 변경하면 됩니다.

## Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `model` | `string` | 필수. deepseek-v4-pro 또는 deepseek-v4-flash. |
| `messages` | `array` | 필수. role (system, user, assistant)과 content 필드를 가진 메시지 객체 배열. |
| `stream` | `boolean` | 선택 사항. SSE 스트리밍을 위해 true로 설정. 기본값 false. |
| `max_tokens` | `integer` | 선택 사항. 생성할 최대 토큰 수. |
| `temperature` | `number` | 선택 사항. 0~2 사이의 샘플링 온도. 낮을수록 더 결정론적입니다. |
| `thinking` | `object` | 선택 사항. DeepSeek의 내장 추론 모드를 활성화하려면 type을 &quot;enabled&quot;로 설정. |

## FAQ

### Hermes Agent가 기존 RunAPI 프로바이더를 통해 DeepSeek를 사용할 수 있나요?

네. Hermes Agent에 custom:runapi가 이미 설정되어 있다면, model을 deepseek-v4-pro 또는 deepseek-v4-flash로 전환하세요. base URL, API key, api_mode는 그대로 유지됩니다. hermes model 명령이나 설정 파일을 직접 편집하여 변경하세요.

### RunAPI의 DeepSeek가 Anthropic 메시지 프로토콜을 지원하나요?

네. DeepSeek V4는 RunAPI를 통해 /v1/chat/completions (OpenAI 형식)와 /v1/messages (Anthropic 형식) 모두에서 작동합니다. Hermes Agent 설정이 Anthropic 메시지 서피스를 사용한다면, model을 deepseek-v4-pro로 설정하면 프로토콜 변경 없이 작동합니다.

### deepseek-v4-flash와 deepseek-v4-pro의 차이점은 무엇인가요?

Flash는 낮은 지연 시간과 비용으로 속도를 우선시합니다. Pro는 복잡한 추론, 코딩, 다단계 작업에서 더 나은 성능으로 품질을 우선시합니다. 둘 다 동일한 엔드포인트를 사용하고 동일한 파라미터를 허용합니다.

### Hermes Agent에서 DeepSeek 추론 모드를 활성화하는 방법은?

요청 본문에 thinking.type을 enabled로 전달하세요. 추론 모드는 별도의 모델이 아닌 요청 파라미터입니다. 추론 토큰은 출력 토큰으로 청구됩니다. OpenAI와 Anthropic 프로토콜 서피스 모두에서 작동합니다.

### RunAPI의 DeepSeek 가격은 DeepSeek를 직접 사용하는 것과 어떻게 비교되나요?

RunAPI는 DeepSeek 토큰을 공식 DeepSeek 요금의 50%로 제공합니다. DeepSeek는 이미 GPT와 Claude보다 토큰당 비용이 낮으므로, 단일 API를 통해 이용 가능한 가장 저렴한 추론 가능 LLM이 됩니다. 구독이나 최소 사용량 없이 — 토큰당 결제.


## Links

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