report_cost
Attribute token and compute costs to a changeset by submitting usage metrics including input, cached, and output tokens, plus cost in micro-dollars. Accumulate reports to track project spending.
Instructions
Attribute your token/compute usage to a changeset (the id returned by propose_changeset). Reports accumulate. cost_microdollars is integer micro-dollars (1 = $0.000001).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| changeset | Yes | ||
| input_tokens | No | ||
| cached_tokens | No | ||
| output_tokens | No | ||
| cost_microdollars | No |