{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ibm-translate/json-schema/ibm-translate-translate-request-schema.json",
  "title": "TranslateRequest",
  "description": "The request body for translate calls.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ibm-translate-translation-api-openapi.yml#/components/schemas/TranslateRequest",
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "array",
      "description": "Input text in UTF-8 encoding. Submit a maximum of 50 KB of text.",
      "items": {
        "type": "string"
      }
    },
    "model_id": {
      "type": "string",
      "description": "A globally unique string that identifies the underlying model that is used for translation."
    },
    "source": {
      "type": "string",
      "description": "Language code that specifies the language of the input text. If omitted, the service derives the source language from the input text. The input must contain sufficient text for the service to identify the language reliably."
    },
    "target": {
      "type": "string",
      "description": "Language code that specifies the target language for translation. Required if model_id is not specified."
    }
  }
}