Developer Docs
Learn how to integrate Mirelo's AI audio generation API into your creative workflow to automate sound effects, foley, and background ambiance production for video and games.
Mirelo provides a developer API for generating custom sound effects, foley, and background ambiance from text and video, plus native plugins for Adobe Premiere Pro, DaVinci Resolve Studio, and Roblox Studio. This guide is for developers and creators who want to replace manual sound-design work with programmatic audio generation.
The REST API lives at https://api.mirelo.ai. It exposes text-to-SFX and video-to-SFX generation, plus extend and inpaint. The interactive reference is at /api-docs, and the production v3 OpenAPI document is at https://api.mirelo.ai/v3/openapi.json.
API requests authenticate with a Bearer token. Keys are issued in your Mirelo Studio account, begin with sk-, and are billed against Studio credits.
Store the key in an environment variable rather than hardcoding it. Send it on every request.
Preflight the request to read its credit cost, then create the generation with ?wait=25. If the job is still running, poll urls.self and check the job's status before downloading audio. Send an Idempotency-Key on create and reuse it with the same body if you retry. The reference below covers response shapes, job outcomes, and download expiry.
Preflight
curl https://api.mirelo.ai/v3/text-to-sfx/generations/preflight \
--request POST \
--header "Authorization: Bearer $MIRELO_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "sfx-1.6",
"duration_ms": 8000,
"num_variants": 1,
"input": { "prompt": "Heavy rain on a metal roof with distant thunder" }
}'Create
curl https://api.mirelo.ai/v3/text-to-sfx/generations?wait=25 \
--request POST \
--header "Authorization: Bearer $MIRELO_API_KEY" \
--header "Content-Type: application/json" \
--header "Idempotency-Key: ${MIRELO_IDEMPOTENCY_KEY:?Set a unique key for this generation}" \
--data '{
"model": "sfx-1.6",
"duration_ms": 8000,
"num_variants": 1,
"input": { "prompt": "Heavy rain on a metal roof with distant thunder" }
}'For silent or AI-generated footage, video-to-SFX watches the picture and times effects to on-screen action. The clip is input.video on POST /v3/video-to-sfx/generations. Pass a public HTTPS URL, or upload a local file with the two requests below. An optional input.prompt covers off-screen detail: the video still drives the timing. Text-to-SFX suites make you generate, then place and sync the audio yourself.
Create from a video URL
curl https://api.mirelo.ai/v3/video-to-sfx/generations?wait=25 \
--request POST \
--header "Authorization: Bearer $MIRELO_API_KEY" \
--header "Content-Type: application/json" \
--header "Idempotency-Key: ${MIRELO_IDEMPOTENCY_KEY:?Set a unique key for this generation}" \
--data '{
"model": "sfx-1.6",
"duration_ms": 10000,
"input": {
"video": { "type": "url", "url": "https://example.com/scene.mp4" },
"prompt": "Footsteps on wet concrete"
}
}'Native plugins connect generated audio to an editing timeline or a game engine. They are listed at /plugins.
Generate sound from a selected clip or a text prompt, then use Timeline Sync to place it in Premiere Pro.
Premiere Pro installation and usageGenerate audio and place it on the timeline with Timeline Sync. The plugin requires DaVinci Resolve Studio.
DaVinci Resolve Studio installation and usageGenerate game-ready sound effects from a prompt and publish them to your Roblox account for use in an experience.
Roblox Studio installation and usageThe same API and plugins cover three common jobs.
The API reference and plugins sit next to this guide. They do not replace it.
Interactive reference for every endpoint, including request and response schemas.
Read the v3 API concepts and examples as plain Markdown.
Download the production v3 OpenAPI document.
Premiere Pro, DaVinci Resolve Studio, and Roblox Studio plugins.
Studio workflow guide for uploading a clip and generating inside the app.
Run a request in Studio before you write the client.