Desenvolvedores
Leve o assistente para seu app, seu cliente MCP ou seu site. Em todo lugar custa o mesmo que no chat.
POST/api/v1/conversations
Iniciar conversa: { text, locale?, model?, tools? } — com tools gere imagens, vídeo, música ou fala.
curl -X POST "https://bilgisam.com/api/v1/conversations" \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{"text":"…","locale":"pt"}'Corpo da resposta
A resposta aparecerá aqui.
Documentação
API REST
JSON na entrada e na saída. As respostas são escritas em segundo plano: envie a mensagem e leia a conversa até `pending` ser false.
POST/api/v1/conversationsIniciar conversa: { text, locale?, model?, tools? } — com tools gere imagens, vídeo, música ou fala.POST/api/v1/conversations/{id}Adicionar mensagem: { text, locale?, model?, tools? }GET/api/v1/conversations/{id}Últimas mensagens e estado `pending`GET/api/v1/conversationsSuas conversas recentesGET/api/v1/creditsSeus créditos restantesGET/api/v1/toolsFerramentas disponíveis e custos
curl -X POST https://bilgisam.com/api/v1/conversations \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{"text": "Merhaba", "locale": "pt"}'
# → {"id": "…"} — leia a resposta alguns segundos depois
curl https://bilgisam.com/api/v1/conversations/{id} -H "Authorization: Bearer sk_..."Campos opcionais: instructions (instruções de sistema para este turno, até 20.000 caracteres; envie em cada requisição), private (true → 402 needs-private se seu plano não permitir conversas privadas). As respostas da API não usam raciocínio (thinking): rápidas e de custo fixo.
Erros: 401 chave inválida · 402 créditos insuficientes ou requer Pro · 409 resposta anterior em andamento ou consentimento necessário · 429 limite de taxa.