keys.verifyKey. If you don’t yet, start with a framework guide.
Per-user rate limits
Share one limit across all of a user’s keys with identities, and give tiers different limits with overrides.
Per-endpoint rate limits
Separate budgets for reads and writes, with named key limits or a namespace per route.
Usage-based billing with credits
Meter requests with credits, refill monthly, charge more for heavy operations, and sell top-ups.
Tiered subscriptions
Encode free, pro, and enterprise plans in a key’s limits, credits, permissions, and metadata, and change plans in place.
Go middleware for net/http, Gin, and Echo
Drop-in authentication middleware for the three common Go HTTP stacks.
FastAPI authentication
A typed FastAPI dependency with permission checks and rate limit headers.