Skip to main content

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 Mini
  • gpt-4o - GPT-4o
  • gpt-4.1-nano - GPT-4.1 Nano
  • gpt-4.1-mini - GPT-4.1 Mini
  • gpt-4.1 - GPT-4.1
  • gpt-5-nano - GPT-5 Nano
  • gpt-5-mini - GPT-5 Mini
  • o1-mini - GPT-o1 Mini
  • o1-preview - GPT-o1 Preview
  • o1 - GPT-o1
  • o3-mini - GPT-o3 Mini
  • o4-mini - GPT-o4 Mini

Google Models:

  • gemini-1.0-pro - Gemini 1.0 Pro
  • gemini-1.5-flash - Gemini 1.5 Flash
  • gemini-1.5-pro - Gemini 1.5 Pro
  • gemini-2.0-flash-lite - Gemini 2.0 Flash Lite
  • gemini-2.0-flash - Gemini 2.0 Flash
  • gemini-2.5-flash - Gemini 2.5 Flash
  • gemini-2.5-pro - Gemini 2.5 Pro

Anthropic Models:

  • claude-3-5-haiku-20241022 - Claude 3.5 Haiku
  • claude-3-5-sonnet-20240620 - Claude 3.5 Sonnet
  • claude-3-haiku-20240307 - Claude 3 Haiku
  • claude-3-opus-20240229 - Claude 3 Opus

API Reference

Request Headers

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Request Parameters

Field NameTypeDescriptionRequired
typestringMust be "CHAT_WITH_YOUTUBE_VIDEO"✔️
modelstringAI model identifier✔️
conversationIdstringMust be "CHAT_WITH_YOUTUBE_VIDEO"✔️
promptObject.promptstringYour question or message about the video✔️
promptObject.youtubeUrlstringYouTube 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

  1. Clear Questions: Ask specific, well-formed questions for better responses
  2. Context Awareness: Reference specific parts or timestamps when needed
  3. Model Selection: Choose appropriate models based on complexity and response requirements
  4. Video Quality: Ensure the YouTube video is publicly accessible and has clear audio
  5. 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.