Skip to main content

Chat Service

Build conversational AI applications with YODI's chat API.

Endpoint​

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

Chat is streamed over SSE.

Description​

Create conversational interactions with YODI's AI models.

Parameters​

Required​

ParameterTypeDescription
promptstringUser prompt

Example Request​

curl -X GET "https://admin.yodi.tg/api/ai/chat?prompt=Bonjour" \
-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​