API referencePython APImodelversepipelinesTranslationPipelineTranslationPipeline pipe(text or texts, src_lang=..., tgt_lang=...) -> [{"translation_text": ...}].