Add an AI assistant to anything
MHN AI API lets you connect a smart, multilingual AI to your Telegram bot, website or app with a single request.
⚡ Simple
One endpoint, one JSON field, one key in the URL.
🌐 Multilingual
Bengali, English and many more languages.
🧠 Context aware
Send chat history for natural conversations.
🔒 Secure
Private API keys with expiry & limits.
Quick start
Endpoint:
POST
https://mhngpt.xyz/api/public/ai-chat?key=YOUR_API_KEY
Request
json
{ "message": "আপনার প্রশ্ন..." }Response
json
{ "success": true, "reply": "AI এর উত্তর..." }Try it with curl
bash
curl -X POST https://mhngpt.xyz/api/public/ai-chat?key=YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{"message": "হ্যালো, কেমন আছো?"}'Set it up in 3 steps
- Copy the endpoint URL above and replace
YOUR_API_KEYwith your key. - From your bot or website, send a POST request with
{"message": "..."}. - Show the
replyfield to your user. Done!