{
  "name": "tmt",
  "display_name": "机器翻译",
  "description": "介绍如何使用API对机器翻译进行操作，包括文本翻译、文档翻译、图片翻译和语音翻译等。",
  "domain": "other",
  "api_version": "2018-03-21",
  "endpoint": "tmt.tencentcloudapi.com",
  "actions": [
    {
      "name": "ImageTranslateLLM",
      "description": "提供18种语言的图片翻译服务，可自动识别图片中的文本内容并翻译成目标语言，识别后的文本按行翻译，后续会提供可按段落翻译的版本。 - 输入图片格式：png、jpg、jpeg等常用图片格式，不支持gif动图。 - 输出图片格式：jpg。 提示：对于一般开发者，我们建议优先使用SDK接入简化开发。SDK使用介绍请直接查看 5. 开发者资源 部分。",
      "status": "online",
      "parameters": [
        {
          "name": "Data",
          "type": "string",
          "required": true,
          "description": "图片数据的Base64字符串，经Base64编码后不超过 9M，分辨率建议600*800以上，支持PNG、JPG、JPEG格式。",
          "example": "/9j/4QlQaHR0c...N6a2M5ZCI"
        },
        {
          "name": "Target",
          "type": "string",
          "required": true,
          "description": "目标语言，支持语言列表：中文：zh繁体（中国台湾）：zh-TW繁体（中国香港）：zh-HK英文：en日语：ja韩语：ko泰语：th越南语：vi俄语：ru德语：de法语：fr阿拉伯语：ar西班牙语：es意大利语：it印度尼西亚语：id马来西亚语：ms葡萄牙语：pt土耳其语：tr-",
          "example": "en"
        },
        {
          "name": "Url",
          "type": "string",
          "required": false,
          "description": "输入图 Url。 使用Url的时候，Data参数需要传入\u0026quot;\u0026quot;。 图片限制：小于 10MB，分辨率建议600*800以上，格式支持 jpg、jpeg、png。",
          "example": "https://xxx.com/image.jpg"
        }
      ],
      "required": [
        "Data",
        "Target"
      ]
    },
    {
      "name": "TextTranslate",
      "description": "腾讯翻译为合作伙伴提供文本翻译、文档翻译、交互翻译、AI同传等多种机器翻译服务，具有toB多行业解决方案。作为WMT世界机器翻译大赛冠军，翻译准确度值得信赖，其中，交互翻译能力是业界领先技术；腾讯同传是AI同传业界标杆。 提示：对于一般开发者，我们建议优先使用SDK接入简化开发。SDK使用介绍请直接查看 5. 开发者资源 部分。",
      "status": "online",
      "parameters": [
        {
          "name": "SourceText",
          "type": "string",
          "required": true,
          "description": "待翻译的文本，文本统一使用utf-8格式编码，非utf-8格式编码字符会翻译失败，请传入有效文本，html标记等非常规翻译文本可能会翻译失败。单次请求的文本长度需要低于6000字符。",
          "example": "hello"
        },
        {
          "name": "Source",
          "type": "string",
          "required": true,
          "description": "源语言，支持： auto：自动识别（识别为一种语言） zh：简体中文 zh-TW：繁体中文 en：英语 ja：日语 ko：韩语 fr：法语 es：西班牙语 it：意大利语 de：德语 tr：土耳其语 ru：俄语 pt：葡萄牙语 vi：越南语 id：印尼语 th：泰语 ms：马来西亚语 ar：阿拉伯语 hi：印地语",
          "example": "en"
        },
        {
          "name": "Target",
          "type": "string",
          "required": true,
          "description": "目标语言，各源语言的目标语言支持列表如下 zh（简体中文）：zh-TW（繁体中文）、en（英语）、ja（日语）、ko（韩语）、fr（法语）、es（西班牙语）、it（意大利语）、de（德语）、tr（土耳其语）、ru（俄语）、pt（葡萄牙语）、vi（越南语）、id（印尼语）、th（泰语）、ms（马来语）、ar（阿拉伯语） zh-TW（繁体中文）：zh（简体中文）、en（英语）、ja（日语）、ko（韩语）\ufffd...",
          "example": "zh"
        },
        {
          "name": "ProjectId",
          "type": "integer",
          "required": true,
          "description": "项目ID，可以根据控制台-账号中心-项目管理中的配置填写，如无配置请填写默认项目ID:0",
          "example": "0"
        },
        {
          "name": "UntranslatedText",
          "type": "string",
          "required": false,
          "description": "用来标记不希望被翻译的文本内容，如句子中的特殊符号、人名、地名等；每次请求只支持配置一个不被翻译的单词；仅支持配置人名、地名等名词，不要配置动词或短语，否则会影响翻译结果。",
          "example": "Beijing"
        },
        {
          "name": "TermRepoIDList",
          "type": "array",
          "required": false,
          "description": "需要使用的术语库列表，通过 [术语库操作指南](https://cloud.tencent.com/document/product/551/107926) 自行创建术语库获取。",
          "example": "[\"144aed******************fc7321d4\"]",
          "item_type": "string"
        },
        {
          "name": "SentRepoIDList",
          "type": "array",
          "required": false,
          "description": "需要使用的例句库列表，通过 [例句库操作指南](https://cloud.tencent.com/document/product/551/107927) 自行创建例句库获取。",
          "example": "[\"b77f64******************6d88df30\"]",
          "item_type": "string"
        }
      ],
      "required": [
        "SourceText",
        "Source",
        "Target",
        "ProjectId"
      ]
    }
  ]
}