Rate Limiting

Understand how rate limiting works in URI Social SDK and how to handle rate limit errors effectively.

Rate Limits by Plan

Free
10

requests / hour

100

requests / day

10

generation credits / month

Starter
5,000

requests / hour

50,000

requests / day

150

generation credits / month

Professional
50,000

requests / hour

500,000

requests / day

800

generation credits / month

Enterprise
1,000,000

requests / hour

10,000,000

requests / day

5,000

generation credits / month

Hourly/daily limits throttle raw request volume regardless of plan. Generation credits are separate: only AI-generation actions consume them, and paid tiers allow metered overage beyond the included amount rather than hard-blocking (Free tier hard-blocks at its credit limit).

Response Headers

X-RateLimit-Limit

Maximum number of requests allowed per hour

X-RateLimit-Remaining

Number of requests remaining in current window

X-RateLimit-Reset

Unix timestamp when the rate limit resets

Handling Rate Limits

// The SDK already retries rate-limited (429) and server-error requests
// automatically with exponential backoff — up to 3 attempts by default.
// You only need to handle RateLimitError if you want custom behavior:

import { RateLimitError } from '@urisocial/sdk';

try {
  const content = await client.content.generate({ /* ... */ });
} catch (error) {
  if (error instanceof RateLimitError) {
    console.log(`Rate limited. Retry after ${error.retryAfter}ms`);
  } else {
    throw error;
  }
}

Best Practices

  • • Implement exponential backoff for retries
  • • Cache responses when possible
  • • Monitor rate limit headers proactively
  • • Batch related work into fewer requests where possible

Need Higher Limits?

Upgrade to Starter, Professional, or Enterprise for higher rate limits and priority support.

View Pricing