{
"text":[
"hello, world"
],
"source_lang":"",
"target_lang":"ZH"
}
curl --location --request POST 'https://api.302.ai/deepl/v2/translate' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"text":[
"hello, world"
],
"source_lang":"",
"target_lang":"ZH"
}'
{
"output": "hello"
}