A powerful AI-powered image and video generation application with face swapping capabilities.
- Generate high-quality images and videos using various AI models
- Face swapping capabilities that integrate your face into the generated media
- Support for multiple state-of-the-art AI models including FLUX, Zeroscope, and more
- Detailed error reporting
- Expandable architecture
- Frontend: React
- Backend: Supabase Edge Functions (Deno)
- AI Integration: Replicate API
- Storage: Supabase Storage
- Supabase account
- Replicate API account
- Node.js (v16+)
- Supabase CLI
The following environment variables need to be set in your Supabase project:
SUPABASE_URL # Your Supabase project URL
SUPABASE_SERVICE_ROLE_KEY # Your Supabase service role key (keep this secret!)
REPLICATE_API_TOKEN # Your Replicate API token
IMPORTANT: Never commit these values to your repository!
-
Clone the repository
git clone <repository-url> cd VisionaryAI
-
Install dependencies for the app
cd visionary-ai-app npm install -
Set up local Supabase development
supabase init supabase start
-
Deploy the Edge Function
supabase functions deploy visualize-dream
-
Start the frontend application
npm run dev
- Select the generation type (image or video)
- Choose an AI model
- Enter a detailed prompt
- Toggle face swap if desired and upload a face image
- Click "Generate" and wait for the result
The primary endpoint accepts POST requests with the following parameters:
{
"generationType": "image|video",
"modelId": "flux-schnell|zeroscope-v2-xl|etc",
"prompt": "Your detailed prompt here",
"enableFaceSwap": true|false,
"imagePath": "URL to face image (required if enableFaceSwap is true)",
"faceSwapTargetType": "image|video",
"parameters": {
"imageGeneration": {},
"videoGeneration": {},
"faceSwap": {}
}
}Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.