openrouter-rate-limits

Featured

Understand and handle OpenRouter rate limits. Use when hitting 429 errors, building high-throughput systems, or implementing retry logic. Triggers: 'openrouter rate limit', 'openrouter 429', 'openrouter throttle', 'rate limiting openrouter'.

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# OpenRouter Rate Limits ## Overview OpenRouter rate limits are per-key, not per-account. Free tier keys get lower limits; paid keys get higher limits that scale with credit balance. The OpenAI SDK has built-in retry with exponential backoff for 429 responses. Check your current limits via `GET /api/v1/auth/key`. Rate limit headers are returned on every response. ## Check Your Rate Limits ```bash # Query current rate limit configuration for your key curl -s https://openrouter.ai/api/v1/auth/key \ -H "Authorization: Bearer $OPENROUTER_API_KEY" | jq '{ label: .data.label, rate_limit: .data.rate_limit, is_free_tier: .data.is_free_tier, credits_used: .data.usage, credit_limit: .data.limit }' # Example output: # { # "label": "my-app-prod", # "rate_limit": {"requests": 200, "interval": "10s"}, # "is_free_tier": false, # "credits_used": 12.34, # "credit_limit": 100 # } ``` ## Rate Limit Tiers | Tier | Requests | Interval | Who | |------|----------|----------|-----| | Free (no credits) | 20 | 10s | New accounts | | Free (with credits) | 200 | 10s | Accounts with any credits | | Paid | Higher | Varies | Based on credit balance | Free models have separate limits: 50 req/day (free users), 1000 req/day (with $10+ credits). ## Read Rate Limit Headers ```python import os from openai import OpenAI import requests as http_requests # The OpenAI SDK abstracts headers, so use requests for direct access def check_rate_headers(): """Make a request a...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category