Ask questions about a YouTube video using its file_id.
Complete Workflow:
Step 1: Ingest the YouTube video
curl --request POST \
--url https://api.skimming.ai/ingest/v1/api/youtube \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://www.youtube.com/watch?v=VIDEO_ID"
}'
Step 2: Chat with the video
curl --request POST \
--url https://api.skimming.ai/chat/v1/api/video/youtube \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"file_id": "abc123-def456-ghi789",
"question": "What are the main points in this video?",
"streaming": false
}'
Bearer token authentication using an API key
The file_id returned from ingest endpoint
"abc123-def456-ghi789"
Your question about the content
"What are the main points discussed in this document?"
Whether to stream the response (SSE format)
AI model to use
gpt-4, gpt-4o, gpt-4o-mini, gpt-3.5-turbo, claude-3-opus, claude-3-sonnet, claude-3.5-sonnet, gemini-1.5-pro, gemini-1.5-flash "gpt-4"
Model provider
openai, anthropic, gemini "openai"
Type of conversation
single, group Maximum output tokens
2000
Successful response
Server-Sent Events stream (when streaming=true)