获取图片异步批量翻译的结果。
接口说明
请确保在使用该接口前,已充分了解图片翻译产品的收费方式和价格。
图片异步批量翻译的结果,翻译完毕后,会保存 1 小时,过期后会被清理,请及时获取结果。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用前面加 * 表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
alimt:GetTranslateImageBatchResult | none | *全部资源 * |
| 无 |
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
TaskId | string | 是 | 调用图片异步批量翻译接口获得的任务 ID | EEA28E6D-4828-5031-BD8C-8FF1B3216842 |
返回参数
示例
正常返回示例
JSON
格式
{
"Code": 200,
"Message": "OK",
"RequestId": "DACD263C-C068-5116-83EC-117245AA35CF",
"Data": {
"Result": [
{
"InPaintingUrl": "https://example.com/example.jpg",
"FinalImageUrl": "https://example.com/example.jpg",
"TemplateJson": "{\"TemplateJson\": \"Editor Template Json String\t\"}",
"SourceImageUrl": "https://example.com/example.jpg",
"Code": 200,
"Message": "OK",
"Success": true
}
],
"Status": "finished"
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
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. | URL编码错误 |
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. | 字符过长 |
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. | 账号服务没有开通或者欠费 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史