Chat with YouTube Video
Engage in interactive conversations about YouTube videos using advanced AI models through the 1min.AI API. This feature allows you to analyze video content, ask questions, extract insights, and discuss specific aspects of YouTube videos with AI assistants.
Key Features
- Video Analysis: Ask questions about any YouTube video content
- Content Extraction: Get insights, summaries, and explanations from video content
- Interactive Chat: Maintain context across multiple questions about the same video
- Multi-language Support: Chat in multiple languages regardless of video language
- Advanced AI Models: Powered by state-of-the-art language models with video understanding capabilities
Supported Models
The Chat with YouTube Video API supports a comprehensive range of AI models optimized for video content analysis:
OpenAI Models:
gpt-4o-mini
- GPT-4o Minigpt-4o
- GPT-4ogpt-4.1-nano
- GPT-4.1 Nanogpt-4.1-mini
- GPT-4.1 Minigpt-4.1
- GPT-4.1gpt-5-nano
- GPT-5 Nanogpt-5-mini
- GPT-5 Minio1-mini
- GPT-o1 Minio1-preview
- GPT-o1 Previewo1
- GPT-o1o3-mini
- GPT-o3 Minio4-mini
- GPT-o4 Mini
Google Models:
gemini-1.0-pro
- Gemini 1.0 Progemini-1.5-flash
- Gemini 1.5 Flashgemini-1.5-pro
- Gemini 1.5 Progemini-2.0-flash-lite
- Gemini 2.0 Flash Litegemini-2.0-flash
- Gemini 2.0 Flashgemini-2.5-flash
- Gemini 2.5 Flashgemini-2.5-pro
- Gemini 2.5 Pro
Anthropic Models:
claude-3-5-haiku-20241022
- Claude 3.5 Haikuclaude-3-5-sonnet-20240620
- Claude 3.5 Sonnetclaude-3-haiku-20240307
- Claude 3 Haikuclaude-3-opus-20240229
- Claude 3 Opus
API Reference
Request Headers
Field | Value |
---|---|
API-KEY | <api-key> |
Content-Type | application/json |
Request Parameters
Field Name | Type | Description | Required |
---|---|---|---|
type | string | Must be "CHAT_WITH_YOUTUBE_VIDEO" | ✔️ |
model | string | AI model identifier | ✔️ |
conversationId | string | Must be "CHAT_WITH_YOUTUBE_VIDEO" | ✔️ |
promptObject.prompt | string | Your question or message about the video | ✔️ |
promptObject.youtubeUrl | string | YouTube video URL | ✔️ |
Example Request
API Playground
https://api.1min.ai/api/features
Generated cURL Command:
curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "CHAT_WITH_YOUTUBE_VIDEO",
"model": "gpt-4o-mini",
"conversationId": "CHAT_WITH_YOUTUBE_VIDEO",
"promptObject": {
"prompt": "Can you summarize the main points discussed in this video?",
"youtubeUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
}'
Response Format
The API returns a JSON response with the AI's analysis and answer about the YouTube video:
{}
Use Cases
- Content Analysis: Analyze video content, themes, and key messages
- Educational Support: Get explanations of complex topics covered in educational videos
- Research: Extract specific information from lengthy video content
- Summarization: Generate concise summaries of video content
- Language Learning: Understand content in foreign language videos
- Accessibility: Get text-based descriptions of video content
Best Practices
- Clear Questions: Ask specific, well-formed questions for better responses
- Context Awareness: Reference specific parts or timestamps when needed
- Model Selection: Choose appropriate models based on complexity and response requirements
- Video Quality: Ensure the YouTube video is publicly accessible and has clear audio
- Rate Limiting: Be mindful of API rate limits for optimal performance
Error Handling
Common error scenarios:
- Invalid or private YouTube URLs
- Videos without accessible content or transcripts
- Network timeouts for very long videos
- Rate limit exceeded errors
For detailed error codes and troubleshooting, refer to the main API documentation.