Skip to main content
POST
Estimate the cost of a request

Authorizations

Authorization
string
header
required

API key as a bearer token: Authorization: Bearer bpx_live_xxx

Body

application/json
model
string
required

The model slug (image or video), e.g. seedance-2.0.

Response

The estimated cost.

The credit cost of a request. The real charge is always ≤ credits (failures cost nothing; sequential image jobs may use fewer images).

credits
integer
required

Credits the request will cost — the maximum, for non-deterministic cases.

Example:

2750

exact
boolean
required

True when the cost is exact; false when credits is an upper bound (e.g. seedream sequential, where the model picks the image count).

model
string
required
Example:

"seedance-2.0"

type
enum<string>
required
Available options:
image,
video,
audio,
conversion,
social,
moderation,
classification,
motion,
lip-sync