{"uid":"cap_ZsvSU8CmPJBCUAQ6S3Ish","slug":"audio-calc-lufs-math-636c0866","name":"Audio Calc LUFS Math","description":"Loudness maths: gain to a LUFS target or platform, resulting true peak vs ceiling, or combining segment loudness.","url":"https://audio-calc.x402tookit.com/lufs-math?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"lufs":{"type":"number","description":"Measured integrated loudness in LUFS (negative), for example -9.5"},"target":{"type":"string","description":"Target LUFS or a name: spotify, youtube, apple-music, amazon-music, tidal, podcast, ebu-r128, atsc-a85, arib-tr-b32"},"segments":{"type":"string","description":"To combine: lufs:seconds pairs, for example -20:30,-10:30"},"ceilingDbtp":{"type":"number","description":"True-peak ceiling in dBTP (default -1)"},"truePeakDbtp":{"type":"number","description":"Measured true peak in dBTP, to predict the peak after the gain"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"mode":{"type":["null","string"]},"gainDb":{"type":["null","number"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"platform":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"gainLinear":{"type":["null","number"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"targetLufs":{"type":["null","number"]},"ceilingDbtp":{"type":["null","number"]},"combinedLufs":{},"measuredLufs":{"type":["null","number"]},"segmentCount":{},"totalSeconds":{},"limitingNeeded":{"type":["boolean","null"]},"peakHeadroomDb":{"type":["null","number"]},"newTruePeakDbtp":{"type":["null","number"]},"platformTargets":{"type":["null","object"],"properties":{"tidal":{"type":["null","number"]},"podcast":{"type":["null","number"]},"spotify":{"type":["null","number"]},"youtube":{"type":["null","number"]},"atsc-a85":{"type":["null","number"]},"ebu-r128":{"type":["null","number"]},"apple-music":{"type":["null","number"]},"arib-tr-b32":{"type":["null","number"]},"amazon-music":{"type":["null","number"]}}},"loudestSegmentLufs":{},"quietestSegmentLufs":{}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_v5gFBlY1aeqqw_NwtofYE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates loudness gain adjustments to hit a LUFS target or streaming platform standard, predicts true peak after gain, and combines segment loudness values.","exampleAgentPrompt":"My track measured -18 LUFS and I want to normalize it for Spotify — how much gain do I need, and will the true peak stay under -1 dBTP if my current true peak is -4 dBTP?","exampleUseCases":[{"title":"Podcast loudness normalization check","prompt":"My podcast episode measured -19.5 LUFS and my true peak is at -3.2 dBTP — how much gain do I need to hit the standard podcast loudness target, and will I need a limiter after applying it?"},{"title":"Multi-segment integrated loudness","prompt":"I have three audio segments: one that's -22 LUFS for 45 seconds, one that's -16 LUFS for 30 seconds, and one that's -20 LUFS for 60 seconds — what's the combined integrated loudness across all of them?"},{"title":"YouTube upload loudness check","prompt":"My mix is at -11 LUFS right now — what gain adjustment do I need to match the YouTube loudness target, and what will my true peak be after the adjustment if it's currently at -1.5 dBTP?"}],"resultDescription":"Returns a JSON object with the calculated gain in dB and linear scale, the predicted new true peak in dBTP, peak headroom remaining, whether limiting is needed, the target LUFS (and source/platform name if a named target was used), the combined LUFS if segments were provided, a human-readable summary and verdict, plus any caveats or platform targets table.","failureModes":["Missing required 'lufs' parameter when computing gain results in an error or degraded response","Invalid or unrecognized platform name for 'target' returns an error or falls back to numeric","Malformed 'segments' string format causes parsing failure","True peak values provided as positive numbers instead of negative dBTP may produce unexpected results","Missing segment data when combination mode is implied"],"whenToPreferThis":"Use this endpoint when you need precise loudness mathematics for audio normalization workflows — especially when targeting named streaming platforms (Spotify, YouTube, Apple Music, etc.) or broadcast standards (EBU R128, ATSC A/85), when predicting whether a gain adjustment will cause true peak clipping, or when combining multiple audio segment loudness values into a single integrated LUFS figure. Prefer over manual calculation or general audio tools when you need instant, deterministic results with platform-specific targets built in.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:02:35.292Z","isFirstParty":false,"canonicalSlug":"audio-calc-lufs-math-636c0866"}