Rate Limits
Rate limits are the number of requests that a client can make to the Langbase API within a specific time period. These limits are enforced to ensure fair usage of the API and to prevent abuse.
Overview
We have implemented the following rate limits on the Langbase API. The limits vary by your subscription plan.
Plan | Rate Limit |
---|---|
Hobby | 1 request per second (RPS) |
Pro | 300 requests per minute (RPM) |
Enterprise | 300 requests per minute (RPM) – please contact us for higher rate limits |
Pipe API v1
Following is the list of Pipe API (v1) endpoints and their rate limits based on your subscription plan.
API Endpoints | Hobby Plan | Pro Plan | Enterprise Plan |
---|---|---|---|
Run: /v1/pipes/run | 1 RPS | 300 RPM | Contact Us |
Create pipe: /v1/pipes | 1 RPS | 300 RPM | Contact Us |
List pipes: /v1/pipes | 1 RPS | 300 RPM | Contact Us |
Update pipe: /v1/pipes/{pipeName} | 1 RPS | 300 RPM | Contact Us |
RPS = requests per second
RPM = requests per minute
Pipe API beta
Following is the list of Pipe API (beta) endpoints and their rate limits based on your subscription plan.
API Endpoints | Hobby Plan | Pro Plan | Enterprise Plan |
---|---|---|---|
Run: /beta/run | 1 RPS | 300 RPM | Contact Us |
Generate: /beta/generate | 1 RPS | 300 RPM | Contact Us |
Chat: /beta/chat | 1 RPS | 300 RPM | Contact Us |
Create pipe (user): /beta/user/pipes | 1 RPS | 300 RPM | Contact Us |
Create pipe (org): /beta/org/{org}/pipes | 1 RPS | 300 RPM | Contact Us |
Update pipe: /beta/pipes/{owner}/{pipe} | 1 RPS | 300 RPM | Contact Us |
List pipes (user): /beta/user/pipes | 1 RPS | 300 RPM | Contact Us |
List pipes (org): /beta/org/{org}/pipes | 1 RPS | 300 RPM | Contact Us |
RPS = requests per second
RPM = requests per minute
Memory API v1
Following is the list of Memory API (v1) endpoints and their rate limits based on your subscription plan.
API Endpoints | Hobby Plan | Pro Plan | Enterprise Plan |
---|---|---|---|
Create memory: /v1/memory | 1 RPS | 300 RPM | Contact Us |
List memory: /v1/memory | 1 RPS | 300 RPM | Contact Us |
Delete memory: /v1/memory/{memoryName} | 1 RPS | 300 RPM | Contact Us |
Retrieve memory: /v1/memory/retrieve | 1 RPS | 300 RPM | Contact Us |
RPS = requests per second
RPM = requests per minute
Memory API beta
Following is the list of Memory API (beta) endpoints and their rate limits based on your subscription plan.
API Endpoints | Hobby Plan | Pro Plan | Enterprise Plan |
---|---|---|---|
Create memory (user): /beta/user/memorysets | 1 RPS | 300 RPM | Contact Us |
Create memory (org): /beta/org/{org}/memorysets | 1 RPS | 300 RPM | Contact Us |
List memory (user): /beta/user/memorysets | 1 RPS | 300 RPM | Contact Us |
List memory (org): /beta/org/{org}/memorysets | 1 RPS | 300 RPM | Contact Us |
Delete memory: /beta/memorysets/{ownerLogin}/{memoryName} | 1 RPS | 300 RPM | Contact Us |
Retrieve memory: /beta/memory/retrieve | 1 RPS | 300 RPM | Contact Us |
RPS = requests per second
RPM = requests per minute
Document API v1
Following is the list of Document API (v1) endpoints and their rate limits based on your subscription plan.
API Endpoints | Hobby Plan | Pro Plan | Enterprise Plan |
---|---|---|---|
Upload document: /v1/memory/documents | 1 RPS | 300 RPM | Contact Us |
List documents: /v1/memory/{memoryName}/documents | 1 RPS | 300 RPM | Contact Us |
Delete document: /v1/memory/{memoryName}/documents/{documentName} | 1 RPS | 300 RPM | Contact Us |
Retry embeddings: /v1/memory/{memoryName}/documents/{documentName}/embeddings/retry | 1 RPS | 300 RPM | Contact Us |
RPS = requests per second
RPM = requests per minute
Document API beta
Following is the list of Document API (beta) endpoints and their rate limits based on your subscription plan.
API Endpoints | Hobby Plan | Pro Plan | Enterprise Plan |
---|---|---|---|
Upload document (user): /beta/user/memorysets/documents | 1 RPS | 300 RPM | Contact Us |
Upload document (org): /beta/org/{org}/memorysets/documents | 1 RPS | 300 RPM | Contact Us |
List documents: /beta/memorysets/{owner}/{memoryName}/documents | 1 RPS | 300 RPM | Contact Us |
Retry embeddings: /beta/memorysets/{owner}/documents/embeddings/retry | 1 RPS | 300 RPM | Contact Us |
RPS = requests per second
RPM = requests per minute
Unauthenticated Requests
If your request does not have a valid API key, it is considered an unauthenticated request. Limits for them are:
- Limit: 10 requests per minute
- Reset Interval: 60 seconds
Rate Limit Headers
When you make a request to the Langbase API, it returns the following response headers. These headers convey you the rate limit status.
Header | Description |
---|---|
lb-ratelimit-limit | The rate limit applicable to your request. |
lb-ratelimit-remaining | The number of requests remaining in the current rate limit window. |
lb-ratelimit-reset | The time at which the current rate limit window resets. |
About Rate Limits
-
If you exceed the rate limit, you will receive an HTTP status code
429 Too Many Requests
error. -
Rate limits are applied on a per-user or per-organization basis. For organizations, all requests made by the organization are collectively restricted within a single limit window.
-
These limits are subject to adjustment and may differ depending on your subscription plan.
-
If you need higher rate limits, please contact us.