Request
Body Params application/json
{
"srcLang": "zh",
"tgtLang": "en",
"synthesisOn": 1,
"translateOn": 1,
"commodityFilterOn":0,
"downloadInfo": "{\"url\":\"https://resource-wangsu.helplook.net/docker_production/vf0ph9/article/CjfQe9/665460a03d980.jpg\"}",
"callback": ""
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/302/image/translate' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"srcLang": "zh",
"tgtLang": "en",
"synthesisOn": 1,
"translateOn": 1,
"commodityFilterOn":0,
"downloadInfo": "{\"url\":\"https://resource-wangsu.helplook.net/docker_production/vf0ph9/article/CjfQe9/665460a03d980.jpg\"}",
"callback": ""
}'
Responses
application/json {
"body": 1,
"code": 1000,
"count": 0,
"msg": "success",
"trace": "ae081fb0d27c46fc951892ed7fe4be4a"
}
Modified at 2024-09-28 07:50:37