An AI assistant API by MAHENDRO — built for Telegram bots and external apps. Multilingual (Bengali, English...), with date/time awareness and web search.
https://mhngpt.xyz/api/public/ai-chat https://mhngpt.lovable.app/api/public/ai-chat
No authentication required — just POST your message.
POST /api/public/ai-chat Content-Type: application/json
Body
{
"message": "আপনার প্রশ্ন...", // required, 1-8000 chars
"history": [ // optional, max 40 messages
{ "role": "user", "content": "..." },
{ "role": "assistant", "content": "..." }
]
}{ "success": true, "reply": "AI এর উত্তর..." }400 { "success": false, "error": "Invalid request body" }
502 { "success": false, "error": "<upstream error>" }curl -X POST https://mhngpt.xyz/api/public/ai-chat \
-H "Content-Type: application/json" \
-d '{"message": "হ্যালো, কেমন আছো?"}'message: max 8000 characters.history: max 40 messages, each max 8000 characters.