Prerequisites
Before you begin, ensure you have:- Bun installed (v1.0 or higher)
- A Google OAuth application for authentication
- An Azure account with Cosmos DB and Blob Storage
- A Google Gemini API key
- (Optional) A Polar account for payments
- (Optional) A Mux account for video features
- (Optional) A Mixpanel account for analytics
Installation
Set up environment variables
Create a
.env.local file in the root directory with the following variables:Run the development server
Creating Your First Image
Sign in with Google
Navigate to the home page and click “Sign in” to authenticate with your Google account.
Create a new project
After signing in, you’ll be redirected to the Projects page. Click the ”+” button to create a new project.
Add an Upload Node
Right-click on the canvas and select “Upload” from the context menu. Upload an image from your computer.
Add a Generation Node
Right-click on the canvas again and select “Image Generator” from the Nodes section.
Connect the nodes
Click and drag from the output handle (right side) of the Upload node to the input handle (left side) of the Generation node.