Billing & usage
Beta

Billing & usage

Estimate generation credits and check workspace usage.

estimate

Estimate the cost of an image or video generation in the connected workspace.

Operation Read only

Sample prompt: Estimate the cost of generating one image of a blue ceramic vase with seedream-v4.

Parameters

ParameterTypeRequiredDefaultDescription
pathobjectYes——
path.modelstringYes—Model ID from the image or video router.
bodyobjectYes——
body.inputobjectYes—Generation input, including the same model ID as path.model.
idempotency_keystringNo—Use a unique key per action and reuse it when retrying the same input.

usage_get

Retrieve the latest Creative generation charges in the connected workspace.

Operation Read only

Sample prompt: Show recent Creative usage and identify which charges are still reserved.

Parameters

ParameterTypeRequiredDefaultDescription
queryobjectNo——
query.limitintegerNo—Maximum records to return. Use 1 to 100. Default is 20.
query.job_idstringNo—Return usage for this job ID.
idempotency_keystringNo—Use a unique key per action and reuse it when retrying the same input.