본문으로 건너뛰기
alpharouter

개발 문서

개요

OpenAI 호환 엔드포인트 하나로 10개 Provider의 모델을 호출합니다. 기존 SDK에서 base_url과 키만 바꾸면 첫 호출이 나갑니다.

빠른 시작

콘솔에서 서비스 API 키를 만들고 아래 세 줄을 바꿉니다. model에는 모델 카탈로그의 모델 ID를 넣습니다 — 이 사이트에서 사용 가능한 ID는 모델 페이지에서 확인하세요.

curl https://api.alpharouter.io/v1/chat/completions \  -H "Authorization: Bearer $ALPHAROUTER_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "claude-fable-5",    "messages": [{"role":"user","content":"분기 보고서를 요약해줘"}]  }'

지원 endpoint

같은 키로 아래 경로를 모두 씁니다. 경로마다 호환 가능한 모델만 후보에 오릅니다.

EndpointMethodType
/chat/completionsPOSTChat, streaming, tools, vision
/responsesPOSTServer-stored conversations, SSE
/messagesPOSTAnthropic-native shape
/embeddingsPOSTEmbedding, reranking
/images/generationsPOSTImage generation, editing
/audio/speechPOSTText to speech
/audio/transcriptionsPOSTSpeech to text
/modelsGETCatalog, pricing, specs

다음 단계

  • 인증 문서에서 키 종류와 헤더 규칙을 확인하세요.
  • 모델 페이지에서 이 사이트에서 사용 가능한 모델 ID를 확인하세요.
  • 에러 처리 문서에서 재시도와 멱등성 규칙을 확인하세요.