Skip to content

API usage

Live + month-to-date stats for the two metered providers we use.

LinkdAPI (credits)

Live balance polled from /credits/tier/k/ every 30 s.

FieldMeaning
BalanceCredits remaining (1 credit = $0.01)
TierYour subscription tier (Testing, Hobby, ...) — determines rate limit
Rate limitMax requests/minute. The in-app limiter targets 90% of this to stay safe
This monthCredits + $ consumed since the 1st (local accounting)
Next tier in NHow many credits to top up to reach the next tier (higher rate limit)

Claude (tokens)

No live balance — Anthropic's standard API doesn't expose one. We track local consumption.

FieldMeaning
TokensTotal input + output tokens since the 1st
$ this monthComputed from Haiku 4.5 rates ($1/M input, $5/M output)

Per-call logging

Every linkdapi + Claude call writes a row to api_usage_log with the endpoint name, units, cost, and a JSON meta field (model, tokens breakdown). Failed calls are NOT logged.

Why colors change

The balance bar is green above 70 credits, amber 30-70, red below 30. Hint to top up before runs start failing.

Same content as the in-app docs drawer. Source of truth: frontend/src/docs/sections.ts.