Spaces:
Sleeping
Sleeping
File size: 2,659 Bytes
91d209c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
---
title: Video AdGenesis Studio
emoji: 🎬
colorFrom: blue
colorTo: purple
sdk: docker
sdk_version: latest
pinned: false
license: mit
---
# Video Genesis Studio
AI-powered video generation studio with React frontend and FastAPI backend. Create professional videos from text prompts and images using cutting-edge AI models.
## Features
✨ **AI Video Generation**
- KIE Veo 3.1 integration for high-quality video generation
- Text-to-video and image-to-video support
- Real-time progress tracking
🖼️ **Image Processing**
- Intelligent image compression
- Multiple format support
- Automatic optimization
🎬 **Video Processing**
- Frame extraction
- Video trimming and concatenation
- Full ffmpeg integration
## Setup
### Environment Variables
Set these in your Hugging Face Space settings:
**Required:**
- `KIE_API_KEY` - Get from https://kie.ai/api-key
**Optional:**
- `VITE_GEMINI_API_KEY` - For Gemini AI features
- `OPENAI_API_KEY` - For GPT-4o prompt generation
- `REPLICATE_API_TOKEN` - For Replicate video generation
- `VITE_API_BASE_URL` - Your Space URL (auto-set by HF, but can override)
- `ENVIRONMENT` - Set to `production`
### Getting Your API Keys
1. **KIE API Key** (Required):
- Visit https://kie.ai/api-key
- Sign up or log in
- Copy your API key
2. **Gemini API Key** (Optional):
- Visit https://makersuite.google.com/app/apikey
- Create a new API key
- Copy the key
3. **OpenAI API Key** (Optional):
- Visit https://platform.openai.com/api-keys
- Create a new secret key
- Copy the key
4. **Replicate Token** (Optional):
- Visit https://replicate.com/account/api-tokens
- Create a new token
- Copy the token
## Usage
1. **Set Environment Variables**:
- Go to your Space settings
- Add all required environment variables
- Save and restart the Space
2. **Access the App**:
- Your Space will be available at: `https://your-username-video-genesis-studio.hf.space`
- The frontend loads automatically
- API docs available at: `/docs`
3. **Generate Videos**:
- Enter a text prompt
- Optionally upload images
- Select video model and settings
- Click generate and wait for results
## API Endpoints
- `GET /health` - Health check
- `GET /docs` - API documentation (Swagger UI)
- `POST /api/veo/generate` - Start video generation
- `GET /api/veo/status/{task_id}` - Check generation status
- `POST /api/prompts/generate` - Generate prompts with AI
## Technical Details
- **Backend**: FastAPI (Python 3.11)
- **Frontend**: React + TypeScript + Vite
- **Video Processing**: FFmpeg
- **AI Models**: KIE Veo 3.1, Gemini, GPT-4o
## License
MIT License
|