Get current SpicyAPI key usage
spicyapi_usage_getFetch task counts and settled actual USD spend for the current API key, grouped by creation day and model over a UTC date range (max 92 days). Use for usage reports, not balance or budget checks.
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 |