Skip to content

Demucs

POST/v1/run

Demucs by Meta - advanced AI model for audio-to-audio. Delivers high-quality results with fast inference, suitable for both creative and production workflows.

Request body

Submit an async generation request. The model field selects the model; other fields are model-specific input parameters.

stringmodelrequired

Model identifier. Set to meta/demucs.

Default: meta/demucs

Optional<string>audio

URL of the audio file to separate into stems

Optional<string>output_format

Output audio format for the separated stems

Allowed values: wav, mp3

Default: mp3

Optional<array<string>>stems

Specific stems to extract. If None, extracts all available stems. Available stems depend on model: vocals, drums, bass, other, guitar, piano (for 6s model)

Default: vocals,drums,bass,other,guitar,piano

Optional<integer>segment_length

Length in seconds of each segment for processing. Smaller values use less memory but may reduce quality. Default is model-specific.

Optional<number>overlap

Overlap between segments (0.0 to 1.0). Higher values may improve quality but increase processing time.

Range: 0 to 1

Default: 0.25

Optional<integer>shifts

Number of random shifts for equivariant stabilization. Higher values improve quality but increase processing time.

Range: 1 to 10

Default: 1

Response Schema

The submit endpoint returns an accepted generation task. Poll the result endpoint with the returned id for terminal outputs or errors.

Optional<string>error

Error message if the task failed. Empty on success.

stringidrequired

Unique identifier for the generation task.

Optional<string>model

Model ID used for the prediction.

Optional<array>outputs

Array of generated content. Empty when status is not completed.

stringstatusrequired

Status of the task: pending, running, completed, failed, or timeout.

Allowed values: pending, running, completed, failed, timeout

Model capabilities

array<string>capability_tagsrequired

Capabilities declared by the model registry.

Default: audio-to-audio

stringexecution_moderequired

Execution mode declared by the model registry.

Default: async