개발자
어시스턴트를 앱, 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"}'응답 본문
응답이 여기에 표시됩니다.
문서
멀티미디어
채팅의 도구를 API에서도 쓸 수 있습니다: 이미지, 동영상, 음악, 음성, 웹 검색. tools 필드로 추가하면 생성된 파일이 공개 URL과 함께 media 배열로 돌아옵니다.
curl -X POST https://bilgisam.com/api/v1/conversations \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{"text": "a red fox in the snow, watercolor", "tools": ["generate_image"]}'
# GET /api/v1/conversations/{id}
{
"pending": false,
"generating": false,
"messages": [
{ "role": "assistant", "content": "…", "media": [
{ "name": "image.png", "type": "image/png", "url": "https://…/image.png" }
] }
]
}
# edit_image: upload the source, then attach it
curl -X POST https://bilgisam.com/api/v1/files -H "Authorization: Bearer sk_..." -F "file=@photo.jpg"
# → {"id": "…", "image": "https://…"}
curl -X POST https://bilgisam.com/api/v1/conversations -H "Authorization: Bearer sk_..." -H "Content-Type: application/json" -d '{"text": "make the background a sunset beach", "tools": ["edit_image"], "files": ["<file id>"]}'