--- title: YouTube Summarizer API emoji: 🎬 colorFrom: purple colorTo: blue sdk: docker app_port: 7860 --- # YouTube Video Summarizer API A multilingual Flask API for summarizing YouTube videos using AI. ## Features - 🎤 **Speech-to-Text**: Whisper for videos without subtitles - 🌐 **11 Languages**: English + 10 Indian languages - 🔄 **Translation**: NLLB-200 for multilingual support - 🤖 **AI Summarization**: Groq LLaMA 3.1 ## API Endpoints | Method | Endpoint | Description | |--------|----------|-------------| | GET | `/` | Health check | | GET | `/api/health` | API status | | GET | `/api/languages` | Supported languages | | POST | `/api/transcript` | Extract transcript | | POST | `/api/translate` | Translate text | | POST | `/api/summarize` | Generate summary | | POST | `/api/process` | Full pipeline | ## Usage ```bash curl -X POST https://YOUR-SPACE.hf.space/api/process \ -H "Content-Type: application/json" \ -d '{"url": "https://youtube.com/watch?v=VIDEO_ID", "summary_type": "bullet_points"}' ``` ## Models Used - **Whisper**: openai/whisper-small (~500MB) - **NLLB-200**: facebook/nllb-200-distilled-600M (~2.4GB) - **Summarization**: Groq API (LLaMA 3.1)