curl --location --request POST 'http://dev-cn.your-api-server.com/texts/completions' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"formality": "default",
"max_tokens": 2048,
"model": "chat-sophos-1",
"n": 1,
"source_lang": "string",
"target_lang": "string",
"temperature": 0.65,
"text": "string"
}'
{
"data": {
"outputs": [
{
"index": 0,
"text": "A beautiful sentence hand crafted by TextCortex."
}
],
"remaining_credits": 0
},
"status": "success"
}