> ## Documentation Index
> Fetch the complete documentation index at: https://e2b.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Billing & limits

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) | No additional credits                                                                                                                            | Custom     |
| **Max vCPUs**                                                                                      | 8                | <Tooltip tip="Contact support@e2b.dev if you need more vCPUs.">8+</Tooltip>                                                                      | Custom     |
| **Max memory**                                                                                     | 8 GB             | <Tooltip tip="Contact support@e2b.dev if you need more memory.">8+ GB</Tooltip>                                                                  | Custom     |
| **Disk size**                                                                                      | 10 GB            | <Tooltip tip="Contact support@e2b.dev if you need more disk space.">20+ GB</Tooltip>                                                             | Custom     |
| **<Tooltip tip="Time a sandbox can run without being paused.">Max continuous runtime</Tooltip>**   | 1 hour           | 24 hours                                                                                                                                         | Custom     |
| **<Tooltip tip="Number of sandboxes running at the same time.">Concurrent sandboxes</Tooltip>**    | 20               | <Tooltip tip="Includes 100 concurrent sandboxes. Higher concurrency up to 1,100 is available as an add-on for $500/month.">100 - 1,100</Tooltip> | 1,100+     |
| **<Tooltip tip="Number of template builds running at the same time.">Concurrent builds</Tooltip>** | 20               | 20                                                                                                                                               | Custom     |
| **<Tooltip tip="How quickly you can create new sandboxes.">Sandbox creation rate</Tooltip>**       | 1 / sec          | 5 / sec                                                                                                                                          | 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).

***

## Usage-based pricing

You pay per second for compute resources while your sandbox is running.

Upgrading to the Pro tier does not grant additional credits. It only increases the limits available to your team (such as concurrent sandboxes, continuous runtime, and resource ceilings).

### 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 theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  import { Template, defaultBuildLogger } from 'e2b'

  await Template.build(template, 'my-template', {
    cpuCount: 8,
    memoryMB: 4096,
    onBuildLogs: defaultBuildLogger(),
  })
  ```

  ```python Python theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  from e2b import Template, default_build_logger

  Template.build(
      template,
      '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.

<Note>
  Need higher CPU or RAM limits? Contact [support@e2b.dev](mailto:support@e2b.dev) for more information.
</Note>

***

## 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?">
    * **Enable auto-pause** - Automatically pause sandboxes after a period of inactivity to stop billing while preserving state
    * **Pause sandboxes when idle** - Use `sbx.pause()` to stop billing while keeping state available for later
    * **Kill sandboxes you no longer need** - Use `sbx.kill()` to stop billing and release resources permanently
    * **Allocate only what you need** - Start with default resources (2 vCPU, 1 GB RAM) and increase only if necessary
    * **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>
