HERMES + DEEPSEEK

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

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

하나의 API key · OpenAI + Anthropic 프로토콜 · 스트리밍 지원
Use RunAPI to call DeepSeek V4 Pro through Hermes Agent's custom:runapi provider.

Requirements:
- Use the custom:runapi provider already configured in Hermes Agent
- Call the RunAPI chat completions endpoint at https://runapi.ai/v1/chat/completions
- Set model to "deepseek-v4-pro"
- The RUNAPI_API_KEY environment variable provides authorization
- The response streams back as SSE events in OpenAI chat completions format
- To enable reasoning, set thinking.type to "enabled" in the request body
curl -X POST https://runapi.ai/v1/chat/completions \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-pro",
    "messages": [
      {"role": "system", "content": "You are a helpful coding assistant."},
      {"role": "user", "content": "Write a Python function that finds the longest palindromic substring in O(n) time using Manacher algorithm."}
    ],
    "stream": true,
    "max_tokens": 4096
  }'
{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "model": "deepseek-v4-pro",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Here is Manacher's algorithm implementation..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 42,
    "completion_tokens": 356,
    "total_tokens": 398
  }
}
curl 명령어를 복사하여 테스트하세요 deepseek
작동 방식

Hermes Agent에서 DeepSeek를 세 단계로 사용하기

1

RunAPI 프로바이더 설정

RUNAPI_API_KEY 환경 변수를 설정하세요. Hermes Agent에서 이미 RunAPI를 custom:runapi로 추가했다면, 동일한 프로바이더와 key가 DeepSeek에도 작동합니다 — 추가 설정이 없습니다. 아직 설정하지 않았다면, base_url https://runapi.ai/v1과 api_mode chat_completions으로 RunAPI를 추가하세요.

export RUNAPI_API_KEY=runapi_xxx
2

DeepSeek 모델 선택

품질에는 model을 deepseek-v4-pro로, 속도에는 deepseek-v4-flash로 전환하세요. 둘 다 custom:runapi 프로바이더를 통해 /v1/chat/completions 엔드포인트를 사용합니다. thinking.type을 enabled로 전달하여 추론을 활성화하세요 — 별도의 모델 항목이 필요 없습니다.

model: deepseek-v4-pro
3

응답 스트리밍

Hermes Agent는 OpenAI 채팅 컴플리션 형식의 SSE 스트림으로 응답을 받습니다. 토큰 사용량은 마지막 이벤트에 나타납니다. 프로바이더 설정 변경 없이 DeepSeek, GPT, Claude 모델 간에 전환하세요 — model 필드만 변경하면 됩니다.

stream: true
파라미터

DeepSeek 채팅 컴플리션 파라미터

파라미터 유형 설명
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을 "enabled"로 설정.

Hermes Agent의 DeepSeek이란?

DeepSeek V4는 예산 친화적인 LLM으로 RunAPI에서 OpenAI와 Anthropic 프로토콜 서피스 모두를 통해 작동합니다. Hermes Agent는 GPT와 Claude와 동일한 custom:runapi provider를 통해 호출합니다——model 파라미터만 변경하면 됩니다. RunAPI는 DeepSeek의 이미 낮은 가격의 50%로 제공해 단일 API 키로 사용 가능한 가장 저렴한 추론 능력 모델이 됩니다.

DeepSeek 활용 사례

셀프 호스팅 대안 평가

오픈소스 가중치를 셀프 호스팅할지 결정하기 전에 RunAPI의 API로 DeepSeek을 먼저 테스트합니다. API 비용이 인프라 손익분기점 이하면 호스팅 버전을 계속 사용하고, 규모가 정당화되면 동일 모델로 로컬 배포합니다.

사고 연쇄를 표시하는 추론 UI 구축

Thinking 모드를 활성화하고 사고 토큰을 UI에 표시해 사용자가 모델이 문제를 해결하는 과정을 볼 수 있게 합니다. 튜터링 앱·코드 디버깅 도구·의사결정 지원 시스템에 적합합니다.

최저 비용 대량 일괄 처리

대량 문서 세트·분류 작업·데이터 추출 작업에 DeepSeek Flash로 빠르고 저렴하게 처리하며, 토큰당 비용이 최고 품질보다 중요한 시나리오에 적합합니다.

FAQ

DeepSeek + Hermes Agent 자주 묻는 질문

Hermes Agent 일반 설정

아직 설정하지 않으셨나요? Hermes Agent용 RunAPI 설정 가이드로 시작하세요.

Hermes Agent 설정 가이드 →

DeepSeek 모델 카탈로그

DeepSeek V4 변형, 가격, API 문서를 확인하세요.

DeepSeek 모델 →

지금 Hermes Agent에서 DeepSeek를 사용해보세요.

무료 RunAPI key를 발급받고, Hermes Agent에서 model을 deepseek-v4-pro로 설정하여 직접 DeepSeek 접근 비용의 절반으로 추론을 시작하세요.