Translate the text in the image into the corresponding language and generate new text List of supported languages for image translation:https://302ai-en.apifox.cn/doc-5213777Price:0.02PTC/call
Request
Header Params
Authorization
string
optional
Example:
Bearer {{YOUR_API_KEY}}
Body Params application/json
srcLang
string
required
Translation Options--Source Language please view:List of supported languages for image translation Examples as follows: auto: Automatically detect source language en: Only translate English in the image zh: Only translate Chinese in the image (including traditional Chinese) both: Translate both Chinese and English in the image th: Only translate Thai in the image
tgtLang
string
required
Translation Options — Target Language: Leave this field empty if only erasure is needed without translation. please view:List of supported languages for image translation Examples as follows: en: Translate to English zh-hant: Translate to Traditional Chinese
synthesisOn
integer
required
Enable image synthesis
translateOn
integer
required
Enable translation or not.
0:false
1:true If set to false, only erasure will be performed without translation.
commodityFilterOn
integer
optional
Enable product text protection. The default is 0 (disabled), and 1 enables protection. When enabled, text on products will be protected and not erased or translated.
downloadInfo
string
required
A single image URL to be processed. If only local image files are available, you can upload the image as base64 using the following method to obtain the URL. GhostCut: Upload local image or video to get URL - API documentation.
downloadInfos
array[string]
optional
Multiple image URLs to be processed, choose either this or ‘downloadInfo’