v1

latestOpenAPI 3.0.02026-07-17304.9 KB

Chat with AI

Send a message to the AI and get a response

post/api/chat

Request body

messagestring required

The message to send to the AI

Example request

{
  "message": "What is machine learning?"
}

Response

Successful response from AI

responsestring

The AI's response to the message

modelstring

The model name (only returned for !modelinfo command)

Example response

{
  "response": "Machine learning is a branch of artificial intelligence that focuses on building systems that learn from data.",
  "model": "gpt-3.5-turbo"
}