{"uid":"cap_IRgkMSTg3_u4fmN1TlJEA","slug":"rengi-forge-audio-loop-creator-e93c9175","name":"Rengi Forge Audio Loop Creator","description":"Audio tools: Turn music or ambience into a seamless loop: cuts at zero crossings and crossfades the end into the start with an equal-power curve. Returns the loop, a 3x preview and loop points in samples. Full schema: https://rengi.dev/v1/audio-tools/schema","url":"https://rengi.dev/v1/audio-tools/loop?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mono":{"type":"boolean","default":false},"audio":{"type":"string","description":"Audio file as base64 (wav, mp3, ogg, flac, m4a)."},"endSec":{"type":"number","minimum":0},"format":{"enum":["ogg","wav","mp3"],"type":"string","default":"ogg"},"audioUrl":{"type":"string","format":"uri","description":"Audio file URL."},"startSec":{"type":"number","minimum":0},"crossfadeMs":{"type":"number","default":120,"maximum":2000,"minimum":5}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HbaPNlAelMVWF1daEIQ6l","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a music track or ambient audio into a seamless loop by cutting at zero crossings and applying an equal-power crossfade from the end back into the start, returning the looped file, a 3x preview, and loop point positions in samples.","exampleAgentPrompt":"Take this background music file at audioUrl https://example.com/music.mp3, loop the section from 2 seconds to 45 seconds with a 200ms crossfade, and give me back an ogg file that loops perfectly with no click.","exampleUseCases":[{"title":"Game background music loop","prompt":"I have this forest ambience track at https://cdn.mygame.com/forest.wav — can you make it loop seamlessly from the 1-second mark to the 58-second mark with a 150ms crossfade? Give me the result as an ogg file."},{"title":"Web app ambient loop","prompt":"Turn this café background audio at https://assets.myapp.com/cafe.mp3 into a seamless loop using a 120ms crossfade — I need it as an mp3 I can use as a continuously playing background on my website."},{"title":"Looping sound effect for UI","prompt":"I've got a base64-encoded wav of a soft hum sound — make it into a seamless stereo loop with a short 50ms crossfade and return it as a wav file with the loop point positions so I can set them in my audio engine."}],"resultDescription":"Returns the processed looped audio file in the requested format (ogg, wav, or mp3), a 3x-length preview file demonstrating the loop transition, and the loop start and end points expressed in samples so they can be embedded in an audio engine or DAW.","failureModes":["Audio file cannot be decoded (unsupported codec or corrupt data) — returns an error with format details","crossfadeMs value exceeds the duration of the selected loop region — returns a validation error","Neither audio nor audioUrl provided — returns a missing-input error","Audio URL is unreachable or returns a non-audio response — returns a fetch error","Audio is too short for the requested start/end window — returns an out-of-bounds error"],"whenToPreferThis":"Use this endpoint when you need a technically clean, click-free looping audio file — especially for game background music, ambient web audio, or any scenario where the loop must repeat indefinitely without an audible seam. It is specifically designed for zero-crossing cuts and equal-power crossfades, which is superior to naive sample-level cuts. Prefer it over generic audio editors when you need automated loop-point detection and a ready-to-use preview in a single API call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:37.543Z","isFirstParty":false,"canonicalSlug":"rengi-forge-audio-loop-creator-e93c9175"}