Video Q&A
Video Q&A
Video Q&A
The Vision API provides powerful question-answering capabilities for your videos. Once a video has been indexed, you can ask natural language questions about its content and receive AI-powered answers.
The Video Q&A API is designed for videos longer than 30 seconds. It indexes your video for efficient retrieval and analysis across longer content.
For videos 30 seconds or shorter, use the Chat API with multimodal inputs instead — it accepts video directly in the conversation without requiring a separate indexing step.
Before using Video Q&A, ensure your video has been successfully indexed:
index=true"indexed""indexing"Use the /v1/qa/chat endpoint to ask questions about your videos:
video_id (optional): ID of the video to analyzemessages (optional): List of chat messagesFor multi-turn conversations, use the messages parameter:
For real-time responses, set stream=true in your request:
This returns a Server-Sent Events (SSE) stream with real-time updates.
When the stream is complete, a final event is sent:
Here are some example questions you can ask:
index=true