Entwickler
Bring den Assistenten in deine App, deinen MCP-Client oder deine Website. Überall kostet es so viel wie im Chat.
POST/api/v1/conversations
Chat starten: { text, locale?, model?, tools? } — mit tools Bilder, Video, Musik oder Sprache erzeugen.
tools
Echte Anfrage: Die Nachricht kostet Credits. (1 Guthaben)
Code
curl -X POST "https://bilgisam.com/api/v1/conversations" \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{"text":"…","locale":"de"}'Antwort-Body
Die Antwort erscheint hier.
Dokumentation
Multimedia
Die Tools der Chat-App gibt es auch in der API: Bild, Video, Musik, Sprachausgabe und Websuche. Füge sie über das Feld tools hinzu; erzeugte Dateien kommen im media-Array mit öffentlicher URL zurück.
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>"]}'