개요
LLM (대화 / 인스트럭션)
대화 응답, 문서 요약, 코드 생성・컴플리션, 함수 호출 (tool / function calling), 스트리밍 응답을 하나의 엔드포인트로. 프로젝트에 바인딩한 모델을 `/v1/chat/completions` 와 `/v1/completions` 에서 호출.
- 엔드포인트
- /v1/chat/completions
- 예시 모델
- llama-3.1-8b-instruct
API
API 예시
# 1) discover an online chat model — Grid's set changes constantly,
# don't hardcode an id in your code.
MODEL=$(curl -s https://api.openalchemy.io/v1/models \
-H "Authorization: Bearer $OPENALCHEMY_API_KEY" \
| jq -r '.data[] | select(.online and .endpoint_type=="chat") | .id' \
| head -1)
# 2) chat
curl https://api.openalchemy.io/v1/chat/completions \
-H "Authorization: Bearer $OPENALCHEMY_API_KEY" \
-H "X-Project-Id: $YOUR_PROJECT_ID" \
-H "Content-Type: application/json" \
-d "{
\"model\": \"$MODEL\",
\"messages\": [
{\"role\": \"user\", \"content\": \"Hello, OpenAlchemy.\"}
]
}"상태
할당량 및 요금 (프로젝트별)
할당과 레이트 리밋은 API 키를 발급한 프로젝트에 적용. 도메인 스코프의 정책 레이어가 각 모달리티를 호출할 수 있는 오리진을 추가로 제약.
오늘 시작
추론 비용을 연금술에 가까운 무언가로 바꿀 준비, 됐나요?
무료 플랜으로 프로젝트를 하나 띄우고 첫 1,000건의 요청을 신용카드 없이 실행.