Loops and variations for a game level
Render every variation of one preset as a loop of the same length and tempo, so a game or app can switch between them on the bar.
For: Game and app developers who need music that changes with the action. Cost: About 1.125 render-minutes (5 loops of 8 bars at 142 BPM, 13.52 s each; every output is charged its own length, 0.225 render-minutes).
Find a preset at your tempo with several variations:
variationslists each one's slots.GET /v1/presetsShell curl -sS "https://api.map.audio/v1/presets?q=jungle&tempoMin=130&tempoMax=150" \ -H "Authorization: Bearer $MAP_API_KEY" \ -H "Map-Version: 2026-11-01"One job renders each slot as its own 8-bar loop; FLAC keeps them lossless and smaller than WAV.
POST /v1/rendersShell curl -sS "https://api.map.audio/v1/renders" \ -H "Authorization: Bearer $MAP_API_KEY" \ -H "Map-Version: 2026-11-01" \ -H "Prefer: wait=30" \ -H "Content-Type: application/json" \ -d '{"source":{"preset":"pam:factory/junglistic"},"bars":8,"variations":{"kind":"slots","slots":[1,2,3,4,5]},"format":{"container":"flac"},"seed":42}'Poll until
statusis succeeded. Each output'snameis its slot (slot-1 to slot-5) and itsurldownloads it for an hour.GET /v1/jobs/{id}Shell curl -sS "https://api.map.audio/v1/jobs/$JOB_ID" \ -H "Authorization: Bearer $MAP_API_KEY" \ -H "Map-Version: 2026-11-01"