Read task billing
Retrieve the whole-task billing summary and one ordered page of permanent billing events.
- Put your API key after
Authorization: Bearerin the request header. - The summary covers the whole task, never a subtotal of the current page.
- Page through permanent billing events with
cursorandpage_size. - Amounts are USD strings with six decimal places.
Headers
Path parameters
ID of the video task to retrieve
Query parameters
Returns
A whole-task billing summary with one ordered page of permanent events.
Identifies this object as task billing.
ID of the task owned by your team.
Request ID associated with the task.
ID used to correlate this task's billing.
Model used for this task.
dreamina-seedance-2-0-260128Seedance 2.0dreamina-seedance-2-0-fast-260128Seedance 2.0 Fastdreamina-seedance-2-0-mini-260615Seedance 2.0 MiniProgress of task execution.
queuedQueuedprocessingProcessingsucceededSucceededfailedFailedcancelledCancelledProgress of billing settlement for this task.
reservedReservedpendingPendingreconciliation_requiredUnder reviewsettledSettledsettled_with_receivableSettled - amount dueCurrency of the amounts: USD.
Amount reserved for the task.
Charge recorded for the task.
Amount collected toward the charge.
Amount debited from balance.
Amount of the charge refunded.
Amount refunded to balance.
Amount due that has not been collected. Zero for settled tasks that failed or were cancelled.
Final charge. Null while queued or processing, or while settlement is reserved, pending or reconciliation_required. An amount is provided for settled or settled_with_receivable. Settled tasks that failed or were cancelled have a zero final charge.
Permanent billing events in this page.
25 child fields
ID of this billing event.
Task to which this event belongs.
Request ID associated with the event.
ID used to correlate billing records.
Kind of billing event recorded.
hold_createdReservedhold_increasedReservation increasedhold_reducedReservation reducedcharge_capturedChargedsupplemental_chargeAdditional chargereceivable_createdAmount due recordedreceivable_paymentAmount due paidreceivable_reducedAmount due reducedhold_releasedReservation releasedrefund_postedRefundedcharge_waivedCharge waivedmanual_adjustmentManual adjustmentPart of the service being billed.
generation_outputVideo generationreference_videoReference videoreference_imageReference imagereference_audioReference audioweb_searchWeb searchotherOther billing componentAmount of this event. Zero for charge_waived and greater than zero for hold_reduced.
Charge amount recorded by this event.
Refund amount recorded by this event.
Amount collected in this event.
Amount this event debited from balance.
Amount this event refunded to balance.
Change in the amount due recorded by this event.
increase for receivable_created; decrease for receivable_payment or receivable_reduced. Null for other event types.
debit or credit for manual_adjustment; null otherwise.
Audit explanation, present for manual_adjustment and null for other events.
Required detail code when billing_component is other; null for other components.
Currency of the amounts: USD.
Settlement state recorded by this event.
reservedReservedpendingPendingreconciliation_requiredUnder reviewsettledSettledsettled_with_receivableSettled - amount dueTime the event was created, in whole Unix seconds.
ID of the billing operation, required for hold_reduced.
Quote revision before the operation, required for hold_reduced.
Quote revision after the operation, required for hold_reduced.
Reservation revision before the operation, required for hold_reduced.
Reservation revision after the operation, required for hold_reduced.
Value for continuing to the next page, or null.
Review summary when settlement is reconciliation_required. Null for reserved, pending, settled and settled_with_receivable.
4 child fields
ID of the review case.
Code explaining why billing needs review.
missing_billable_usageBillable usage is missingusage_schema_driftThe recorded usage shape has changedunknown_usage_unitThe usage unit is not recognizedprice_rule_not_uniqueA single applicable price rule could not be determinedoutput_unavailableResult unavailableMissing usage measurements, without duplicates. At least one is listed for missing_billable_usage.
Whether you need to take any action.
Response headers
The identifier of this request: the valid value you sent, or its replacement.
Status codes
Each error.code and what to do about it is on Error codes.
| Status | Meaning and error.code |
|---|---|
| 200 | A whole-task billing summary with one ordered page of permanent events. |
| 400 | The submitted request is not valid. |
| 401 | The API key is missing or invalid. Response headers WWW-Authenticate |
| 404 | No task with this ID is visible to your team. |
| 429 | The request rate limit blocks this read operation. Response headers Retry-After |
| 500 | Internal error. |
| 503 | The service is temporarily unavailable. |