Translation
Translate texts
POST
application/json- body
texts*array<string>Texts to translate, one result returned per input in input order
target_lang*Target LangTarget language code or English name
source_lang?|Source language, when known. Inferred if omitted.
glossary?array<>|Terminology entries: {source, target, keep}
fit_seconds?array<number|null>|Per-text time slot in seconds. Requires candidates > 1.
candidates?CandidatesPhrasings to sample per text. 1 returns a plain translation.
Default
1Successful Response
response?unknownapplication/jsoncurl -X POST 'http://127.0.0.1:8100/api/v1/translate' \ -H 'Content-Type: application/json' \ -d '{ "texts": [ "Hello there." ], "target_lang": "fr"}'Example Response
nullConvert audio format POST
Convert base64-encoded WAV audio to another format (mp3, flac). Returns the converted audio as base64.
Download YouTube audio for trimming POST
Download a YouTube URL's audio and store it server-side as a temp WAV. Returns {temp_id, duration, title, start_time}. Then POST /api/v1/ youtube/slice with a desired range to get a trimmed clip as base64.