Chat(Translate into English)
Translation service from DeepLPrice: 25 PTC / 1M tokens
Request
API Key from 302.AI backend
Example:Bearer {{YOUR_API_KEY}}
Body Params application/json
The ID of the model to use
{
"model": "deepl-en",
"message":"你好"
}
Request samples
curl --location --request POST 'https://api.302.ai/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "deepl-en",
"message":"你好"
}'
Responses
application/json Modified at 2025-06-26 08:19:46