Aller au contenu principal

Chat Service

Build conversational AI applications with YODI's chat API.

Endpoint​

GET https://admin.yodi.tg/api/ai/chat
info

Chat service is currently in beta. Features may change.

Description​

Create conversational interactions with YODI's AI models.

Parameters​

Required​

ParameterTypeDescription
messagestringUser message

Optional​

ParameterTypeDefaultDescription
contextstringnullConversation context
languagestringfrLanguage code
modelstringdefaultModel ID

Supported languages: mina, ewe, fr, tem

Example Request​

curl -X GET "https://admin.yodi.tg/api/ai/chat?message=Bonjour&language=fr" \
-H "Authorization: Bearer YOUR_API_KEY"

Example Response​

{
"message": "SUCCESS",
"error": false,
"data": {
"reply": "Hello! How can I help you today?"
},
"status": 200
}

Use Cases​

  • Chatbots
  • Customer support
  • Q&A systems
  • Game dialogue
  • Virtual assistants

Next Steps​