डेवलपर
असिस्टेंट को अपने ऐप, 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":"hi"}'प्रतिक्रिया बॉडी
उत्तर यहाँ दिखेगा।
दस्तावेज़
मल्टीमीडिया
चैट के टूल API में भी हैं: इमेज, वीडियो, संगीत, आवाज़ और वेब खोज। tools फ़ील्ड से जोड़ें; बनी फ़ाइलें 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>"]}'