Skip to main content
API usage is limited per model in requests per minute (RPM) and tokens per minute (TPM) across fixed one-minute UTC windows. Limits apply per account (personal account or organization) across all API keys belonging to that account. Rate limits below are loaded live from the Tinfoil API (api.tinfoil.sh) and match the Limits page in the Tinfoil dashboard.

Usage tiers

Every account starts on Tier 1. Your account moves up automatically when your lifetime paid total for API usage invoices and credit purchases reaches each tier threshold. Promotional, activation, and admin-granted credits do not count toward this total. To see your current tier, progress toward the next tier, and live per-minute usage, open Limits in the Tinfoil dashboard under Usage & billing.
Need higher or custom rate limits? Contact us to discuss your requirements.

Limits by model

  • RPM limits the number of requests per minute to a model.
  • TPM limits uncached input tokens plus output tokens per minute. Cached prompt tokens from prompt caching do not count toward TPM.
  • Models without a TPM limit (—) are metered per request only.
  • Built-in tools such as web search and document processing, as well as the privacy filter, are not subject to per-model RPM or TPM limits.

When you reach a limit

When a request exceeds a model’s RPM or TPM limit, the API returns HTTP 429 Too Many Requests with a Retry-After header indicating how many seconds to wait until the next minute window:
When a token limit is exceeded, the error message reads "Rate limit reached for tokens. Retry after <N> seconds.". Requests rejected by rate limiting before reaching a model are not billed. Wait for the Retry-After interval and retry with exponential backoff. The Python and JavaScript Tinfoil SDKs retry 429 responses automatically by default.
Per-key spend and token caps also return HTTP 429, with code set to insufficient_quota. Those limits are not transient; see Quota errors for details.