AI翻译获取图片翻译任务
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
POST /anytrans/translate/image/get HTTP/1.1
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
workspaceId | string | 是 | 业务空间 Id | llm-kqtrcpdee4xm29xx |
taskId | string | 是 | 图片翻译任务 id | 2746f4be-cff2-465e-a2c6-12bff30ce0f9 |
返回参数
示例
正常返回示例
JSON
格式
{
"code": "success",
"message": "success",
"requestId": "377A48D7-7CFA-53F9-8CA2-14FE3F2774B6",
"success": true,
"httpStatusCode": 200,
"synchro": true,
"data": {
"traceId": "213e391517328463424251152ec9fb",
"translation": {
"angle": 0,
"width": 800,
"height": 800,
"orgWidth": 800,
"orgHeight": 800,
"boxesCount": 13,
"boundingBoxes": [
{
"upLeft": {
"x": 10,
"y": 66
},
"upRight": {
"x": 328,
"y": 69
},
"downLeft": {
"x": 9,
"y": 145
},
"downRight": {
"x": 327,
"y": 148
},
"confidence": 0.99,
"text": "修护头皮",
"direction": 0,
"tableId": 1,
"tableCellId": 1,
"translation": {
"en": "Restore Scalp Health"
}
}
],
"tableInfos": [
{
"tableId": 1,
"xCellSize": 50,
"yCellSize": 50,
"cellInfos": [
{
"tableCellId": 1,
"text": "活动价",
"xsc": 1,
"xec": 2,
"ysc": 3,
"yec": 1,
"pos": [
{
"x": 33,
"y": 11
}
]
}
]
}
]
}
}
}
错误码
HTTP status code | 错误码 | 错误信息 |
---|---|---|
400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
访问错误中心查看更多错误码。