Rate Limits

Nanonets API enforces rate limits to ensure fair usage and maintain optimal performance for all users. Getting a 429 response code from our API means that you have reached our rate-limit.

The rate limit applies to all POST requests within the OCR Predict section, including:

  • Prediction for Image URL
  • Prediction for Image File
  • Async Prediction for Image URL
  • Async Prediction for Image File

What’s the difference between Sync Call and Async Call?

  1. Sync: Your files will get uploaded and processed, and you will see the results on the screen.
  2. Async: your files will get uploaded and processed at a later point in time (usually within 5 minutes). Recommended if you are processing a lot of large files (> 3 pages of PDFs)

You can reduce rate-limiting errors using one of these approaches:

  • Handling 429 Errors
    • Implement logic in your application to handle 429 (Too Many Requests) errors gracefully. This could include:
      • Retrying the request after a delay.
      • Exponential backoff strategies to reduce the frequency of retries.
      • Alerting or logging when rate limits are approached or exceeded.
  • Contact Sales team to upgrade the rate-limits
    • If consistent rate limiting is impacting your application, consider contacting Sales team to upgrade the rate-limits to allows more requests.
    • Reach out to us at [email protected].