Hi, I have a question regarding API rate limits. W...
# agents
a
Hi, I have a question regarding API rate limits. We're using Gemini Live and are currently Tier 1, and there is a rate limit of 50 concurrent sessions. My question is, if we use LiveKit Cloud, does Google's rate limit still apply? I see that LiveKit has its own rate limits for different plans it offers. Does that override the rate limits set by Google?
r
When using LiveKit Cloud with the Gemini Live API, it is important to understand that both LiveKit and Google may impose their own rate limits, which can operate independently of each other. In the context of LiveKit, there is a specific rate limit for API requests, which is set at 1000 requests per minute for all projects. This limit applies to requests made to the LiveKit Server API (for example,
RoomService
or
EgressService
API requests) and does not apply to SDK methods like joining a room or sending data packets https://docs.livekit.io/home/cloud/quotas-and-limits/ On the other hand, if you are using the Gemini Live API, you will still be subject to Google's rate limits, such as the 50 concurrent sessions you mentioned. These limits are separate from those imposed by LiveKit and are enforced by Google. Therefore, both sets of rate limits will apply concurrently. If you reach the limit set by Google, you will not be able to create new sessions, regardless of whether you are within the limits set by LiveKit. In summary, the rate limits set by Google do not get overridden by LiveKit's limits; both need to be considered when designing your application. Notes: - Ensure you monitor both LiveKit's and Google's rate limits to avoid service interruptions. - If you need higher limits, consider reaching out to both LiveKit and Google for potential adjustments based on your usage needs.
a
Thank you for the clarification!