Api
AI Ask Endpoint
Query video content using AI
The AI Ask endpoint allows you to query your video content using natural language.
Endpoint
POST /v1/ai/askRequest Body
{
"video_id": "vid_123456",
"question": "What are the main topics discussed in this video?"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
video_id | string | Yes | The ID of the video to query |
question | string | Yes | Natural language question |
Response
{
"success": true,
"data": {
"answer": "The video discusses three main topics...",
"confidence": 0.95,
"timestamps": [
{ "start": 0, "end": 30, "topic": "Introduction" }
]
}
}Example
curl -X POST https://api.boldvideo.io/v1/ai/ask \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"video_id": "vid_123", "question": "Summarize this video"}'