Skip to content

WaveSpeedAI/wavespeed-mobile

Repository files navigation

WaveSpeed Mobile

The official Android mobile client for WaveSpeed AI, built with React + Capacitor. Shares ~70% of code with the desktop version while being deeply optimized for mobile experiences.

Overview

  • Current Version: 0.8.1
  • Package Name: ai.wavespeed.mobile
  • Minimum Android: 5.0 (API 21)

Features

Core Features

1. Models Browser

  • Browse all available WaveSpeed AI models
  • Search and filter support
  • Tap any model to use it in Playground

2. AI Playground

  • Input/Output Views: Mobile-optimized tab switching design
  • Dynamic Forms: Auto-generated parameter forms based on model schema
  • Supported Input Types:
    • Text input (with AI prompt optimization)
    • Sliders
    • Dropdown selects
    • Toggle switches
    • File uploads (image/video/audio)
    • LoRA selector
    • Size selector
    • Mask editor
  • Real-time Pricing: Shows estimated cost
  • Auto-switch: Automatically switches to output view when generation completes

3. Templates

  • Save frequently used parameter configurations
  • Rename templates
  • Export/import templates (JSON format)
  • Browse by model groups
  • One-tap to apply template to Playground

4. History

  • Grid view of generation history
  • Filter by status: All, Completed, Failed, Processing, Created, Archived
  • Thumbnail previews (image/video/audio/JSON/text)
  • View detailed information
  • Save as template
  • Local input parameter caching

5. Settings

  • API key management
  • Account balance inquiry
  • Theme switching (Auto/Dark/Light)
  • Language selection (18 languages supported)
  • Auto-save settings

Free Tools

Local AI tools that work without an API key:

1. Video Enhancer

  • Frame-by-frame AI super-resolution upscaling
  • 2x-4x upscaling options
  • Three quality options (Fast/Balanced/High Quality)
  • Real-time progress and ETA
  • WebM output (30 FPS)

2. Image Enhancer

  • AI image super-resolution
  • 2x-4x upscaling
  • ESRGAN models (slim/medium/thick)
  • Download as PNG/WebP

3. Background Remover

  • AI-powered automatic background removal
  • Outputs three results simultaneously:
    • Foreground (transparent background)
    • Background (subject removed)
    • Mask (grayscale segmentation)
  • Auto-detects GPU acceleration

4. Image Eraser

  • Paint to remove objects from images
  • LaMa inpainting model
  • Brush/Eraser/Fill tools
  • Undo/Redo support
  • Smart crop for large image optimization

5. Segment Anything

  • Tap to select objects for segmentation
  • Long-press to mark exclusion areas
  • Real-time segmentation preview
  • Feathered edge processing
  • Multiple download formats

6. Video Converter

  • Video format conversion
  • Supports WebM (VP8/VP9/AV1) and MP4 (H.264)
  • Auto codec detection
  • Progress display

Getting Started

Installation

  1. Download the APK file
  2. Open the file on your phone
  3. If prompted about "unknown sources", allow installation in settings
  4. Open the app after installation

First Use

  1. Get an API Key

    • Visit WaveSpeed AI to register
    • Get your API key from the user dashboard
  2. Login

    • Open the app and enter your API key
    • Tap "Validate" button
    • You'll be redirected to the main screen upon success
  3. Using Playground

    • Select a model from the Models page
    • Configure parameters in the Input view
    • Tap "Run" to start generation
    • Auto-switches to Output view when complete

Using Templates

  1. Save a Template

    • Configure parameters in Playground
    • Tap "Save as Template"
    • Enter a name and save
  2. Apply a Template

    • Go to Templates page
    • Tap the template you want to use
    • Automatically redirects to Playground with loaded parameters
  3. Export/Import

    • Tap the export button at the top
    • Choose to export single or all templates
    • Import with merge or replace options

Tech Stack

  • Frontend: React 18 + TypeScript
  • Mobile Framework: Capacitor 6.2
  • UI Components: shadcn/ui + Tailwind CSS
  • State Management: Zustand
  • Build Tool: Vite
  • AI Inference: ONNX Runtime, TensorFlow.js

Development

Prerequisites

  • Node.js 18+
  • Android Studio (for Android builds)
  • Java 17+

Commands

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Sync to Android
npx cap sync android

# Open Android Studio
npx cap open android

# Build Debug APK
npm run android:build:debug

# Build Release APK
npm run android:build:release

# Build Release Bundle (AAB)
npm run android:build:bundle

Project Structure

wavespeed-mobile/
├── src/
│   ├── components/      # Mobile-specific components
│   │   ├── layout/      # Navigation, header, layout
│   │   └── playground/  # Form components
│   ├── pages/           # Mobile pages
│   ├── stores/          # State management
│   ├── hooks/           # Custom React hooks
│   ├── workers/         # Web Workers for AI processing
│   ├── platform/        # Capacitor platform services
│   └── App.tsx          # Route configuration
├── android/             # Android native project
├── capacitor.config.ts  # Capacitor configuration
├── vite.config.ts       # Vite configuration
└── package.json         # Dependencies

Performance Notes

  1. First-time AI Tool Usage

    • Free tools download models on first use
    • Models are cached locally for faster subsequent use
    • Recommended to use Wi-Fi for initial downloads
  2. Memory Usage

    • AI tools have high memory consumption during processing
    • Close other apps for smoother performance
    • Large files may require more processing time
  3. GPU Acceleration

    • Some tools support WebGPU acceleration
    • Automatically falls back to CPU when unavailable
    • CPU mode is slower but more compatible

Known Limitations

  1. Video Processing

    • Video enhancement takes considerable time
    • Recommended for short videos (< 30 seconds)
    • Output fixed at 30 FPS
  2. Image Size

    • Some tools have image size limits
    • Large images are automatically scaled
    • Recommended resolution: 4K or below

Comparison with Desktop

Feature Desktop Mobile
Framework Electron Capacitor (Android)
Navigation Sidebar Bottom Navigation
Playground Multi-tab Single page + Input/Output toggle
Free Tools Route-based Persistent rendering
File Storage electron-store Capacitor Preferences
Drag & Drop Full support File picker
Video Converter No Yes

Mobile-Exclusive Features

  • Input/Output view switching for better screen utilization
  • Long-press interaction for Segment Anything exclusion
  • Local input parameter caching in history
  • Video converter tool
  • Persistent free tools state across navigation

Support

License

MIT License - see LICENSE for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published