Chat
Create a chat completion
Deprecated: Use POST /v2/ai/openai/chat/completions instead. Chat with a language model. This endpoint is consistent with the OpenAI Chat Completions API and may be used with the OpenAI JS or Python SDK.
post/ai/chat/completions
Request body
Example request
{
"messages": [
{
"content": "You are a friendly chatbot.",
"role": "system"
},
{
"content": "Hello, world!",
"role": "user"
}
]
}Response
Successful Response
object required