Skip to content

Mirelo SFX1.6

POST/v1/run

Sfx1.6 by Mirelo - generate music, sound effects, and audio from text descriptions with AI. Create original compositions, ambient sounds, and audio content for any creative project.

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 mirelo/sfx1.6/text-to-audio.

Default: mirelo/sfx1.6/text-to-audio

Optional<integer>duration

Duration of the generated audio in seconds.

Range: 0.1 to 60

Default: 10

Optional<integer>seed

Seed for generation. -1 or None for random.

Range: -1 to ∞

Optional<string>upload_audio_format

Audio format for the returned files.

Allowed values: wav, mp3, aac, flac

Default: wav

Optional<boolean>ambience

When true, generate a seamlessly loopable ambience tile (room tone, rain, drones, etc.). When false, generate a generic text-conditioned SFX of `duration` seconds.

Default: false

Optional<boolean>double_output

Only used when ambience=true: concatenate the loop with itself for a 2x-length output.

Default: false

Optional<integer>num_samples

Number of variations to generate.

Range: 1 to 4

Default: 1

Optional<string>text_prompt

Text prompt for the generated audio.

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: text-to-audio

stringexecution_moderequired

Execution mode declared by the model registry.

Default: async