개발자
어시스턴트를 앱, MCP 클라이언트, 웹사이트로 가져가세요. 어디서든 비용은 채팅과 같습니다.
POST/api/v1/conversations
대화 시작: { text, locale?, model?, tools? } — tools로 이미지, 동영상, 음악, 음성을 만드세요.
tools
실제 요청입니다: 메시지 비용이 크레딧에서 차감됩니다. (크레딧 1개)
코드
curl -X POST "https://bilgisam.com/api/v1/conversations" \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{"text":"…","locale":"ko"}'응답 본문
응답이 여기에 표시됩니다.
문서
REST API
JSON 입력, JSON 출력. 답변은 백그라운드에서 작성됩니다: 메시지를 보낸 뒤 `pending`이 false가 될 때까지 대화를 읽으세요.
POST/api/v1/conversations대화 시작: { text, locale?, model?, tools? } — tools로 이미지, 동영상, 음악, 음성을 만드세요.POST/api/v1/conversations/{id}메시지 추가: { text, locale?, model?, tools? }GET/api/v1/conversations/{id}최근 메시지와 `pending` 상태GET/api/v1/conversations최근 대화GET/api/v1/credits남은 크레딧GET/api/v1/tools사용 가능한 도구와 비용
curl -X POST https://bilgisam.com/api/v1/conversations \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{"text": "Merhaba", "locale": "ko"}'
# → {"id": "…"} — 몇 초 뒤 답변을 읽으세요
curl https://bilgisam.com/api/v1/conversations/{id} -H "Authorization: Bearer sk_..."선택 필드: instructions(이번 턴의 시스템 지시, 최대 20,000자, 매 요청마다 전송), private(true → 요금제가 비공개 채팅을 허용하지 않으면 402 needs-private). API 답변은 모델 추론(thinking)을 사용하지 않습니다: 빠르고 비용이 고정됩니다.
오류: 401 잘못된 키 · 402 크레딧 부족 또는 Pro 필요 · 409 이전 답변 진행 중 또는 동의 필요 · 429 속도 제한.