docs/v3/concepts/rate-limits.mdx
Contact Prefect support at [email protected] with questions about rate limits. </Note>
Prefect Cloud applies rate limits at the account level to ensure system stability. When limits are exceeded, endpoints return a 429 response with a Retry-After header.
Rate limits are organized into two buckets:
| Plan | API Requests (per minute) | Logs + Events (per minute) |
|---|---|---|
| Hobby | 625 | 2,000 |
| Starter | 1,250 | 2,800 |
| Team | 2,500 | 8,000 |
| Pro | 5,000 | 40,000 |
| Enterprise | Custom | Custom |
For Enterprise limits, contact Prefect's sales team.
View your account's rate limit usage in the Prefect Cloud UI under Account Settings > Rate Limits. The dashboard shows current usage against your limits and highlights the top contributors to request volume, such as specific API keys, workspaces, or API routes.
If you're approaching your rate limits, consider the following:
The Prefect SDK automatically retries rate-limited requests up to 5 times, using the delay specified in the Retry-After header. You can customize this behavior through client settings.
Prefect Cloud enforces a 5 MiB (5,242,880 byte) maximum on request body size for all API endpoints.
Requests that exceed this limit receive a 413 Content Too Large response. The Content-Length header is
required on every POST, PUT, and PATCH request; omitting it returns a 411 Length Required response.
This limit applies to the entire HTTP request body, which includes JSON encoding overhead. Common scenarios where you may encounter this limit:
flow.send_input() or send_input().If your requests are approaching or exceeding the 5 MiB limit:
PREFECT_LOGGING_TO_API_BATCH_SIZE setting so each HTTP request carries fewer log entries.Event queries are limited to a 14-day window per request. You can query any 14-day period within your retention period, but each individual query cannot span more than 14 days. If your plan's retention period is shorter than 14 days, the query window is limited to your retention period.
Prefect Cloud retains flow run, task run, and artifact metadata for a limited time based on your plan. This applies to all workspaces in your account.
Metadata is retained from creation until the specified period expires. For flow and task runs, retention is calculated from when the run reaches a terminal state. Subflow runs are retained independently from their parent flows.
For custom retention periods, contact Prefect's sales team.