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,266 stars 315 forks Updated today 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
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

openrouter-cost-controls

Implement cost controls for OpenRouter API usage. Use when setting budgets, preventing overspend, or managing per-key limits. Triggers: 'openrouter budget', 'openrouter cost limit', 'openrouter spending', 'control openrouter cost'.

2,266 Updated today
jeremylongshore
AI & Automation Featured

openrouter-common-errors

Diagnose and fix common OpenRouter API errors. Use when encountering error codes, unexpected failures, or debugging API responses. Triggers: 'openrouter error', 'openrouter 401', 'openrouter 429', 'openrouter 402', 'fix openrouter'.

2,266 Updated today
jeremylongshore
AI & Automation Featured

openrouter-load-balancing

Distribute OpenRouter requests across multiple keys and models for high throughput. Use when scaling beyond single-key rate limits or building high-availability systems. Triggers: 'openrouter load balance', 'openrouter scaling', 'distribute openrouter requests', 'multiple api keys'.

2,266 Updated today
jeremylongshore
API & Backend Listed

openrouter-usage

Query OpenRouter API costs, credits, and usage breakdown by model, provider, and date. This skill should be used when checking API spending, auditing costs, or generating usage reports for the last 30 days.

33 Updated yesterday
tdimino
AI & Automation Featured

openrouter-pricing-basics

Understand OpenRouter pricing, calculate costs, and optimize spend. Use when budgeting, comparing model costs, or tracking spend. Triggers: 'openrouter pricing', 'openrouter cost', 'model pricing', 'openrouter budget', 'how much does openrouter cost'.

2,266 Updated today
jeremylongshore