Overview
Generation history provides:Persistent Storage
Up to 50 images (Image Studio) or 30 videos (Video Studio) saved in browser localStorage.
Automatic Saving
Every successful generation is saved automatically — no manual action required.
Visual Timeline
History sidebar shows thumbnails in reverse chronological order (newest first).
One-Click Download
Download any past generation directly from the history sidebar.
How It Works
Storage Flow
Generation Completes
When an image or video generation finishes successfully, the API returns a result URL:
Show in Sidebar
The history sidebar automatically appears (if hidden) and displays the new generation at the top with a glowing border.
Storage Locations
Each studio maintains its own history in localStorage:- Image Studio:
muapi_history(up to 50 entries) - Video Studio:
video_history(up to 30 entries) - Cinema Studio:
cinema_history(up to 50 entries)
Image Studio and Cinema Studio share the same history key (
muapi_history) but store different metadata (Cinema Studio saves camera settings).Using Generation History
Viewing Past Generations
Locate History Sidebar
If you have any past generations, the history sidebar appears automatically on the right side of the screen:
- Width: 80px (mobile) or 96px (desktop)
- Label: “History” at the top
- Thumbnails: Displayed in a vertical list
Click a Thumbnail
Click any thumbnail to:
- View the full-resolution result in the canvas
- Highlight the thumbnail with a yellow glow
- Load associated metadata (prompt, model, settings)
Downloading from History
- From Canvas View
Sidebar UI Elements
- Thumbnail Cards
- Empty State
- Auto-Scroll
Each history entry is displayed as a square thumbnail card:Visual Elements:
- Thumbnail image — Preview of the generated result
- Border — Yellow glow for active/latest, subtle for others
- Aspect ratio — Square crop for consistency
- Hover overlay — Black semi-transparent with download button
- Click → Load in canvas view
- Hover → Show download button
- Active state → Yellow border with glow effect
History Metadata
Image Studio History
Each image generation saves:muapi_historyMax entries: 50
Oldest removed: FIFO (first-in, first-out)
Video Studio History
Each video generation saves:video_historyMax entries: 30 (smaller than images due to localStorage size limits)
Oldest removed: FIFO
Cinema Studio History
Each cinematic shot saves additional camera settings:cinema_historyMax entries: 50
Oldest removed: FIFO
Cinema Studio stores full camera settings so you can reload and iterate on past shots with the exact same technical specifications.
Advanced Features
Regenerating from History
Studio Reloads Settings
The studio returns to the prompt bar with all settings pre-filled:
- Prompt (if saved)
- Model (same as original)
- Aspect ratio (same as original)
- Quality/resolution (same as original)
- Camera settings (Cinema Studio only)
Regenerating produces a new variation, not an exact copy. AI models are non-deterministic (different outputs for the same input).
Restoring Cinema Studio Settings
Cinema Studio’s history is especially powerful because it restores full camera settings:Settings Auto-Restore
The prompt bar automatically updates with:
- Original prompt
- Camera body, lens, focal length, aperture
- Aspect ratio and resolution
History Limits
Why Limits Exist
Browser localStorage has a per-origin limit (typically 5-10MB). To stay within this limit:- Image Studio: 50 generations (text data only, ~50KB)
- Video Studio: 30 generations (text data only, ~30KB)
- Cinema Studio: 50 generations (text + camera settings, ~75KB)
What Happens at the Limit
When you exceed the limit:- The oldest entry is removed (FIFO)
- The new entry is added to the front of the array
- The updated history is saved to localStorage
Increasing Limits
You can increase the limits by modifying the source code: Image Studio (src/components/ImageStudio.js):
src/components/VideoStudio.js):
Managing History
Clearing History
There’s no built-in “clear all” button, but you can manually clear history via browser console:- Clear Image History
- Clear Video History
- Clear Cinema History
- Clear All History
Exporting History
You can export your generation history as JSON for backup or analysis:history.json.
Importing History
To restore a previously exported history:Best Practices
Organizing Your Work
Organizing Your Work
- Download important generations — Don’t rely solely on history (localStorage can be cleared)
- Keep notes separately — localStorage doesn’t support custom notes; use external tools
- Export periodically — Back up your history JSON for safekeeping
Performance Considerations
Performance Considerations
- Clear old generations — If you have 50+ generations, performance may degrade slightly
- Don’t exceed limits — Stay within the default limits (50/30) for best performance
- Use download — Download generations you want to keep long-term
Privacy & Security
Privacy & Security
- Hosted URLs are public — Anyone with a Muapi.ai URL can view the generation
- Don’t generate sensitive content — Generations may be accessible by anyone with the URL
- Clear history before sharing — If you share your browser or demo the app, clear generation history first
Use Cases
Learning from Past Generations
Learning from Past Generations
Review your generation history to:
- Identify effective prompts — See which prompts produced the best results
- Compare models — Test the same prompt across different models
- Track experiments — Keep a log of what settings worked well
Iterating on Ideas
Iterating on Ideas
Use history to refine your creative vision:
- Regenerate with tweaks — Load a past generation, adjust settings, regenerate
- A/B testing — Compare different camera settings, aspect ratios, or quality levels
- Style consistency — Reload settings from a successful generation to maintain style
Portfolio Building
Portfolio Building
Download your best generations to build a portfolio:
- Curate your work — Review history and download favorites
- Track progress — See how your prompting skills improve over time
- Showcase variety — Export generations from different studios and models
Troubleshooting
History empty after browser restart
History empty after browser restart
Cause: localStorage cleared or browser in private modeSolution:
- Check if browser is in incognito/private mode (localStorage is session-only)
- Ensure browser allows localStorage for your origin
- Re-generate content to rebuild history
Thumbnails not loading
Thumbnails not loading
Cause: Muapi.ai URLs expired or network issueSolution:
- Check browser console for network errors
- Try viewing in canvas (click thumbnail) to see full error
- If URL expired, the generation is lost (download important ones!)
History sidebar not appearing
History sidebar not appearing
Old generations disappearing
Old generations disappearing
Cause: History limit reached (50 images or 30 videos)Solution:
- Expected behavior — Oldest entries are removed when limit is reached
- Download important generations before they’re removed
- Increase history limit in source code (see “Increasing Limits” above)
Related Features
Upload History
Manage reference images across studios
Image Studio
Generate and edit images with AI
Video Studio
Create AI videos from text or images
