{"uid":"cap_t5m96QZ7e6-CSE7RNOMZm","slug":"fastapi-online-audio-duration-d3df8a05","name":"fastapi.online Audio Duration","description":"Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.","url":"https://api.fastapi.online/audio-duration","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"WAV audio file"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0005","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KF3yyAP51MOYyZuSyeNw9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the duration of a WAV audio file in seconds","exampleAgentPrompt":"Can you tell me how long this WAV audio file is in seconds? I need to know the exact duration before I process it further.","exampleUseCases":[{"title":"Validate recording length before upload","prompt":"Before I upload this WAV recording to my podcast platform, can you check how many seconds long it is so I know it meets the minimum length requirement?"},{"title":"Batch audio metadata extraction","prompt":"I have a WAV file from my call center recording system — can you measure its duration in seconds so I can log it to my database?"},{"title":"Check interview clip length","prompt":"I recorded an interview as a WAV file and need to know exactly how long it is in seconds before I split it into segments — can you get the duration for me?"}],"resultDescription":"Returns the duration of the provided WAV audio file, expressed as a numeric value in seconds, allowing the caller to know the exact playback length of the audio without having to play or locally analyze the file.","failureModes":["Non-WAV file format submitted — may return an error or incorrect result","Corrupted or malformed WAV file — likely returns an error","Empty or zero-byte file uploaded — likely returns an error or zero duration","File too large for single request — may time out or be rejected","Payment not included or insufficient — returns HTTP 402"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call, no-signup way to retrieve the duration of a WAV audio file without setting up local audio processing libraries. Ideal for agents that occasionally need audio metadata on demand without managing infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T15:25:06.081Z","isFirstParty":false}