Multimodal
Sound effects
POST /v1/audio/sfx makes a sound effect (Foley, impacts, ambience, UI sounds, transitions) from a text description, or from a video with the Mirelo models. The response is the audio file itself, in one request: no job to poll.
curl https://videorouter.sh/api/v1/audio/sfx \
-H "Authorization: Bearer llmr_sk_..." \
-H "Content-Type: application/json" \
-d '{"model": "sonilo-sfx", "prompt": "Glass bottle breaking on concrete", "duration": 4}' \
--output sfx.m4aimport requests
resp = requests.post(
"https://videorouter.sh/api/v1/audio/sfx",
headers={"Authorization": "Bearer llmr_sk_..."},
json={
"model": "mirelo-sfx-2.0",
"prompt": "Heavy rain on a tin roof, distant thunder",
"duration": 10,
},
)
resp.raise_for_status()
with open("rain.mp3", "wb") as f:
f.write(resp.content)
print(resp.headers["x-llmrouter-cost-usd"])Sound for a video
Pass video_url (a public link) to a Mirelo model to get sound that matches the picture. duration, the number of seconds to score, is then required, and prompt is optional guidance. You get back the audio only, not a video with the sound added.
curl https://videorouter.sh/api/v1/audio/sfx \
-H "Authorization: Bearer llmr_sk_..." \
-H "Content-Type: application/json" \
-d '{"model": "mirelo-sfx-2.0", "video_url": "https://example.com/clip.mp4", "duration": 5}' \
--output sfx.mp3Parameters
modelstringOptional, default sonilo-sfx.promptstringWhat the sound should be. Required unless you pass video_url.durationnumberSeconds. Default 8. Required with video_url. Limits per model below.video_urlstringMirelo models only. Public URL of the video to score.storebooleanOptional. false keeps our support copy of the output for 24 hours instead of 30 days.Models and pricing
sonilo-sfx0.5–180 sNot supportedAAC in m4a$0.0018 / secondmirelo-sfx-2.00.1–600 s1–600 sMP3about $0.014 / secondmirelo-sfx-1.60.1–60 s1–600 sMP3about $0.014 / secondPrices are before the platform fee. Sonilo is billed on the seconds it reports back. Mirelo is billed on the credits it reports for each job. mirelo-sfx-2.0 has a launch discount until December 12, 2026; after that it is about $0.021 / second. The x-llmrouter-cost-usd response header gives what the request cost.
Response and errors
The body is raw audio, not JSON. Read Content-Type to pick the file extension: audio/mp4 for Sonilo, audio/mpeg for Mirelo. The output format cannot be chosen.
Errors are JSON: 400 for an unknown model, a missing prompt, a duration out of range, or video_url on a model that does not take it; 402 when your credits do not cover the request. A failed generation is not charged.