cURL
curl --request POST \ --url https://api.deapi.ai/api/v1/client/prompt/speech/price-calculation \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "prompt": "Tell me a story about a brave knight", "lang_code": "en" } '
{ "price": 0.00012345 }
Calculate the cost of enhancing a text-to-speech prompt before execution.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
3
"Tell me a story about a brave knight"
"en"
Price calculation returned successfully
0.00012345
Was this page helpful?