Estimate the cost of a request
Returns the credit cost of a generation request without running it. Send the same
body you’d send to the generate endpoint, plus model.
The cost is computed by the same logic that bills you, so it can’t disagree with the
invoice. exact is true for deterministic pricing. For seedream’s sequential mode
(the model chooses how many images, up to max_images) credits is the ceiling we
reserve and exact is false — the real charge is always ≤ it. Failed jobs cost
nothing, so you’re never charged more than credits.
Authorizations
API key as a bearer token: Authorization: Bearer bpx_live_xxx
Body
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 the request will cost — the maximum, for non-deterministic cases.
2750
True when the cost is exact; false when credits is an upper bound (e.g. seedream sequential, where the model picks the image count).
"seedance-2.0"
image, video