falText to audioComing soon

fal-ai/diffrhythm

fal-ai/diffrhythm is a text to audio tool from fal that runs in the background and returns audio. Coming soon: listed with its price, not yet open to runs.

This tool is listed but not yet available to run.

Price pending

Pricing

Price pending.

Limits

Runs
In the background
Returns
audio
Longest queue wait
3600s
Run deadline
1800s
Largest inline input
1024 KB
Largest input file
500 MB
Largest output
4768 MB
Outputs per run
16

Input

FieldKindDefaultDescription
lyrics requiredtext—The prompt to generate the song from. Must have two sections. Sections start with either [chorus] or a [verse].
reference_audio_urltext—The URL of the reference audio to use for the music generation.
style_prompttext—The style prompt to use for the music generation.
music_durationone of
95s, 285s
95sThe duration of the music to generate.
cfg_strengthnumber
1 to 10
4The CFG strength to use for the music generation.
schedulerone of
euler, midpoint, rk4, implicit_adams
eulerThe scheduler to use for the music generation.
num_inference_stepsnumber (whole)
10 to 100
32The number of inference steps to use for the music generation.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/diffrhythm",
    "input": {
      "lyrics": "[00:10.00]Moonlight spills through broken blinds\n[00:13.20]Your shadow dances on the dashboard shrine\n[00:16.85]Neon ghosts in gasoline rain\n[00:20.40]I hear…"
    }
  }'