> ## 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:

> [tab] 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 | 100,000 |
> | ai-improve-prompt | 100,000 |
> | ai-powered-search | 100,000 |
>
> #### Analytics API
>
> All [Analytics API](https://docs.magnific.com/api-reference/analytics/overview.md) endpoints (`/v1/analytics/*`) are limited to **10,000 RPD** and **do not consume credits**. Available exclusively for **Business** and **Enterprise** plans. The [Audit Logs API](https://docs.magnific.com/api-reference/audit-logs/overview.md) (`/v1/analytics/audit-logs/events`) has its own **50,000 RPD** budget on **Enterprise**.

> [tab] 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] Rate per minute
>
> In addition to the per-second limits, we enforce a per-minute rate limit policy based on `API key`:
>
> * **30,000 requests per minute (RPM)**.
>   This means that requests made with the same API key cannot exceed 30,000 per minute. If you surpass this limit, additional requests will be throttled or temporarily rejected until the limit resets.

> [card] Need a higher rate limit?
>
> 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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.