Text translation API helps us convert a piece of text to a target language that it supports. The translation happens through the Neural Machine Translation (NMT) model. If the NMT is not supported for any language translation pair, then Phrase Based Machine Translation (PBMT) is used.