Learn about Mila API rate limits and how to handle them in your applications.

Rate Limit Overview

Mila enforces rate limits to ensure fair usage and maintain service quality for all users. Rate limits apply per API key and are enforced across all endpoints.

Current Rate Limits

All plans have the same rate limiting structure:
Limit TypeValue
Requests per minute100
Requests per second10

How Rate Limiting Works

Rate limits are calculated using a sliding window approach:
  1. Per-second limit: You can make up to 10 requests in any 1-second window
  2. Per-minute limit: You can make up to 100 requests in any 60-second window
When you exceed either limit, you’ll receive a 429 Too Many Requests response.