GetBatchTranslate_机器翻译_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

1、调用接口 QPS 限制 50,如有扩展需求,请与我们联系钉钉群号:23369411 2、批量翻译单条字符长度上限是 1000 字符,一次最多可翻译 50 条,若超出上限,可以保存成文件,使用文档翻译 3、请确保在使用该接口前,已充分了解通用版和专业版翻译产品的收费方式和价格 4、批量翻译接口参考阿里云 OpenAPI 开发者门户调试调用

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
alimt:GetBatchTranslate
Get
全部资源
*

请求参数

字段名称字段详情
FormatTypestring

翻译文本的格式,html( 网页格式。设置此参数将对待翻译文本以及翻译后文本按照 html 格式进行处理)、text(文本格式。设置此参数将对传入待翻译文本以及翻译后结果不做文本格式处理,统一按纯文本格式处理。

示例值:text
TargetLanguagestring

译文语言参考语言 code

示例值:zh
SourceLanguagestring

原文语言参考语言 code

示例值:en
Scenestring
  • 专业版本支持的场景:商品标题(title),商品描述(description),商品沟通(communication),医疗(medical),社交(social)展开详情
示例值:general
ApiTypestring
示例值:translate_standard
SourceTextstring

json 数据格式展开详情

示例值:{"11":"hello boy","12":"go home","13":"we can"}

返回参数

字段名称字段详情
Codeinteger<int32>

错误码

示例值:200
Messagestring

返回信息

示例值:success
RequestIdstring

请求的唯一 id,用于后续排查问题使用

示例值:86D18195-D89C-4C8C-9DC4-5FCE789CE6D5
TranslatedListarray<object>

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
101
System.RequestTimeOut
The request has timed out.诊断
102
System.Error
A system error occurred.诊断
103
System.UrlDecodingError
An error occurred while decoding the URL. Verify that the specified URL is encoded.诊断
104
System.ParameterError
Some required parameters are missing.诊断
105
System.LanguageNotSupported
The specified language pair is not supported.诊断
106
System.LanguageDetectError
An error occurred while detecting the language.诊断
107
System.TranslateError
An error occurred while translating.诊断
108
System.StringTooLong
The maximum length of the specified string is exceeded.诊断
109
System.SubNotPermission
The sub account is not authorized to perform the operation.诊断
109
System.subNotPermission
The sub-account is not authorized to perform the operation.诊断
110
System.AccountNotActivated
The account has not activated the service.诊断
111
System.SubServiceFailed
Sub-account service failed.诊断
112
System.TranslateServiceCallFailed
Failed to call the translation service.诊断
113
System.AccountNotActivatedOrInArrears
The service is not activated or the account has an outstanding balance.诊断
199
System.unknownError
An unknown error occurred.诊断
199
System.UnknownError
An unknown system error occurred.诊断

变更历史

暂无变更历史

相关示例

阿里翻译批量翻译
2022-01-26