Documentation

코딩 Agent 연동

코딩 Agent와 IDE 플러그인은 일반적으로 다음 API 형식 중 하나를 사용합니다. 클라이언트에 알맞은 게이트웨이 Base URL과 Board API 키를 설정하세요.

프로토콜 선택

종류Base URL예시
OpenAI 호환https://api.benpay.ai/openai/v1Codex CLI, Trae, CodeBuddy, WorkBuddy, ComfyUI, OpenCode Desktop, OpenClaw
Anthropic 호환https://api.benpay.ai/anthropic/v1Claude Code, Claude Desktop

연결 전 확인

  • Board 계정과 API 키
  • 클라이언트 형식에 맞는 Base URL
  • Dashboard의 모델 페이지에 표시된 모델 이름

가이드

curl로 확인

OpenAI 호환:

curl "https://api.benpay.ai/openai/v1/chat/completions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"YOUR_MODEL","messages":[{"role":"user","content":"Hello"}]}'

Anthropic 호환:

curl "https://api.benpay.ai/anthropic/v1/messages" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "anthropic-version: 2023-06-01" \
  -d '{"model":"YOUR_MODEL","max_tokens":256,"messages":[{"role":"user","content":"Hello"}]}'

YOUR_MODEL모델 페이지의 모델 이름으로 바꾸세요.