> ## Documentation Index
> Fetch the complete documentation index at: https://docs.magnific.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Rate limiting

To ensure the stability and performance of our API, we have implemented rate limiting based on IP address and API key.
This is a crucial security measure to prevent abuse and overuse of the API. Here’s how our rate limiting works:

<Tabs>
  <Tab title="Rate per day">
    Under your `API KEY`, no **daily rate limit** (Requests Per Day, RPD) applies to API endpoints, with the following exceptions:

    | Service            | Premium RPD |
    | :----------------- | :---------: |
    | ai-image-to-prompt |    1,000    |
    | ai-improve-prompt  |    1,000    |
    | ai-powered-search  |    1,000    |

    #### Analytics API

    All [Analytics API](/api-reference/analytics/overview) endpoints (`/v1/analytics/*`) are limited to **100 RPD** and **do not consume credits**. Available exclusively for **Business** and **Enterprise** plans.
  </Tab>

  <Tab title="Rate per seconds">
    ### General rate limit

    Our general rate limit policy applies based on `IP address` and allows:

    * **50 hits per second** over a **5-second period**.
      This means that requests originating from the same IP address can make up to 50 API requests per second.
      If you exceed this limit, your requests may be throttled or temporarily blocked. The limit resets every 5 seconds.

    ### Average rate limit

    Additionally, we enforce an average rate limit policy based on IP address:

    * **10 hits per second** averaged over a **2-minute period**.
      This means that over a 2-minute window, the average number of requests from the same IP address should not exceed 10 per second. If you surpass this average rate, your API access might be restricted until your request rate falls back within acceptable limits.
  </Tab>

  <Tab title="Rate per minute">
    In addition to the per-second limits, we enforce a per-minute rate limit policy based on `API key`:

    * **50 requests per minute (RPM)**.
      This means that requests made with the same API key cannot exceed 50 per minute. If you surpass this limit, additional requests will be throttled or temporarily rejected until the limit resets.
  </Tab>
</Tabs>

<div className="my-11">
  <Card title="Need a higher rate limit?" icon="circle-info">
    If your application requires a higher rate limit than what's currently provided, we're here to help!
    Please [reach out to our sales](https://www.magnific.com/api#contact) team with details about your use case and expected traffic. We will set you up with a custom plan in no time.
  </Card>
</div>
