Image Translation

Introduction

The Image Translation is specially designed for e-commerce images, supporting 18 languages. It accurately handles complex text layouts within images and ensures that the translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content.

Use Cases

  1. Cross-platform e-commerce image creation:

Specifically designed for various e-commerce merchants, it can quickly convert product image content into the language understood by consumers in different regions, optimizing the display and sales of products across multiple e-commerce platforms.

  1. Marketing poster creation:

Designers can effortlessly create appealing multilingual marketing posters that cater to the specific needs of different countries and markets, ensuring visually attractive layouts while retaining the original character of the fonts.

Original Image Input
Aidge Output

Pricing

To use the API, you are required to choose and purchase an API resource pack from us on a subscription basis.

  • Each resource pack is valid for one calendar year upon successful purchase, and enables you to access the API up to the number of requests specified in the pack. No refunds can be provided.

  • If you need to purchase more QPS due to business requirements, please contact us via navigation bar or email us (aidge_support@service.alibaba.com).

  • Resource packs cannot be used across different products. For example, if you need to use both product text translation and image translation, you must purchase separate resource packs for each.

The prices are as follows:

Capacity
Price (USD)
Unit Price(USD)
Maximum QPS

1,000 images

22

$0.022 /image

5

10,000 images

150

$0.015 /image

5

100,000 images

1000

$0.010 /image

5

Key Features

1. Key Advantages

Key Advantages
Description

Protect the main subject of the image

Choose whether to translate the text within the main subject of images; this allows you to protect 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.

High-definition image handling

It can handle images up to 4000x4000 pixels, preserving clarity and quality.

Various languages

It supports multiple languages, covering the languages of more than a dozen countries and regions, with translation capabilities specifically optimized for e-commerce terminology.

Restore typeset

It perfectly restores the original image across various dimensions, including font style, size, and alignment.

Remove cleanly

It can perfectly restore and repair areas with text blocks, erasing them cleanly without leaving smudges.

Supporting returning result protocols for further adjustments.

The API allows for the customization of parameters such as font color and position. You can easily make further adjustments using the Aidge editor or other third-party image editors to ensure the image reaches its optimal state.

Currently the Aidge Image Translation Editor is not yet publicly available. If you need to use it, please contact us.

Supports multi-line text merging

It can flexibly determine the layout of multi-line text within an image and merge it into paragraphs for overall translation, ensuring accuracy of the results.

As shown in the example image, the first image is the original. The second image illustrates an incorrect line-by-line translation approach, which causes two lines of text from a single paragraph to be translated separately, resulting in a translation that does not match the original meaning. With support for multi-line text merging before translation (third image), the accuracy of the translation results can be ensured.

2. Supported Language Pairs

The Image Translation API supports translation between the language pairs listed in the following table. More language pairs are continuously being added. Please contact us via navigation bar or email us (aidge_support@service.alibaba.com) if you have any specific requirements.

Source Language
Target Language

Chinese (Simplified)

Arabic

Chinese (Simplified)

Chinese (Traditional)

Chinese (Simplified)

English

Chinese (Simplified)

French

Chinese (Simplified)

Japanese

Chinese (Simplified)

Korean

Chinese (Simplified)

Portuguese (Portugal)

Chinese (Simplified)

Spanish

Chinese (Simplified)

Vietnamese

Chinese (Simplified)

Thai

Chinese (Simplified)

Indonesia

Chinese (Simplified)

Russian

Chinese (Simplified)

German

Chinese (Simplified)

Italian

Chinese (Simplified)

Dutch

Chinese (Simplified)

Polish

Chinese (Simplified)

Turkish

Chinese (Simplified)

Hebrew

Chinese (Simplified)

Malay language

English

Arabic

English

Chinese (Traditional)

English

Chinese (Simplified)

English

Vietnamese

English

French

English

Japanese

English

Korean

English

Portuguese (Portugal)

English

Russian

English

Spanish

English

Thai

English

Indonesia

English

German

English

Italian

English

Dutch

English

Polish

English

Turkish

English

Hebrew

English

Malay language

Turkish

Arabic

Turkish

English

Quick Start

1. Sample Request

In the request parameters, you can input the image link, source language, and target language to set the linguistic options. Additionally, you can specify whether to translate the main text of the image and whether to output image data suitable for the editor.

IopClient client = new IopClient(url, appkey, appSecret);
IopRequest request = new IopRequest();
request.setApiName("/ai/image/translation");
request.addApiParameter("imageUrl", "https://ae01.alicdn.com/kf/S68468a838ad04cc081a4bd2db32745f1y/M3-Light-emitting-Bluetooth-Headset-Folding-LED-Card-Wireless-Headset-TYPE-C-Charging-Multi-scene-Use.jpg_.webp");
request.addApiParameter("sourceLanguage", "en");
request.addApiParameter("targetLanguage", "fr");
request.addApiParameter("translatingTextInTheProduct", "false");
request.addApiParameter("useImageEditor", "false");
IopResponse response = client.execute(request);
System.out.println(response.getBody());
Thread.sleep(10);

2. Sample Request

  • The output is image translation result

{
  "data": {
    "imageUrl": "https://nhci-image.oss-ap-southeast-1.aliyuncs.com/tufan%2F512506ce-32a5-11ef-9dd3-00163e08a26f.png?OSSAccessKeyId=LTAI5tCv9DpB7gYic1oGsAyv&Expires=4935959108&Signature=vf2a7lOn8uvvsfDfyeJNiYMls9Y%3D"
  },
  "requestId": "2140c5a117192871068067414ee3ad",
  "success": true,
  "resCode": 200,
  "resMessage": "success",
  "code": "0",
  "request_id": "2140cc8017192871068088228",
  "_trace_id_": "2140c5a117192871068067414ee3ad"
}

FAQ

  1. Does it support automatic recognition of images in different languages?

Currently, the image translation only translates the specified input language and does not support automatic recognition of multiple languages.

For example, if an image contains both Chinese and English, and the input source language is set to Chinese, only the Chinese text will be translated while the English text remains untouched. Conversely, if the input source language is set to English, only the English text will be translated while the Chinese text remains untouched.

  1. The image translation result has imperfections, and how should I make adjustments?

Currently, the Aidge Image Translation Editor is not publicly available. If you need to use it, please contact us. In addition, we also support outputting all parameters of the image text such as font, position, size, and color. You can access it at Image Translation Data for Editing API Reference.

If your image is not an e-commerce image or does not contain a product main body, or if you encounter missing translations, you can try setting the input parameter to translate the main body text of the product and try again.

Last updated