| # NCAkit Environment Configuration | |
| # Copy this file to .env and fill in your values | |
| # =================== | |
| # Video Creator Module | |
| # =================== | |
| # Pexels API key for background videos (Required) | |
| # Get from: https://www.pexels.com/api/ | |
| PEXELS_API_KEY=your_pexels_api_key_here | |
| # Kokoro TTS endpoint URL (Required) | |
| # Example: https://your-username-kokoro-tts.hf.space | |
| HF_TTS=https://your-tts-endpoint.hf.space | |
| # Whisper model for captions (Optional, default: tiny.en) | |
| # Options: tiny.en, base.en, small.en, medium.en, large | |
| WHISPER_MODEL=tiny.en | |
| # =================== | |
| # Server Configuration | |
| # =================== | |
| # Server port (Optional, default: 8880) | |
| PORT=8880 | |
| # Log level (Optional, default: info) | |
| # Options: debug, info, warning, error | |
| LOG_LEVEL=info | |
| # Running in Docker? (Optional, default: false) | |
| DOCKER=false | |
| # Custom data directory (Optional) | |
| # DATA_DIR_PATH=/path/to/data | |
| # =================== | |
| # Add new module configs below | |
| # =================== | |
| # =================== | |
| # Story Reels Module (Image Generation) | |
| # =================== | |
| # NVIDIA API Key (PRIMARY - stable-diffusion-3-medium) | |
| # Get from: https://build.nvidia.com/ | |
| NVIDIA_API_KEY=nvapi-your_key_here | |
| # Cloudflare Worker URL (FALLBACK) | |
| CF_URL=https://image-api.yourworker.workers.dev | |
| # Cloudflare API Key (FALLBACK) | |
| CF_API=your_api_key_here | |
| # Gemini API Key (Required for AI script generation - Fallback) | |
| # Get from: https://aistudio.google.com/apikey | |
| GEMINI_API_KEY=your_gemini_key_here | |
| # Groq API Key (Primary for AI script generation) | |
| # Get from: https://console.groq.com/keys | |
| GROQ_API=gsk_your_groq_key_here | |
| # =================== | |
| # HF Cloud Storage (Optional - Recommended) | |
| # =================== | |
| # If set, videos will upload to HF Hub Dataset repo | |
| # Format: username/repo-name (e.g., robiul487/ncakit-videos) | |
| # Uses HF_TOKEN for authentication (already set above) | |
| # Folders auto-created: short_video/, story_reels/ | |
| HF_REPO=your-username/ncakit-videos | |
| ``` | |