Skip to main content
POST
cURL
Calculate the cost of a prompt-booster call before running it. Takes the same fields as the Prompt Booster (prompt, type, model_slug, optional image / negative_prompt) and returns { "price": <number> }.

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
prompt
string
required
Minimum string length: 3
Example:

"A beautiful landscape"

type
string
required

Inference type in v2 dot notation (e.g. images.generations, videos.animations, audio.speech)

Example:

"images.generations"

model_slug
string
required
Example:

"Flux1schnell"

negative_prompt
string | null
Minimum string length: 3
Example:

"blurry, low quality"

image
file | null

Reference image (for price estimation of image-based types).

Response

Price calculation returned successfully

price
number<float>
Example:

0.00012345