Skip to main content
Use the client from request setup. These examples assume api, userAddress, and the returned songId are available. api includes the session token and selected account headers. Choose a positive interval in seconds that fits the source. This example changes seconds 15 through 30:
conservative, balanced and aggressive describe repaint intent. repaintStrength ranges from 0 to 1. You can request transition length through repaintWavCrossfadeSec and latent transition frames through repaintLatentCrossfadeFrames. Listen to the boundary; these are model controls, not guarantees of a precise audible crossfade. For vocal changes, include lyrics. /apply also accepts seed, BPM, key and language. The shortcut /repaint uses start and end instead of repaintingStart and repaintingEnd. Use the polling function from job handling.
Keep the returned taskId, songId, task, and optional stemId. A polling timeout stops your client from waiting; it does not cancel the job. The ready result is an inactive candidate. Preview result.audioUrl, then activate or merge its take. The unchanged source remains available until you keep a result.