Skip to main content
POST
/
api
/
v1
/
client
/
prompt
/
image
/
price-calculation
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
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string
Minimum string length: 3
Example:

"A beautiful landscape"

negative_prompt
string | null
Minimum string length: 3
Example:

"blurry, low quality"

Response

Price calculation returned successfully

price
number<float>
Example:

0.00012345