ACE-Step v1.5 WebGPU
AI music generation, directly in your browser.
A TypeScript package that brings ACE-Step 1.5 to browser apps. Turn prompts and lyrics into 48 kHz stereo music, transform existing audio, and build your own music workflows. Model inference runs locally on your GPU through WebGPU.
Generate and edit music
Create tracks from text and lyrics, cover existing audio, or repaint a selected region. Base models also support stem extraction and completion.
Run models in the browser
Load official Hugging Face checkpoints directly. TypeScript coordinates text conditioning, diffusion sampling, and audio decoding on your GPU with WebGPU.
Build with TypeScript
Install the package and call its inference APIs from your app. Choose Turbo, SFT, or Base models, with optional language-model planning and inference adapters.
System requirements
Browser
WebGPU supportUse a WebGPU-capable browser with hardware acceleration enabled. Serve your app over HTTPS or localhost.
2B models · Turbo, Base, SFT
4 GB VRAM minimumStart with short clips. Leave the optional language model unloaded on smaller GPUs.
XL models · 4B
12 GB VRAM minimumDiT weights load one layer at a time and are released automatically after use.
Longer tracks, larger batches, and optional language models need more memory. These minimums are planning guidance; actual memory use depends on your settings and browser. Upstream GPU guide ↗
Model checkpoints download on first use and can be several gigabytes. The adapter check below verifies WebGPU features and buffer limits; it cannot measure available VRAM.
Use the engine in your app
Install the package, request a WebGPU device, and generate your first track. Use the guides below to build generation and audio editing into your application.
Quick start: generate and play a track
Add an <audio id="player" controls></audio> to your page.
Call await generateTrack(player) from your Generate button and retain the
returned cleanup function. Call it when replacing the track or removing the player.
Try the interactive demo
Choose a model, explore its methods, and copy the TypeScript code into your app. Leave a field empty to use the default shown in its placeholder.
WebGPU Adapter Status
Inspecting WebGPU capabilities and hardware limits…
View WebGPU Hardware Limits
AceStepWebGpu.create
engine.capabilities
CachedModelSource).
engine.loadLm() — 5 Hz LM
not loaded
With an LM loaded, generate plan the song first (thinking),
and the 5 Hz LM methods run.