Installation Guide
This guide covers detailed installation steps, system requirements, environment configuration, and production deployment for Open Higgsfield AI.System Requirements
Minimum Requirements
Operating System
- macOS 10.15+
- Windows 10/11
- Linux (Ubuntu 20.04+, Debian, Fedora)
Runtime
- Node.js v18.0.0 or higher
- npm v9.0.0+ (comes with Node.js)
Browser
- Chrome/Edge 90+
- Firefox 88+
- Safari 14+
Memory
- 2GB RAM (4GB+ recommended)
- 200MB disk space for dependencies
Recommended Specifications
For the best experience:- CPU: Multi-core processor (2+ cores)
- RAM: 4GB+ for smooth multi-tab usage
- Network: Stable internet connection (API calls to Muapi.ai)
- Display: 1280×720 minimum resolution (1920×1080+ recommended)
Open Higgsfield AI runs entirely in the browser. No GPU is required on your local machine — all AI inference happens on Muapi’s servers.
Development Setup
Step 1: Install Node.js
If you don’t have Node.js installed:- macOS
- Windows
- Linux
Using Homebrew:Using the installer:
- Download from nodejs.org
- Run the
.pkginstaller - Follow the installation wizard
Step 2: Clone the Repository
Clone Open Higgsfield AI from GitHub:Step 3: Install Dependencies
Install the required npm packages:package.json:
The project has minimal dependencies — just Vite for the build system and Tailwind CSS v4 for styling. No heavy frameworks!
Step 4: Start the Development Server
Launch the Vite development server:Step 5: Access the Studio
Open your browser and navigate tohttp://localhost:5173. You should see the Open Higgsfield AI interface with the API key authentication modal.
Vite Configuration
The project uses a minimal Vite configuration with an important proxy setup:Why the Proxy?
During development, the proxy routes all/api requests to https://api.muapi.ai to avoid CORS issues. The muapi.js client detects the environment and uses the appropriate base URL:
- Development: Requests go to
/api/v1/...→ Vite proxy →https://api.muapi.ai/api/v1/... - Production: Requests go directly to
https://api.muapi.ai/api/v1/...
Environment Configuration
API Key Storage
Your Muapi API key is stored in the browser’slocalStorage under the key muapi_key:
Generation History
Generation history is also stored in localStorage under the keymuapi_history:
Upload History
Uploaded reference images are tracked inuploadHistory.js and stored locally:
Production Build
Building for Production
Create an optimized production build:- Bundle and minify all JavaScript
- Process and optimize CSS with Tailwind
- Generate optimized assets
- Output everything to the
dist/directory
Preview the Production Build
Test the production build locally:dist/ folder at http://localhost:4173.
Deployment Options
Deploy to Vercel
Deploy to Netlify
Deploy the dist folder
Drag and drop the
dist/ folder to Netlify Drop, or use the Netlify CLI:Deploy to GitHub Pages
Self-Hosting with Nginx
Troubleshooting
Common Issues
”API Key missing” Error
Symptom: Error message when trying to generate. Solution:- Open Settings from the header
- Clear any existing API key
- Close the settings modal
- Try generating again — the auth modal should appear
- Enter a valid Muapi API key starting with
sk-
CORS Errors in Development
Symptom: Console errors about CORS when making API requests. Solution: Make sure the Vite proxy is configured correctly invite.config.js:
Blank Page After Build
Symptom: Production build shows a blank page. Solution: If deploying to a subdirectory, add abase path to vite.config.js:
Generation Hangs or Times Out
Symptom: “Generating…” state never completes. Solution:- Check your internet connection
- Verify your Muapi API key is valid and has credits
- Check the browser console for error messages
- The polling timeout is 2 minutes for images, 4 minutes for videos (see
muapi.js:120)
Port Already in Use
Symptom:Error: Port 5173 is already in use
Solution:
Either stop the other process using that port, or specify a different port:
Module Not Found Errors
Symptom: Import errors or “module not found” during build. Solution:- Delete
node_modules/andpackage-lock.json - Reinstall dependencies:
Browser Compatibility Issues
Safari localStorage Issues
Symptom: API key not persisting in Safari Private Mode. Solution: Safari disables localStorage in Private Browsing mode. Use a regular browser window or a different browser.Firefox CSP Warnings
Symptom: Content Security Policy warnings in Firefox console. Solution: These are harmless warnings during development. They won’t appear in production builds.Getting Help
If you encounter issues not covered here:GitHub Issues
Report bugs or request features on GitHub
Medium Article
Read the full technical deep dive
Next Steps
Quickstart
Generate your first image or video
Image Studio
Master text-to-image and image-to-image generation
Video Studio
Create stunning AI-generated videos
Cinema Studio
Use professional camera controls
