Get token usage
deepinfra_get_usage_tokensGet per-model token usage for a period. DeepInfra REST: GET /payment/usage/tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Period end (same format as `from`); defaults to the current period. | |
| from | Yes | Period start (required). Format 'YYYY.MM', or 'current', or 'current(-N)' for N months back, or a unix timestamp in seconds. |