usage
Read-only
Spend and savings of the Fermat API key over the last N days (1 to 90, default 7): totals, per day and per model when the gateway has the history (source usage), otherwise the key's totals (source key). Key mode only.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | period in days, 1 to 90 (default 7) |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| source | Yes | usage: per-day history from /v1/key/usage; key: totals only from /v1/key | |
| per_day | No | ||
| requests | Yes | ||
| per_model | No | ||
| saved_usd | No | ||
| spent_usd | Yes | ||
| available_usd | No | ||
| daily_cap_usd | No | ||
| spent_today_usd | No |