Terminal or Vercel runtime logs
AI_APICallError: 429 Too Many Requests — Rate limit exceeded (Retry-After: …)
- What it means
- Too many AI requests were sent in a short burst. Tokentide refused the extra request without charging and included a `Retry-After` header saying how many seconds to use the backup.
- Likely causes
- A user or automated test triggered many AI requests rapidly without a rate limit on your app's endpoint.
- The AI client retried Tokentide immediately instead of honoring
Retry-Afterand routing to the Vercel AI Gateway fallback.
- Prevention
- Always add rate limits to model-calling endpoints and honor
Retry-Afterin the Tokentide-to-Gateway fallback.
Copy for your agent
We hit `429 Too Many Requests` on AI calls. Confirm our Tokentide wrapper sets `maxRetries: 0`, falls back to the Vercel AI Gateway while honoring `Retry-After`, and add a rate limit to our AI endpoint.
Was this page helpful?