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