cURL
curl --request POST \ --url https://api.deapi.ai/api/v1/client/prompt/image/price-calculation \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "prompt": "A beautiful landscape", "negative_prompt": "blurry, low quality" } '
{ "price": 0.00012345 }
Calculate the cost of enhancing a text-to-image prompt before execution.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
3
"A beautiful landscape"
"blurry, low quality"
Price calculation returned successfully
0.00012345
Was this page helpful?