diff --git a/docs.json b/docs.json index 34728932..21a5608a 100644 --- a/docs.json +++ b/docs.json @@ -119,7 +119,6 @@ "docs/sandbox/pty", "docs/sandbox/ssh-access", "docs/sandbox/connect-bucket", - "docs/sandbox/rate-limits", "docs/sandbox/secured-access", "docs/sandbox/ip-tunneling", "docs/sandbox/custom-domain" @@ -3712,6 +3711,11 @@ } }, "redirects": [ + { + "source": "/docs/sandbox/rate-limits", + "destination": "/docs/billing", + "permanent": true + }, { "source": "/docs/template/aliases", "destination": "/docs/template/names", diff --git a/docs/billing.mdx b/docs/billing.mdx index 752646e5..a1236534 100644 --- a/docs/billing.mdx +++ b/docs/billing.mdx @@ -1,6 +1,6 @@ --- -title: "Billing & pricing" -sidebarTitle: "Billing" +title: "Billing & limits" +sidebarTitle: "Billing & limits" icon: "credit-card" --- @@ -14,14 +14,14 @@ E2B uses [usage-based pricing](#usage-based-pricing) - you pay only for what you |---------|-------|-----|------------| | **Base price** | $0/month | $150/month | Custom | | **Free credits** | $100 (one-time) | $100 (one-time) | Custom | -| **Max session length** | 1 hour | 24 hours | Custom | -| **Concurrent sandboxes** | 20 | 100 - 1,100 | 1,100+ | - - -Pro plan includes 100 concurrent sandboxes. Higher concurrency up to 1,100 is available as a purchasable [add-on](https://e2b.dev/dashboard?tab=billing). - - -Plans have different [API rate limits](/docs/sandbox/rate-limits). +| **Max vCPUs** | 8 | 8+ | Custom | +| **Max memory** | 8 GB | 8+ GB | Custom | +| **Disk size** | 10 GB | 20+ GB | Custom | +| **Max session length** | 1 hour | 24 hours | Custom | +| **Concurrent sandboxes** | 20 | 100 - 1,100 | 1,100+ | +| **Concurrent builds** | 20 | 20 | Custom | +| **Sandbox creation rate** | 1 / sec | 5 / sec | Custom | +| **Egress connections** | 2,500 | 2,500 | Custom | To upgrade your plan or purchase add-ons, visit the [dashboard billing tab](https://e2b.dev/dashboard?tab=billing). For Enterprise plans, [contact sales](mailto:enterprise@e2b.dev). diff --git a/docs/sandbox/rate-limits.mdx b/docs/sandbox/rate-limits.mdx deleted file mode 100644 index 2a1618f0..00000000 --- a/docs/sandbox/rate-limits.mdx +++ /dev/null @@ -1,143 +0,0 @@ ---- -title: "Rate limits" -sidebarTitle: "Rate limits" ---- - -This page describes API and sandbox rate limits of the E2B platform. - -## Table of Contents - -- [Sandbox lifecycle and management API](#sandbox-lifecycle-and-management-api) -- [Sandbox operations and requests to sandboxes](#sandbox-operations-and-requests-to-sandboxes) -- [Concurrent Sandboxes](#concurrent-sandboxes) -- [Sandbox creation rate](#sandbox-creation-rate) -- [Egress connections](#egress-connections) -- [Reaching limits](#reaching-limits) -- [Increasing and avoiding rate limits](#increasing-and-avoiding-rate-limits) - -Here's a limits breakdown table based on the plan: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PlanHobbyProEnterprise
Sandbox lifecycle & management API20,000 / 30s20,000 / 30sCustom
Sandbox operations40,000 / 60s per IP40,000 / 60s per IPCustom
Concurrent sandboxes20100 - 1,100*Custom
Sandbox creation rate1 / sec5 / secCustom
Egress connections per sandbox2,5002,500Custom
- - - *Pro plan default is 100 concurrent sandboxes. Higher concurrency of up to 1,100 is available as a separate purchasable add-on. - - ---- - -## Sandbox lifecycle and management API - -**20,000 requests per 30 seconds** - -This rate limit applies to lifecycle and management operations such as sandbox create, kill, update, list, and other. - ---- - -## Sandbox operations and requests to sandboxes - -**40,000 requests per 60 seconds** - -This rate limits applies to operations to/within running sandboxes such as running code, listing files, running commands, etc. -This also includes requests made to custom ports in the sandbox. - -
This limit is enforced globally across all sandbox operations from a single IP address. - ---- - -## Concurrent sandboxes - -Number of concurrent sandboxes differs based on the pricing tier. - -### Hobby tier -**Up to 20 concurrent sandboxes** - -### Pro tier -**Starts at 100 concurrent sandboxes** - - - Can go up to 1,100 with additional [add-ons available for purchase](https://e2b.dev/dashboard/?tab=billing). - - - -### Enterprise tier -**Custom limit - 1,100+ concurrent sandboxes** - ---- - -## Sandbox creation rate - -This limit controls how quickly you can create new sandboxes. - -### Hobby tier -**1 sandbox per second** - - -### Pro tier -**5 sandboxes per second** - -### Enterprise tier -**Custom limit - 5+ sandboxes per second** - ---- - -## Egress connections - -**2,500 connections per sandbox** - -This limit controls the maximum number of outbound (egress) network connections that can be established from a single sandbox. - -## Reaching limits - -When you reach the limits of your plan, subsequent requests/function calls will be effectively dropped and return the following: -- the `429 Too Many Requests` HTTP status code (when calling API/sandbox ports directly) -- `RateLimitError` in the JS/TS SDK -- `RateLimitException` in the Python SDK - -For example, if you're on the Pro tier (without any concurrency add-ons), you can create up to 100 sandboxes running concurrently. -If the 100 sandboxes are still running, requests for creating new sandboxes from the SDKs (`Sandbox.create()` in JS/TS or `Sandbox.create()` in Python) will fail and return `RateLimitError` or `RateLimitException` respectively. -Once the number of running sandboxes drops below 100, or you purchase a concurrency add-on, you’ll be able to create new sandboxes again. - -## Increasing and avoiding rate limits - -You can avoid rate limits by [upgrading your plan](https://e2b.dev/dashboard/?tab=billing) or contacting our sales team to discuss your specific requirements and we can provide tailored limits to meet your needs at [enterprise@e2b.dev](mailto:enterprise@e2b.dev).