Generate unique, AI-powered wallpapers perfectly sized for your smartphone using state-of-the-art image generation models through Replicate API.
wallai_demo.mp4
- AI-powered wallpaper generation
- Real-time preview using
- Modern, responsive UI components
- Easy-to-use prompt interface
- Download generated wallpapers in high resolution
- Prompt generator for generating prompts
- Backend Framework: Laravel
- Frontend: Livewire for real-time interactions
- UI Components: MaryUI / DaisyUI
- AI Integration: Replicate
- PHP >= 8.2
- Laravel 11
- Node.js & NPM
- Replicate API key
- Clone the repository:
git clone https://github.com/lauroguedes/wallai.git
cd wallai- Install dependencies:
composer installnpm install- Copy the environment file and set up your variables:
cp .env.example .env- Configure your Replicate API key in
.env:
REPLICATE_API_TOKEN=your_api_key_here
- Generate application key:
php artisan key:generate- Run migrations:
php artisan migrate- Build assets:
npm run build- Start the development server:
php artisan serve- Create an account at replicate.com
- Generate an API key
- Add the API key to your
.envfile
Default replicate API settings can be configured in config/services.php or using environment variables:
return [
'replicate' => [
'key' => env('REPLICATE_API_KEY'),
'image_generator_model' => env('REPLICATE_IMAGE_GENERATOR_MODEL', 'black-forest-labs/flux-schnell'),
'text_generator_model' => env('REPLICATE_TEXT_GENERATOR_MODEL', 'meta/meta-llama-3-8b-instruct'),
'aspect_ratio' => env('REPLICATE_ASPECT_RATIO', '9:21'),
'output_format' => env('REPLICATE_OUTPUT_FORMAT', 'webp'),
],
];Default system prompts can be configured or changed using environment variables.
IMAGE_GENERATOR_SYSTEM_PROMPT=
TEXT_GENERATOR_SYSTEM_PROMPT=- Visit the application in your browser
- Enter a description of the wallpaper you want to generate
- Select your smartphone model or enter custom dimensions
- Click "Generate" and wait for the AI to create your wallpaper
- Download the generated wallpaper directly to your device