Chat Completion API
Chat Completion
This QAnswer endpoint is an OpenAI Compatible chat completion.
See the OpenAI documentation for the full request/response schema.
An API key is required to use this endpoint:
- Create one on your Profile Page
- Pass the API key as a Bearer token in the Authorization header.
An administrator must allocate credits to a user. New API keys have 0 credits by default.
Payload Example
POST
/api/v1/{knowledgeBaseId}/chat/completions
Try it
Code