Chat Completions
Create chat completion
Creates a chat completion for the provided messages. OpenAI-compatible endpoint. Messages are converted to a prompt internally; responses use object "chat.completion" and choices[].message with role and content.
post/v1/chat/completions
Request body
Example request
{
"model": "test-model"
}Response
Successful chat completion (JSON) or streaming (text/event-stream)
Example response
{
"id": "chatcmpl-abc123def456"
}