{"openapi":"3.1.0","info":{"title":"Audio & Video Transcription - Speech to Text","description":"Audio or video file to an accurate transcript with timestamps, optional speaker labels, SRT/VTT subtitles and an AI summary with chapters.","version":"v1"},"servers":[{"url":"https://audio-video-transcription-speech-to-text.p.rapidapi.com","description":"RapidAPI"}],"paths":{"/v1/transcription/transcribe":{"post":{"tags":["Transcription"],"summary":"Transcribe an audio or video file from its URL","description":"Transcribe an audio or video file from its URL: verbatim timestamped\nsegments in the spoken language, optional speakers, SRT/VTT and AI summary.\nUp to 120 minutes and 150 MB. 1 credit per started minute (2 with\nspeakers); the summary adds 1 per started 5 minutes (2 at least).","operationId":"transcribeFromUrl","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscribeRequest"},"examples":{"Transcribe from URL":{"summary":"Transcribe from URL","value":{"url":"https://archive.org/download/short_story_047_1102_librivox/shortstory047_emancipation_mgt_64kb.mp3","speakers":false,"summary":false,"formats":["srt"],"max_minutes":120}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptResponse"},"examples":{"Transcribe from URL":{"summary":"Transcribe from URL (real response)","value":{"source":"https://archive.org/download/.../shortstory047_beforethelaw_ava_64kb.mp3","duration_seconds":309.37,"minutes_billed":6,"language":"en","text":"S1: Before the Law, by Franz Kafka.\nS1: Translated by Ian Johnston.\n...","segments":[{"start":0.0,"end":3.0,"speaker":"S1","text":"Before the Law, by Franz Kafka."},{"start":3.0,"end":6.0,"speaker":"S1","text":"Translated by Ian Johnston."}],"speakers":["S1"],"subtitles":{"srt":"(the whole SRT file, as text)"},"insights":{"summary":"A LibriVox reading of Franz Kafka's 'Before the Law'. A man from the country waits all his life at the gate of the law...","key_points":["A gatekeeper refuses the man entry","The man waits for years and bribes the gatekeeper"],"chapters":[{"start":"00:00:00","title":"Introduction"},{"start":"00:00:18","title":"Before the Law"}],"action_items":[]}}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Transcribe from URL"}},"/v1/transcription/transcribe/upload":{"post":{"tags":["Transcription"],"summary":"Transcribe an uploaded audio or video file","description":"Same as /transcribe, for a file sent as multipart/form-data (field\n`file`). Up to 30 MB (about 60 minutes of MP3 at 64 kbit/s).","operationId":"transcribeUploadedFile","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_Transcribe_Uploaded_File"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptResponse"},"examples":{"Transcribe Uploaded File":{"summary":"Transcribe Uploaded File","value":{"duration_seconds":309.4,"minutes_billed":6,"language":"en","segments":[{"start":12.0,"end":17.5,"speaker":"S1","text":"Welcome to the show."}],"subtitles":{},"insights":{"chapters":[{}]}}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Transcribe Uploaded File"}}},"components":{"schemas":{"Body_Transcribe_Uploaded_File":{"properties":{"file":{"type":"string","title":"File","description":"Audio or video file, up to 30 MB.","format":"binary"},"language":{"type":"string","maxLength":40,"title":"Language","description":"Spoken language, if you know it (e.g. 'en', 'French'). Detected automatically otherwise."},"speakers":{"type":"boolean","title":"Speakers","description":"Label who speaks (S1, S2...) on every segment. 2 credits per minute instead of 1.","default":false},"summary":{"type":"boolean","title":"Summary","description":"Add an AI summary: key points, chapters with timestamps and action items. +1 credit per 5 minutes (2 at least).","default":false},"formats":{"items":{"type":"string","enum":["srt","vtt"]},"type":"array","title":"Formats","description":"Subtitle files to include in the response: 'srt', 'vtt'.","default":[]},"max_minutes":{"type":"integer","maximum":120.0,"minimum":1.0,"title":"Max Minutes","description":"Refuse (400 media_too_long, not billed) files longer than this.","default":120}},"type":"object","required":["file"],"title":"Body_Transcribe Uploaded File"},"Chapter":{"properties":{"start":{"type":"string","title":"Start","description":"Start time, HH:MM:SS or MM:SS."},"title":{"type":"string","title":"Title"}},"type":"object","required":["start","title"],"title":"Chapter"},"ErrorBody":{"properties":{"status":{"type":"integer","title":"Status","examples":[400]},"code":{"type":"string","title":"Code","examples":["invalid_url"]},"message":{"type":"string","title":"Message","examples":["A website URL is required."]}},"type":"object","required":["status","code","message"],"title":"ErrorBody"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorEnvelope"},"Insights":{"properties":{"summary":{"type":"string","title":"Summary","description":"What the recording is about, in a paragraph."},"key_points":{"items":{"type":"string"},"type":"array","title":"Key Points"},"chapters":{"items":{"$ref":"#/components/schemas/Chapter"},"type":"array","title":"Chapters"},"action_items":{"items":{"type":"string"},"type":"array","title":"Action Items","description":"Tasks or decisions mentioned (meetings); empty otherwise."}},"type":"object","required":["summary","key_points","chapters","action_items"],"title":"Insights"},"Segment":{"properties":{"start":{"type":"number","title":"Start","description":"Seconds from the start.","examples":[12.0]},"end":{"type":"number","title":"End","description":"Seconds from the start.","examples":[17.5]},"speaker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker","examples":["S1"]},"text":{"type":"string","title":"Text","examples":["Welcome to the show."]}},"type":"object","required":["start","end","text"],"title":"Segment"},"Subtitles":{"properties":{"srt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Srt"},"vtt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vtt"}},"type":"object","title":"Subtitles"},"TranscribeRequest":{"properties":{"url":{"type":"string","maxLength":2048,"title":"Url","description":"Direct link to an audio or video file (MP3, M4A, WAV, OGG, FLAC, MP4, MOV, WEBM...). Up to 150 MB and 120 minutes.","examples":["https://archive.org/download/short_story_047_1102_librivox/shortstory047_emancipation_mgt_64kb.mp3"]},"language":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Language","description":"Spoken language, if you know it (e.g. 'en', 'French'). Detected automatically otherwise."},"speakers":{"type":"boolean","title":"Speakers","description":"Label who speaks (S1, S2...) on every segment. 2 credits per minute instead of 1.","default":false},"summary":{"type":"boolean","title":"Summary","description":"Add an AI summary: key points, chapters with timestamps and action items. +1 credit per 5 minutes (2 at least).","default":false},"formats":{"items":{"type":"string","enum":["srt","vtt"]},"type":"array","title":"Formats","description":"Subtitle files to include in the response: 'srt', 'vtt'.","examples":[["srt"]]},"max_minutes":{"type":"integer","maximum":120.0,"minimum":1.0,"title":"Max Minutes","description":"Refuse (400 media_too_long, not billed) files longer than this.","default":120}},"type":"object","required":["url"],"title":"TranscribeRequest"},"TranscriptResponse":{"properties":{"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"File name or final URL."},"duration_seconds":{"type":"number","title":"Duration Seconds","examples":[309.4]},"minutes_billed":{"type":"integer","title":"Minutes Billed","description":"Started minutes of audio, the basis of the credits.","examples":[6]},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","examples":["en"]},"text":{"type":"string","title":"Text","description":"The full transcript."},"segments":{"items":{"$ref":"#/components/schemas/Segment"},"type":"array","title":"Segments"},"speakers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Speakers","description":"Speaker labels found, when speakers=true."},"subtitles":{"anyOf":[{"$ref":"#/components/schemas/Subtitles"},{"type":"null"}]},"insights":{"anyOf":[{"$ref":"#/components/schemas/Insights"},{"type":"null"}]}},"type":"object","required":["duration_seconds","minutes_billed","text","segments"],"title":"TranscriptResponse"}},"securitySchemes":{"RapidAPIKey":{"type":"apiKey","in":"header","name":"X-RapidAPI-Key"},"RapidAPIHost":{"type":"apiKey","in":"header","name":"X-RapidAPI-Host"}}},"tags":[{"name":"Transcription","description":"Audio or video to a timestamped transcript, subtitles and summary."}],"security":[{"RapidAPIKey":[],"RapidAPIHost":[]}]}