Cloudflare AI Gateway
Daily totals per model, provider and gateway. AI calls, tokens, errors and cost. Input and output tokens, and cache reads. Never a prompt or a reply.
Access
- Kind
- Sign in on the vendor's page; nothing typed here
- What to give
- Read-only API token and account ID
- Why that one
- An account API token with Account Analytics Read. Valistry calls only the GraphQL analytics endpoint, a read.
What it attributes on its own
- From the source
- day; model; upstream provider; gateway; requests; input and output tokens; cache reads; errors; what Cloudflare computed the day cost
- Needs a rule or a trace
- the provider's invoice — Cloudflare computes a cost, it does not bill you for inference; team, workflow and agent unless a rule maps the gateway; outcome
The addresses it calls
- https://api.cloudflare.com/client/v4/graphql
- https://api.cloudflare.com/client/v4/accounts
- https://api.cloudflare.com/client/v4/user/tokens/verify
- https://dash.cloudflare.com/oauth2/
Valistry calls only these addresses. It blocks any other call and logs every call.
Connecting it
- Copy your account ID. Press Ctrl+K (Cmd+K on a Mac), type Copy account ID, press Enter. Open ↗
- Create a read-only API token. Create Token → Custom token → Get started Open ↗
Cloudflare computes a cost; the provider bills it. Connecting both this gateway and a provider behind it counts the same request twice — connect one.