Get current SpicyAPI key usage
spicyapi_usage_getRetrieve settled USD spend and task counts grouped by day and model for your API key, using a date range to generate usage reports.
Instructions
Read task counts and settled actual USD spend for the current API key, grouped by creation day and model. Only from/to dates are accepted: UTC [from,to), at most 92 days; defaults to seven days ending tomorrow UTC. Money is returned as exact decimal strings; pending holds are excluded and late settlement can change prior-day spend. This is not account balance or remaining key budget, and is not a generation prerequisite. Use for requested usage reports; respect Retry-After on rate limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Exclusive UTC date, YYYY-MM-DD. Defaults to tomorrow UTC. | |
| from | No | Inclusive UTC date, YYYY-MM-DD. Defaults to seven days before to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |