{"openapi":"3.1.0","info":{"title":"Feltiv DubStream API","description":"\n**Feltiv DubStream** takes a live video stream (RTMP, SRT, WHIP or a LiveKit room) and returns the same stream **dubbed**: the\npicture is held back a few seconds and comes with a translated voice track per language, the original sound, and timed subtitles,\nall perfectly aligned, as an HLS link, an embeddable player, or a re-stream to YouTube/Facebook.\n\n* Authenticate with `Authorization: Bearer fds_live_...`.\n* Errors are `application/problem+json` with a stable `code`.\n* POST requests accept an `Idempotency-Key` header.\n* Guides: [/guide](/guide).\n","version":"1.0.0"},"paths":{"/healthz":{"get":{"tags":["System"],"summary":"Liveness","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/readyz":{"get":{"tags":["System"],"summary":"Readiness (database and media server reachable)","operationId":"readyz_readyz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/catalog":{"get":{"tags":["Catalog"],"summary":"Languages, engines, voices, styles and limits","operationId":"catalog_v1_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/account":{"get":{"tags":["Usage"],"summary":"Your account, limits and this month's usage","operationId":"account_v1_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"ApiKey":[]}]}},"/v1/streams":{"post":{"tags":["Streams"],"summary":"Create a dubbed stream","description":"Returns the ingest address and the stream key (shown only now), and the playback links.","operationId":"create_stream_v1_streams_post","security":[{"ApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Streams"],"summary":"List streams (newest first)","operationId":"list_streams_v1_streams_get","security":[{"ApiKey":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"starting_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor: the id of the last stream of the previous page","title":"Starting After"},"description":"Cursor: the id of the last stream of the previous page"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(idle|starting|live|reconnecting|ending|ended|failed)$"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/streams/{stream_id}":{"get":{"tags":["Streams"],"summary":"Get a stream","operationId":"get_stream_v1_streams__stream_id__get","security":[{"ApiKey":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"string","title":"Stream Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Streams"],"summary":"Change a stream (settings only while it is not running)","operationId":"patch_stream_v1_streams__stream_id__patch","security":[{"ApiKey":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"string","title":"Stream Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Streams"],"summary":"Delete a stream and its media now","operationId":"delete_stream_v1_streams__stream_id__delete","security":[{"ApiKey":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"string","title":"Stream Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/streams/{stream_id}/stop":{"post":{"tags":["Streams"],"summary":"Stop a running stream (the recording is kept)","operationId":"stop_stream_v1_streams__stream_id__stop_post","security":[{"ApiKey":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"string","title":"Stream Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/streams/{stream_id}/start":{"post":{"tags":["Streams"],"summary":"Start pulling from LiveKit (source=livekit only)","operationId":"start_stream_v1_streams__stream_id__start_post","security":[{"ApiKey":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"string","title":"Stream Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/streams/{stream_id}/test-source":{"post":{"tags":["Streams"],"summary":"Play our sample source into this stream (for testing)","operationId":"test_source_v1_streams__stream_id__test_source_post","security":[{"ApiKey":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"string","title":"Stream Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TestSource"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/streams/{stream_id}/rotate-key":{"post":{"tags":["Streams"],"summary":"Replace the stream key (the old one stops working)","operationId":"rotate_key_v1_streams__stream_id__rotate_key_post","security":[{"ApiKey":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"string","title":"Stream Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/streams/{stream_id}/playback-tokens":{"post":{"tags":["Playback"],"summary":"Create a signed, expiring viewer link","operationId":"playback_token_v1_streams__stream_id__playback_tokens_post","security":[{"ApiKey":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"string","title":"Stream Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PlaybackTokenCreate"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/streams/{stream_id}/captions":{"get":{"tags":["Streams"],"summary":"Download the subtitles (after the stream ended)","operationId":"captions_v1_streams__stream_id__captions_get","security":[{"ApiKey":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"string","title":"Stream Id"}},{"name":"lang","in":"query","required":true,"schema":{"type":"string","pattern":"^[a-z]{2}$","title":"Lang"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","pattern":"^(vtt|srt)$","default":"vtt","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/streams/{stream_id}/transcript":{"get":{"tags":["Streams"],"summary":"Every translated sentence with its times (JSON)","operationId":"transcript_v1_streams__stream_id__transcript_get","security":[{"ApiKey":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"string","title":"Stream Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/streams/{stream_id}/metrics":{"get":{"tags":["Streams"],"summary":"Live quality numbers of a stream","operationId":"metrics_v1_streams__stream_id__metrics_get","security":[{"ApiKey":[]}],"parameters":[{"name":"stream_id","in":"path","required":true,"schema":{"type":"string","title":"Stream Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/usage":{"get":{"tags":["Usage"],"summary":"Language-minutes per stream and language","operationId":"usage_v1_usage_get","security":[{"ApiKey":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Unix time","title":"From"},"description":"Unix time"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Unix time","title":"To"},"description":"Unix time"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks":{"get":{"tags":["Webhooks"],"summary":"List webhook endpoints","operationId":"list_webhooks_v1_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"ApiKey":[]}]},"post":{"tags":["Webhooks"],"summary":"Add a webhook endpoint (the signing secret is shown once)","operationId":"add_webhook_v1_webhooks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKey":[]}]}},"/v1/webhooks/{webhook_id}":{"delete":{"tags":["Webhooks"],"summary":"Remove a webhook endpoint","operationId":"del_webhook_v1_webhooks__webhook_id__delete","security":[{"ApiKey":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}/test":{"post":{"tags":["Webhooks"],"summary":"Send a test event to one endpoint","operationId":"test_webhook_v1_webhooks__webhook_id__test_post","security":[{"ApiKey":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}/deliveries":{"get":{"tags":["Webhooks"],"summary":"Recent deliveries of one endpoint","operationId":"deliveries_v1_webhooks__webhook_id__deliveries_get","security":[{"ApiKey":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/play/{sid}/t/{token}/{fname}":{"get":{"tags":["Playback"],"summary":"Signed playback file (HLS playlist, segment or subtitles)","operationId":"play_signed_play__sid__t__token___fname__get","parameters":[{"name":"sid","in":"path","required":true,"schema":{"type":"string","title":"Sid"}},{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"fname","in":"path","required":true,"schema":{"type":"string","title":"Fname"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/play/{sid}/{fname}":{"get":{"tags":["Playback"],"summary":"Public playback file (HLS playlist, segment or subtitles)","operationId":"play_public_play__sid___fname__get","parameters":[{"name":"sid","in":"path","required":true,"schema":{"type":"string","title":"Sid"}},{"name":"fname","in":"path","required":true,"schema":{"type":"string","title":"Fname"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LiveKitSource":{"properties":{"url":{"type":"string","maxLength":300,"title":"Url","description":"Your LiveKit server address, e.g. wss://yourproject.livekit.cloud","examples":["wss://acme.livekit.cloud"]},"api_key":{"type":"string","maxLength":64,"minLength":3,"title":"Api Key","description":"A LiveKit API key created for Feltiv (Settings > Keys)."},"api_secret":{"type":"string","maxLength":128,"minLength":10,"title":"Api Secret","description":"Its secret. Stored encrypted; never shown again."},"room":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9_.\\-]+$","title":"Room","description":"The room to translate."},"participant":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Participant","description":"Identity of the speaker to translate. Empty = the first participant who publishes a camera or screen and a microphone."}},"additionalProperties":false,"type":"object","required":["url","api_key","api_secret","room"],"title":"LiveKitSource"},"PlaybackTokenCreate":{"properties":{"ttl_s":{"type":"integer","maximum":604800.0,"minimum":60.0,"title":"Ttl S","description":"How long the link works (60 s to 7 days).","default":21600},"viewer":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Viewer","description":"Optional label of the viewer (kept inside the token)."}},"additionalProperties":false,"type":"object","title":"PlaybackTokenCreate"},"Restream":{"properties":{"language":{"type":"string","title":"Language","description":"Which dubbed language to send."},"rtmp_url":{"type":"string","maxLength":500,"title":"Rtmp Url","description":"Full RTMP(S) URL including the stream key of the target (e.g. rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx). Stored encrypted."}},"additionalProperties":false,"type":"object","required":["language","rtmp_url"],"title":"Restream"},"StreamCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"source":{"type":"string","enum":["rtmp","srt","whip","livekit"],"title":"Source","description":"How you will send the video. rtmp/srt/whip: push to the ingest address we return. livekit: we join your LiveKit room.","default":"rtmp"},"source_language":{"type":"string","title":"Source Language","description":"Language of the incoming speech (code from GET /v1/catalog source_languages). Only 'en' is tested end to end so far; others are supported by the engines but marked 'beta' until verified as a source language.","default":"en"},"languages":{"items":{"type":"string"},"type":"array","maxItems":4,"minItems":1,"title":"Languages","description":"Output languages (codes from GET /v1/catalog). Each is one dubbed audio track."},"engine":{"type":"string","enum":["sarvam","gemini"],"title":"Engine","default":"sarvam"},"voice":{"type":"string","enum":["female","male","clone"],"title":"Voice","description":"clone = the speaker's own voice (Sarvam only, needs voice_clone_consent). Learned from the first 13 s of speech; deleted when the stream ends.","default":"female"},"voice_clone_consent":{"type":"boolean","title":"Voice Clone Consent","description":"Required true for voice=clone: you confirm the speaker agreed.","default":false},"style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style","description":"Translation style; see GET /v1/catalog. Default depends on the engine."},"delay_s":{"type":"number","maximum":30.0,"minimum":8.0,"title":"Delay S","description":"How far the output is held back so voice, subtitles and picture line up. 12 s recommended.","default":12},"original_audio":{"type":"boolean","title":"Original Audio","description":"Also offer the original sound as an audio track.","default":true},"subtitles":{"type":"string","enum":["target","source","both","none"],"title":"Subtitles","default":"target"},"background_original_db":{"anyOf":[{"type":"number","maximum":-6.0,"minimum":-40.0},{"type":"null"}],"title":"Background Original Db","description":"Mix the original sound quietly under the dub (e.g. -20 dB). Empty = no background."},"playback":{"type":"string","enum":["public","signed"],"title":"Playback","description":"signed = viewers need a link from POST /playback-tokens.","default":"public"},"record":{"type":"boolean","title":"Record","description":"Keep the full stream as a recording (video on demand) after it ends.","default":true},"video_transcode":{"type":"boolean","title":"Video Transcode","description":"Re-encode the picture (use if your encoder cannot send a keyframe every 2 s).","default":false},"reconnect_window_s":{"type":"integer","maximum":300.0,"minimum":10.0,"title":"Reconnect Window S","description":"How long we wait for your encoder to come back after a drop.","default":60},"restream":{"items":{"$ref":"#/components/schemas/Restream"},"type":"array","maxItems":3,"title":"Restream"},"livekit":{"anyOf":[{"$ref":"#/components/schemas/LiveKitSource"},{"type":"null"}]},"metadata":{"additionalProperties":{"type":"string"},"type":"object","title":"Metadata","description":"Your own labels (max 20 keys)."}},"additionalProperties":false,"type":"object","required":["name","languages"],"title":"StreamCreate","examples":[{"delay_s":12,"engine":"sarvam","languages":["hi"],"name":"Demo stream","source":"rtmp","style":"modern-colloquial","subtitles":"target","voice":"female"}]},"StreamPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"metadata":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Metadata"},"delay_s":{"anyOf":[{"type":"number","maximum":30.0,"minimum":8.0},{"type":"null"}],"title":"Delay S"},"languages":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4,"minItems":1},{"type":"null"}],"title":"Languages"},"style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style"},"voice":{"anyOf":[{"type":"string","enum":["female","male","clone"]},{"type":"null"}],"title":"Voice"},"voice_clone_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Voice Clone Consent"},"subtitles":{"anyOf":[{"type":"string","enum":["target","source","both","none"]},{"type":"null"}],"title":"Subtitles"},"playback":{"anyOf":[{"type":"string","enum":["public","signed"]},{"type":"null"}],"title":"Playback"}},"additionalProperties":false,"type":"object","title":"StreamPatch"},"TestSource":{"properties":{"minutes":{"type":"number","maximum":15.0,"minimum":0.5,"title":"Minutes","description":"How long to play the built-in sample source (it loops).","default":5}},"additionalProperties":false,"type":"object","title":"TestSource"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WebhookCreate":{"properties":{"url":{"type":"string","maxLength":500,"title":"Url","description":"Your HTTPS endpoint."},"events":{"items":{"type":"string"},"type":"array","title":"Events","description":"Event types, or ['*'] for all."}},"additionalProperties":false,"type":"object","required":["url"],"title":"WebhookCreate"}},"securitySchemes":{"ApiKey":{"type":"http","description":"Your access key: fds_live_... (paste the key only, without 'Bearer').","scheme":"bearer"}}},"tags":[{"name":"Streams"},{"name":"Playback"},{"name":"Usage"},{"name":"Webhooks"},{"name":"Catalog"},{"name":"System"}]}