-
Notifications
You must be signed in to change notification settings - Fork 7
Add billing page #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add billing page #82
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
08e3f81
Add billing page
RatArt 8f3490a
fix price and extra character
RatArt 6cdba63
Correct answers for faq questions
RatArt b23bb56
Reformat per-usage billing
RatArt 53f8102
Add link to add-ons
RatArt b96daa3
Fix comments
RatArt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,8 @@ | |
| }, | ||
| "docs/api-key", | ||
| "docs/cookbook", | ||
| "docs/support" | ||
| "docs/support", | ||
| "docs/billing" | ||
| ] | ||
| }, | ||
| { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| --- | ||
| title: "Billing & pricing" | ||
| sidebarTitle: "Billing" | ||
| icon: "credit-card" | ||
| --- | ||
|
|
||
| E2B uses [usage-based pricing](#usage-based-pricing) - you pay only for what you use. New users receive $100 in free credits to get started. | ||
|
|
||
| [Manage billing in dashboard](https://e2b.dev/dashboard?tab=billing) | ||
|
|
||
| ## Plans | ||
|
|
||
| | Feature | Hobby | Pro | Enterprise | | ||
| |---------|-------|-----|------------| | ||
| | **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+ | | ||
|
|
||
| <Note> | ||
| Pro plan includes 100 concurrent sandboxes. Higher concurrency up to 1,100 is available as a purchasable [add-on](https://e2b.dev/dashboard/tberan/billing). | ||
| </Note> | ||
|
|
||
| Plans have different [API rate limits](/docs/sandbox/rate-limits). | ||
|
|
||
| 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). | ||
|
|
||
| --- | ||
|
|
||
| ## Usage-based pricing | ||
|
|
||
| You pay per second for compute resources while your sandbox is running. | ||
|
|
||
| ### Compute costs | ||
|
|
||
| Use the [usage cost calculator](https://e2b.dev/pricing#:~:text=Usage%20Cost%20Calculator) on our pricing page to estimate costs for your specific configuration. | ||
|
|
||
| ### Customizing compute resources | ||
|
|
||
| You can customize allocated CPU and RAM when building custom templates by specifying `cpuCount` and `memoryMB` in the build configuration. | ||
|
|
||
| <CodeGroup> | ||
| ```js JavaScript & TypeScript | ||
| import { Template, defaultBuildLogger } from 'e2b' | ||
|
|
||
| await Template.build(template, { | ||
| alias: "my-template", | ||
| cpuCount: 8, | ||
| memoryMB: 4096, | ||
| onBuildLogs: defaultBuildLogger(), | ||
| }) | ||
| ``` | ||
| ```python Python | ||
| from e2b import Template, default_build_logger | ||
|
|
||
| Template.build( | ||
| template, | ||
| alias="my-template", | ||
| cpu_count=8, | ||
| memory_mb=4096, | ||
| on_build_logs=default_build_logger(), | ||
| ) | ||
| ``` | ||
| </CodeGroup> | ||
|
|
||
| See [template quickstart](/docs/template/quickstart) for more details on building custom templates. | ||
|
|
||
| --- | ||
|
|
||
| ## Monitoring usage | ||
|
|
||
| Check your usage and costs in the [dashboard usage tab](https://e2b.dev/dashboard?tab=usage). | ||
|
|
||
| --- | ||
|
|
||
| ## FAQ | ||
|
|
||
| <AccordionGroup> | ||
| <Accordion title="When am I charged?"> | ||
| Automatically at the start of the month for the previous month's usage. | ||
| </Accordion> | ||
|
|
||
| <Accordion title="What happens when I run out of credits?"> | ||
| Your account will be blocked. Add a payment method to continue using E2B. | ||
| </Accordion> | ||
|
|
||
| <Accordion title="Can I set spending limits?"> | ||
| Yes, you can set spending limits on the [budget page](https://e2b.dev/dashboard?tab=budget) in your dashboard. | ||
| </Accordion> | ||
|
|
||
| <Accordion title="How do I optimize costs?"> | ||
| - **Always kill sandboxes when done** - Use `sbx.kill()` to stop billing immediately | ||
| - **Enable autopause** - Automatically pause sandboxes after a period of inactivity to stop billing while preserving state | ||
| - **Allocate only what you need** - Start with default resources (2 vCPU, 1 GB RAM) and increase only if necessary | ||
| - **Implement automatic timeouts** - Set max session lengths to prevent forgotten sandboxes from running | ||
| - **Monitor actively running sandboxes** - Use the [CLI](/docs/cli/list-sandboxes) or [dashboard](https://e2b.dev/dashboard?tab=usage) to track active sandboxes | ||
| - **Use lifecycle events** - Set up [webhooks](/docs/sandbox/lifecycle-events-webhooks) to get notified when sandboxes are created | ||
| </Accordion> | ||
|
|
||
| <Accordion title="Do I pay for stopped sandboxes?"> | ||
| No. You only pay while a sandbox is actively running. Once a sandbox is paused, killed or times out, billing stops immediately. | ||
| </Accordion> | ||
| </AccordionGroup> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.