获取图片异步批量翻译的结果。
接口说明
请确保在使用该接口前,已充分了解图片翻译产品的收费方式和价格。
图片异步批量翻译的结果,翻译完毕后,会保存 1 小时,过期后会被清理,请及时获取结果。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
alimt:GetTranslateImageBatchResult |
none |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| TaskId |
string |
是 |
调用图片异步批量翻译接口获得的任务 ID |
EEA28E6D-4828-5031-BD8C-8FF1B3216842 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
请求结果结构 |
||
| Code |
integer |
请求结果状态码 |
200 |
| Message |
string |
请求信息 |
OK |
| RequestId |
string |
请求标识 |
DACD263C-C068-5116-83EC-117245AA35CF |
| Data |
object |
数据内容 |
|
| Result |
array<object> |
翻译结果,当改批量翻译任务没有执行完毕时,该字段为空数组 |
|
|
object |
单张图片的翻译结果 |
||
| InPaintingUrl |
string |
单张图片的译后编辑器背景图 |
https://example.com/example.jpg |
| FinalImageUrl |
string |
单张图片的翻译结果图 URL |
https://example.com/example.jpg |
| TemplateJson |
string |
单张图片的译后编辑器模版数据 |
{"TemplateJson": "Editor Template Json String "} |
| SourceImageUrl |
string |
单张图片的原图 URL |
https://example.com/example.jpg |
| Code |
integer |
单张图片的翻译状态码 |
200 |
| Message |
string |
单张图片的翻译信息 |
OK |
| Success |
boolean |
单张图片是否翻译成功标识 |
true |
| Status |
string |
标识当前任务的运行状态,可能的值及含义如下:
|
finished |
示例
正常返回示例
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 |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 110 | System.AccountNotActivated | The account has not activated the service. | |
| 111 | System.SubServiceFailed | Sub-account service failed. | |
| 101 | System.RequestTimeOut | The request has timed out. | |
| 112 | System.TranslateServiceCallFailed | Failed to call the translation service. | |
| 102 | System.Error | A system error occurred. | |
| 113 | System.AccountNotActivatedOrInArrears | The service is not activated or the account has an outstanding balance. | |
| 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. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。