API Rate Limits
SDD Classification: L3-Technical
Authority: Engineering Team
Review Cycle: Quarterly
Rate Limiting Overview
Rate Limits by Plan
Standard Limits
Endpoint-Specific Limits
Some endpoints have additional specific limits:Rate Limit Headers
Every API response includes rate limit information:Header Reference
Rate Limit Response
When you exceed rate limits, you’ll receive a429 Too Many Requests response:
Response Headers on 429
Rate Limit Algorithm
Materi uses a sliding window algorithm that provides smoother rate limiting than fixed windows:How It Works
- Window Duration: Configured per limit type (e.g., 1 hour)
- Sub-Windows: Divided into smaller buckets (e.g., 1 minute each)
- Weighted Count: Recent requests weighted more heavily
- Smooth Decay: Old requests gradually stop counting
Benefits
- No “thundering herd” at window boundaries
- Fairer distribution of requests over time
- Burst allowance within limits
- Predictable behavior for clients
Handling Rate Limits
Basic Retry Logic
Exponential Backoff with Jitter
Proactive Rate Limit Monitoring
Request Queuing
For high-throughput applications, implement request queuing:Special Limits
AI Generation Limits
AI endpoints have separate daily quotas:
AI responses include additional headers:
Concurrent Connection Limits
Best Practices
Do
- Cache responses when appropriate to reduce API calls
- Use webhooks instead of polling for event-driven updates
- Batch requests using bulk endpoints where available
- Monitor headers and adjust request rate proactively
- Implement queuing for bulk operations
Don’t
- Don’t retry immediately on 429 - always respect
Retry-After - Don’t parallelize aggressively without rate limiting
- Don’t ignore remaining count - throttle before hitting zero
- Don’t cache rate limit headers - always read fresh values
Requesting Higher Limits
Enterprise customers can request custom rate limits:- Contact sales or support with use case details
- Provide expected request volumes and patterns
- Describe peak usage scenarios
- Allow 2-3 business days for review
- Current plan and usage patterns
- Specific endpoints needing higher limits
- Business justification
- Expected growth trajectory
Related Documentation
- API Overview - API fundamentals
- Authentication - Token management
- Errors - Error handling
Document Status: Complete Version: 2.0