Aidge Resource
Try for freeWorkplace
  • LATEST ADVANCEMENTS
    • Introducing Marco-MT: Bringing Translation to the Next Level with LLM
  • GETTING STARTED
    • Quick Start
    • Account and Authentication
    • Your First API Request
    • Test Your API Requests
    • Service Level Agreement
    • FAQ
  • API REFERENCE
    • E-commerce Information Translation
      • Marco Translator
        • Marco Translator API Reference
      • Image Translation
        • Image Translation Pro Version API Reference
        • Image Translation Pro Version Result API Call Description
        • Image Translation Standard Version API Reference
    • E-commerce Image Editing
      • Image Background Removal
        • Image Background Removal API Reference
      • Image Upscaling
        • Image Upscaling API Reference
      • Image Cropping
        • Image Cropping API Reference
      • Image Elements Removal
        • Image Elements Removal API Reference
      • Image Elements Detection
        • Image Elements Detection API Reference
    • E-commerce Virtual Model
      • Virtual Model Alternation
        • Virtual Model Alternation Submit API Reference
        • Virtual Model Alternation Result Query API Reference
      • Virtual TryOn
        • Virtual Try-on Submit API Reference
        • Virtual Try-On Query API Reference
        • General Model Library Reference
      • Hands&Feet Repair
        • Hands&Feet Repair Submit API Reference
        • Hands&Feet Repair Query API Reference
    • Editor Documentation
      • AI Model Editor
      • AI Image Editor
        • Image Workbench
        • Background Removal
        • Elements Removal
        • Image Translation
Powered by GitBook
On this page
  • Request Parameter
  • Sample Request
  • Response Parameters
  • Sample Response
  • Errors

Was this helpful?

  1. API REFERENCE
  2. E-commerce Information Translation
  3. Image Translation

Image Translation Pro Version Result API Call Description

PreviousImage Translation Pro Version API ReferenceNextImage Translation Standard Version API Reference

Last updated 1 month ago

Was this helpful?

GET /ai/image/translation_mllm/results

Using the task ID obtained from the Image Translation Pro Version task submission API, you can call this API to query the generated results of the Image Translation Pro Version.

Request Parameter

Parameter

Type

Required

Description

taskId

String

Yes

Unique task ID. Used for subsequent result queries.

Sample Request

  • For other programming languages, please refer to .

IopClient client = new IopClientImpl(url, appkey, appSecret);
IopRequest request = new IopRequest();
request.setApiName("/ai/image/translation_mllm/results");
request.setHttpMethod("GET");
request.addApiParameter("taskId", "33538560-658a-41eb-a622-f179144d36cb");
IopResponse response = client.execute(request);
System.out.println(response.getBody());
Thread.sleep(10);

We provide http based sample codes in the git code repository.

Response Parameters

Parameter

Type

Description

resCode

Number

Response code;200 indicates a successful call. For other response codes,please refer to the error code information.

resMessage

String

Error message,e.g. "content has sensitive data, please try other input".

data

Object

Result data that generated,where result_image_url is the URL of the actual result.

Sample Response

{
  "data": {
    "usage": 0,
    "taskId": "abfff0f3-89ea-4bda-853f-5158c19c906e",
    "taskStatus": "finished",
    "taskResult": [
      {
        "usage": 1,
        "taskStatus": "finished",
        "taskResult": "{\"result\":\"{\\\"data\\\":{\\\"message\\\":[],\\\"usageMap\\\":\\\"{\\\\\\\"usage\\\\\\\":1}\\\",\\\"structData\\\":{\\\"message\\\":[{\\\"edit_info\\\":{\\\"goodsRects\\\":{\\\"top\\\":0,\\\"left\\\":0,\\\"width\\\":749,\\\"height\\\":872},\\\"languages\\\":[\\\"en\\\"],\\\"resultImageIds\\\":[\\\"cad8e8a0-0fc2-11f0-a929-00163e193ad4\\\"],\\\"textAreas\\\":[{\\\"horizontalLayout\\\":\\\"center\\\",\\\"verticalLayout\\\":\\\"center\\\",\\\"color\\\":\\\"#000000\\\",\\\"texts\\\":[{\\\"valid\\\":true,\\\"horizontalLayout\\\":\\\"center\\\",\\\"verticalLayout\\\":\\\"center\\\",\\\"color\\\":\\\"#070604\\\",\\\"ovis_err_msg\\\":\\\"| ovis time: 1.620\\\",\\\"imageRect\\\":{\\\"top\\\":120,\\\"left\\\":33,\\\"width\\\":496,\\\"degree\\\":0,\\\"height\\\":82},\\\"fontsize\\\":37,\\\"language\\\":\\\"en\\\",\\\"value\\\":\\\"Hilton Hotel Soft Mattress\\\",\\\"textRect\\\":{\\\"top\\\":136,\\\"left\\\":44,\\\"width\\\":474,\\\"degree\\\":0,\\\"height\\\":50},\\\"trans_model_name\\\":\\\"MarcoVL\\\",\\\"lineCount\\\":1}],\\\"fontsize\\\":50,\\\"content\\\":\\\"希尔顿酒店软床垫\\\",\\\"lineCount\\\":1},{\\\"horizontalLayout\\\":\\\"left\\\",\\\"verticalLayout\\\":\\\"center\\\",\\\"color\\\":\\\"#000000\\\",\\\"texts\\\":[{\\\"valid\\\":true,\\\"horizontalLayout\\\":\\\"center\\\",\\\"verticalLayout\\\":\\\"center\\\",\\\"color\\\":\\\"#504d48\\\",\\\"ovis_err_msg\\\":\\\"| ovis time: 1.620\\\",\\\"imageRect\\\":{\\\"top\\\":205,\\\"left\\\":99,\\\"width\\\":331,\\\"degree\\\":0,\\\"height\\\":58},\\\"fontsize\\\":28,\\\"language\\\":\\\"en\\\",\\\"value\\\":\\\"Scientifically Blended Cotton Fabric\\\",\\\"textRect\\\":{\\\"top\\\":217,\\\"left\\\":23,\\\"width\\\":484,\\\"degree\\\":0,\\\"height\\\":34},\\\"trans_model_name\\\":\\\"MarcoVL\\\",\\\"lineCount\\\":1}],\\\"fontsize\\\":35,\\\"content\\\":\\\"全棉面料科学配比\\\",\\\"lineCount\\\":1}],\\\"repairedUrl\\\":\\\"https://aib-image.oss-ap-southeast-1.aliyuncs.com/tufan%2Fc9ec11e2-0fc2-11f0-8e7d-00163e193ad4.png?OSSAccessKeyId=LTAI5tSEGjGp5wixZgHLc3bV&Expires=4960270973&Signature=yR1gkkw2htC6r48SJpTwFBu5RyA%3D\\\",\\\"font\\\":[\\\"AlibabaSans-Regular\\\"]},\\\"src_image\\\":\\\"https://img.alicdn.com/imgextra/i1/1955749012/O1CN016P3Jas2GRY7vaevsK_!!1955749012.jpg\\\",\\\"result_list\\\":[{\\\"fileUrl\\\":\\\"https://aib-image.oss-ap-southeast-1.aliyuncs.com/tufan%2Fcaece58a-0fc2-11f0-a929-00163e193ad4.jpg?OSSAccessKeyId=LTAI5tSEGjGp5wixZgHLc3bV&Expires=4960270975&Signature=Phx38yDI96KTjHzMwl2bWu%2BUCsA%3D\\\",\\\"language\\\":\\\"en\\\"}]}],\\\"usageMap\\\":\\\"{\\\\\\\"usage\\\\\\\": 1}\\\"}},\\\"success\\\":true,\\\"requestId\\\":\\\"21016ab917435989770201345d11c6\\\"}\",\"usage\":1,\"usageMap\":\"{\\\"usage\\\":1}\"}"
      }
    ]
  },
  "resCode": 200,
  "resMessage": "success",
  "code": "0",
  "request_id": "21010f3b17435989799344390",
  "_trace_id_": "210144ab17435989799322248e03cc"
}

Errors

Error

Code

Error Message

Description

501

rate limit exceed

700

invalid input

The format of the input parameters does not meet the requirements, and resMessage will return detailed fields that do not meet the requirements.

703

image size exceeds the limit

The image size in the request parameters exceeds the limit; the dimensions of the image must not exceed 4000x4000 pixels.

704

invalid image form

The image format in the request parameters is invalid.

705

image file size exceeds the

The image size in the request parameters exceeds the limit; the image size must not exceed 10MB.

801

model failed

900

tpp url error

1000

content has sensitive data, please try other input

Content has sensitive data, please try other input.

1001

content control failed, please retry

1002

content risk filter failed, please contact us

The current interface has reached the current limit. Please contact us via or email us (aidgesales@alibaba-inc.com) to increase the current limit value.

Internal call exception,please contact us via or email us (aidgesales@alibaba-inc.com) for troubleshooting.

Internal call exception,please contact us via or email us (aidgesales@alibaba-inc.com) for troubleshooting.

Content control failed, please retry. If the error persists,please contact us via or email us (aidgesales@alibaba-inc.com).

Content risk filter failed. Please contact us via or email us (aidgesales@alibaba-inc.com).

Quick Start
https://github.com/Aidge-AI
Discord
Discord
Discord
Discord
Discord