Back to explore

language

Translate

Credits: 0.01

Text

POST /v1/translate/Text

Basic text translation

Request

contentstring

The contents to be translated

formatstring

The string format, `text` or `html`

modelstring

The model to use for translation, `nmt` or `base`, See https://cloud.google.com/translate/docs/advanced/translating-text-v3#comparing-models for more information

sourcestring

Source language, format in ISO-639-1 codes See https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for more information

targetstring

Target language, format in ISO-639-1 codes See https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for more information

Response

translationobject

The translated text

Request

Response

{
    "translation": {
        "text": "Bonjour",
        "source": "und",
        "model": "nmt"
    }
}