Billing & usage
BetaBilling & 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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
path | object | Yes | — | — |
path.model | string | Yes | — | Model ID from the image or video router. |
body | object | Yes | — | — |
body.input | object | Yes | — | Generation input, including the same model ID as path.model. |
idempotency_key | string | No | — | 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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | object | No | — | — |
query.limit | integer | No | — | Maximum records to return. Use 1 to 100. Default is 20. |
query.job_id | string | No | — | Return usage for this job ID. |
idempotency_key | string | No | — | Use a unique key per action and reuse it when retrying the same input. |