Bu sayfayı kendi dilinde görüntüleyebilirsin.Değiştir
You can view this page in your own language.Switch
Du kannst diese Seite in deiner Sprache ansehen.Wechseln
Puedes ver esta página en tu idioma.Cambiar
Tu peux consulter cette page dans ta langue.Changer
Puoi vedere questa pagina nella tua lingua.Cambia
Możesz zobaczyć tę stronę w swoim języku.Zmień
Du kan se den här sidan på ditt eget språk.Byt
Você pode ver esta página no seu idioma.Trocar
आप यह पेज अपनी भाषा में देख सकते हैं।बदलें
Kamu bisa melihat halaman ini dalam bahasamu.Ganti
이 페이지를 사용하는 언어로 볼 수 있어요.바꾸기
このページはあなたの言語で表示できます。切り替える
يمكنك عرض هذه الصفحة بلغتك.تغيير
Nieuw hier?

We gebruiken cookies

Cookies en browseropslag zorgen dat deze site werkt en meten, als je dat toestaat, hoe hij wordt gebruikt. Je kunt je wanneer je wilt. Lees meer in ons cookiebeleid.

Ontwikkelaars

Breng de assistent naar je app, je MCP-client of je website. Overal kost het hetzelfde als in de chat.

POST/api/v1/conversations

Chat starten: { text, locale?, model?, tools? } — met tools maak je afbeeldingen, video, muziek of spraak.

tools
Echt verzoek: het bericht gaat van je credits af. (1 tegoed)
Code
curl -X POST "https://bilgisam.com/api/v1/conversations" \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{"text":"…","locale":"nl"}'

Antwoordbody

Het antwoord verschijnt hier.

Documentatie

Multimedia

De tools van de chat zitten ook in de API: afbeelding, video, muziek, spraak en webzoeken. Voeg ze toe met het veld tools; gemaakte bestanden komen terug in de media-array met een openbare URL.

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>"]}'