Skip to main content
api.nexusapi.link is a read-only usage-log gateway separate from the console and model relay. It reads consumption logs for the account that owns the credential. It cannot call models, add credit, or perform management actions.

Basics

Create a system access token in Console → Personal settings → Generate token, then send it only in this header:
Do not confuse credentialsModel calls use the API key created in Token Management. The usage-log API should use the system access token. The latter cannot call models, but it exposes account-level usage and must be protected like a secret.

Query parameters

All parameters are optional. For routine reconciliation, query one day or week at a time. The API does not currently provide server-side filters for model, group, or token name. Filter the returned account data locally. page × page_size cannot exceed 100000.

Example

When data is empty or contains fewer records than page_size, you have reached the last page. The endpoint intentionally does not return a total count.

Important response fields

Internal channel data, raw quota, and full billing calculation are intentionally not returned.

Errors and frequency

Use scheduled incremental pulls, not second-by-second polling. For a suspected billing issue, retain both the query range and the model-call Request ID.