Create Chat Completion

View as Markdown

Creates a chat completion using the agent’s configured model. Supports both streaming and non-streaming responses.

Authentication

x-api-keystring
API key for authentication
OR
AuthorizationBearer
Bearer token authentication

Request

This endpoint expects any.
anyRequired
OR
anyRequired

Response

Successful response
idstringOptional
objectstringOptional
createdintegerOptional
modelstringOptional
choiceslist of objectsOptional
usageobjectOptional
cachedbooleanOptional

Errors

422
Unprocessable Entity Error