Chat

Authentication

X-Api-Keystring

API key authentication via X-Api-Key header

OR
AuthorizationBearer
Bearer token authentication via Authorization header

Request

This endpoint expects an object.
messageslist of objectsRequired
Conversation history. The last message must be from the user.
contextlist of objectsRequired
Videos to analyze. Each entry references a video, optionally with a time range for visual analysis. At least one required.

Response

Successful Response
responsestring
The answer to the user's question about the video
modelstring or null
LLM model that generated the response