Voice AI API Rate Limits: Requests/Min vs Concurrent Sessions
In this article
- Background: Why Voice APIs Have Two Different Limits
- How Requests Per Minute (RPM) Works
- How Concurrent Session Limits Work
- How to Choose the Right Limits for Your Application
- Common Problems and Misconceptions
- Comparing Providers and Pricing Tiers
- Costs and Scaling Considerations
- Frequently Asked Questions
Voice AI API rate limits are typically expressed in two distinct ways: requests per minute (RPM), which caps how many individual API calls your application can make in a 60-second window, and concurrent sessions, which caps how many simultaneous real-time voice streams (like WebSocket connections) your application can maintain at once. These are separate limits, and you usually need to manage both: RPM governs the total volume of API calls (including setup, teardown, and auxiliary requests), while concurrent session limits govern the number of parallel voice interactions your system can handle.
Background: Why Voice APIs Have Two Different Limits
Voice AI APIs—such as those for speech-to-text, text-to-speech, and conversational agents—are fundamentally different from standard REST APIs. A typical REST call is a single request-response pair that lasts milliseconds. A voice session, by contrast, is a persistent, bidirectional stream that can last minutes or even hours. This distinction is why providers impose two separate rate limits: requests per minute controls the burst of short-lived calls, while concurrent sessions controls the number of long-lived connections that consume server resources continuously.
For example, a single voice assistant interaction might involve several REST calls: one to start a session, one to upload audio, one to fetch a transcript, and one to end the session. Each of those counts toward your RPM limit. The actual voice stream itself, however, counts against your concurrent session limit. If you exceed the RPM limit, you’ll typically get a 429 Too Many Requests error. If you exceed the concurrent session limit, new session attempts are usually rejected or queued.
How Requests Per Minute (RPM) Works
RPM is a straightforward counter: the API counts every HTTP request your application makes within a sliding 60-second window. Once you hit the limit, further requests are rejected until the window slides forward. Some providers implement a “token bucket” algorithm, which allows short bursts up to a maximum, while others use a fixed window that resets every minute.
Key points to understand about RPM:
- It applies to all endpoints—not just the streaming endpoint. Authentication, session creation, audio upload, and status checks all count.
- It’s per API key, not per IP address. If you have multiple applications using the same key, they share the same RPM pool.
- It’s often tiered—free tiers might allow 10 RPM, while paid tiers allow hundreds or thousands.
- It resets quickly—a 429 error usually clears within a second or two, so simple retry logic with exponential backoff often works.
For a real-time voice application, RPM is rarely the bottleneck because a single session doesn’t make many requests per minute. However, if you’re building a system that starts many sessions simultaneously (e.g., a contact center dialing hundreds of calls at once), the initial burst of session-start requests can easily exceed your RPM limit.
How Concurrent Session Limits Work
Concurrent session limits are about how many simultaneous, active voice streams your API key can handle. Each session is a WebSocket or similar persistent connection that stays open for the duration of the interaction. The provider reserves memory, CPU, and network bandwidth for each session, so they cap the number of concurrent connections to protect their infrastructure.
Important characteristics:
- Sessions are long-lived—a session can last from a few seconds (a short command) to over an hour (a long customer service call).
- You must explicitly close sessions—if your application crashes or forgets to close a session, it stays open until a timeout (often 30 seconds to a few minutes). This can silently eat up your concurrency allowance.
- Concurrency limits are usually lower than RPM limits—a typical free tier might allow 1-2 concurrent sessions, while enterprise tiers allow hundreds.
- They are per account or per key—if you have multiple keys, each key has its own concurrency pool.
For example, if you have a limit of 10 concurrent sessions and you try to open an 11th, the API will either reject the connection or queue it until a slot frees up. Some providers allow you to set a “max sessions” parameter in your client to avoid hitting the limit unexpectedly.
How to Choose the Right Limits for Your Application
To determine what limits you need, estimate both your peak RPM and peak concurrent sessions separately. Here’s a practical approach:
- Estimate concurrent sessions: How many users do you expect to be in a voice interaction at the same time? For a customer service bot, that might be the number of simultaneous calls. For a voice assistant in a car, it might be the number of cars on the road with the app open.
- Estimate RPM per session: Count how many API calls each session makes. A typical session might make 5-10 calls (start, audio chunks, end). Multiply that by your expected concurrent sessions to get your peak RPM. For example, 10 concurrent sessions × 8 calls per session = 80 RPM.
- Add headroom: Multiply your estimate by 1.5 or 2 to handle spikes and retries.
If your estimated RPM is much higher than your concurrent session estimate, you might be making too many unnecessary calls. Optimize by batching audio uploads or using a single streaming connection instead of multiple REST calls.
Common Problems and Misconceptions
One common misconception is that RPM and concurrent sessions are interchangeable—that if you have 100 RPM, you can handle 100 concurrent sessions. That’s false. A single session can last 10 minutes and make only 10 requests, so 100 RPM might only support 10 concurrent sessions. Conversely, if you have 100 concurrent sessions but each makes a burst of 20 requests at the start, you could easily hit 2,000 RPM in a few seconds.
Another issue is session leaks. If your code doesn’t properly close sessions on errors or timeouts, you’ll gradually exhaust your concurrency limit even with low traffic. Always use a finally block to close sessions, and implement a timeout to force-close idle sessions.
Also, be aware that some providers count audio bytes or audio duration as a separate limit. For example, a free tier might allow 60 minutes of audio per day, in addition to RPM and concurrency limits. Exceeding that will also block requests.
Comparing Providers and Pricing Tiers
Different providers have drastically different limit structures. Some (like Twilio, Google Cloud, and Azure) publish their limits in documentation, while others only reveal them after you contact sales. Here’s a general comparison based on typical public information:
- Google Cloud Speech-to-Text: Has a limit of 160 concurrent requests per project, but also a separate limit of 4,000 audio minutes per month on the free tier. The standard tier has a “max concurrent long-running recognize” limit of 400.
- Twilio: For Voice Intelligence, limits are typically 10 concurrent sessions per account on standard tiers, with RPM limits around 100 for REST API calls.
- AssemblyAI: Their real-time API allows 10 concurrent WebSocket connections on the free tier, and their REST API has a limit of 50 requests per minute.
Note that these numbers change frequently and vary by region and tier. Always check the official documentation for the specific product you’re using.
Costs and Scaling Considerations
Rate limits are often tied to pricing tiers. Higher RPM and concurrent session limits usually come with higher monthly fees. For example, a free tier might offer 10 RPM and 1 concurrent session, while a $500/month tier might offer 1,000 RPM and 100 concurrent sessions. If you need more than the highest tier, you may need to request a custom quota increase—this often requires a business justification and a review process.
If you hit limits frequently, consider scaling horizontally: use multiple API keys (if allowed) and distribute sessions across them. This is common in production systems, but be careful—some providers prohibit using multiple keys to bypass limits, so check the terms of service.
Frequently Asked Questions
What happens if I exceed the concurrent session limit?
Typically, the API will reject the new session attempt with an error like 429 Too Many Requests or 503 Service Unavailable. Some providers queue the request for a few seconds, but most simply reject it. Your application should handle this by retrying with backoff or showing a “try again later” message to the user.
Do RPM limits include WebSocket messages?
No, RPM limits apply to HTTP requests, not WebSocket messages. However, some providers have a separate limit on messages per second (MPS) for WebSocket streams. Check the documentation for your specific API to see if such a limit exists.
Can I increase my rate limits without upgrading my plan?
Sometimes. Many providers allow you to request a temporary or permanent increase via a support ticket, especially if you have a legitimate need. However, they may require you to upgrade to a paid plan first. It’s always worth asking.
How do I monitor my current usage?
Most providers offer a dashboard or API endpoint to check your current usage. For example, Google Cloud’s console shows quota usage, and Twilio has a usage API. Set up alerts to notify you when you approach 80% of your limit.
Why do I get a 429 error even when I’m under the limit?
There could be several reasons: you might be hitting a different limit (like audio minutes), or the provider might have a “burst” limit that’s lower than the sustained limit. Also, check if you’re using multiple endpoints that share the same quota. Review the error response body—it often includes a quota field that tells you which limit you hit.