{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "The text to translate (up to 2,000 characters)."
    },
    "target_lang": {
      "type": "string",
      "minLength": 2,
      "maxLength": 40,
      "description": "Language to translate into, as a name or code: \"Spanish\", \"es\", \"Japanese\", \"pt-BR\"."
    },
    "source_lang": {
      "description": "Source language, if known. Detected automatically when left out.",
      "type": "string",
      "minLength": 2,
      "maxLength": 40
    }
  },
  "required": [
    "text",
    "target_lang"
  ],
  "additionalProperties": false
}