Gateways and telemetry · Read with a key
Langfuse (usage)
Model usage from Langfuse generations: model, tokens including cache tokens, user, session and tags, written as request telemetry and priced by us. Langfuse's own cost is kept for comparison only. Separate from the Langfuse evaluation connection.
- 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
- Generations are readable as soon as Langfuse has them; the trailing day is re-read.
- History on first sync
- Up to 365 days
- Not included
- billed cost
- Status
- Built from the vendor's public documentation and tested with recorded responses. Not yet run against a live account.
Set it up
- In Langfuse open the project, then Settings → API Keys and create a key pair.
- Paste the public key, the secret key and, for the EU/US/self-hosted region, the host URL.
- Set userId on traces to your customer id (or choose sessionId or a metadata key in the connection settings), and tag traces feature:<name> to attribute usage.
- We call GET /api/public/v2/observations?type=GENERATION only.
What it needs
A project API key pair (public key pk-lf-… and secret key sk-lf-…). Read access only is used.