Image Translation Pro Version API Synchronous Interface
Last updated
Was this helpful?
Last updated
Was this helpful?
lation Pro Version API Synchronous Interface
GET/POST/ai/image/translation_mllm
Parameter
Type
Required
Description
imageUrl
String
Yes
Image requirementsļ¼No more than 4000x4000 pixel. Size up to 10MB. Supporting png, jpeg, jpgm, bmp, webp.
sourceLanguage
String
Yes
Source language code. Supporting languages as the appendix shows.
Sample: en
targetLanguage
String
Yes
Target language code. Supporting languages as the appendix shows.
Sample: ko
includingProductArea
Boolean
No
Choose whether to translate the text within the main subject of images; this allows you to preserve and avoid translating embedded information such as product names.
As shown in the example image, the text in the red box represents the text on the main subject, while the text in the blue box represents text not on the main subject.
useImageEditor
Boolean
No
Whether it return layout information such as the position, font, and color of the text. This is used to obtain data for secondary editing when integrating with the image editor.
Sample: false
translatingBrandInTheProduct
Boolean
No
Choose whether to translate brand names on the image. This can help you preserve brand name information and prevent it from being translated.
Defaultļ¼falseļ¼This means not translating the brand name.ļ¼
As shown in the example imageļ¼āęč§č½ārefers to a brand name
For other programming languages, please refer to .
Parameter
Type
Description
resCode
Number
Response code;200 indicates a successful call. For other response codes,please refer to the error code information.
data
Object
Result data that generated.
data.imageUrl
String
The URL of the image generated after the image translation results.
data.imageEditorId
String
Parameter required for image editor ''Protocol Query ID'' (the ID must be provided when the request parameter useImageEditor
is set to true)
requestId
String
Request ID: Used to uniquely identify a single request call.
success
Boolean
Whether successfulļ¼true is successfulļ¼false is unsuccessful.
resMessage
String
Error message,e.g. "content has sensitive data, please try other input".
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
Sample:
Sample: false
Sampleļ¼"false"
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).