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​
| Parameter | Type | Description |
|---|---|---|
message | string | User message |
Optional​
| Parameter | Type | Default | Description |
|---|---|---|---|
context | string | null | Conversation context |
language | string | fr | Language code |
model | string | default | Model 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