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 a run response. If its status is pending or running, poll GET /v1/run/{id} with the returned opaque ID until it reaches a terminal state.

stringidrequired

Opaque SandBase run identifier. Use it exactly as returned; no prefix is guaranteed.

stringstatusrequired

Current public run status.

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

Optional<string>model

Public SandBase model name used for this run.

Optional<array<object>>outputs

Present only for completed runs. Each object is capability-specific; inspect the selected model schema for its fields.

Optional<object>error

Present only for failed or timeout runs. Contains a public error type and sanitized message.

Optional<string>error.type

Stable public error category.

Optional<string>error.message

Sanitized error message safe to show to clients.

Optional<object>usage

Usage details when available.

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