Gateways and telemetry · Read with a key
Portkey
Request logs from the Portkey AI gateway through its Logs Export API: model, provider, tokens and metadata, written as request telemetry and priced by us. Portkey's own cost figure is kept for comparison only.
- How data moves
- AI Spendbook reads it on a schedule with a key, token or read-only role you give it.
- Credential
- API key or token
- What it covers
- request telemetry
- Money
- An estimate priced by AI Spendbook, never a bill
- Runs
- each scheduler run (daily on the hosted deployment)
- Freshness
- One export per day of the window; the trailing day is re-read.
- History on first sync
- Up to 365 days
- Not included
- billed cost, cache tokens
- Status
- Built from the vendor's public documentation and tested with recorded responses. Not yet run against a live account.
Set it up
- In Portkey open API Keys and create a key with access to logs exports.
- Paste the key and, for a workspace-scoped key, the workspace id.
- Send customer_id and feature in the x-portkey-metadata header to attribute requests.
- Each sync creates one log export per day of the window and downloads it.
What it needs
A Portkey API key that can create and download log exports.