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

# How much CPU and memory can a Novita Sandbox have?

> Up to 8 vCPU and 8 GiB of memory per sandbox on Paid (2 vCPU / 4 GiB on Free), with 20 GB of disk. Size is set when you build the template.

A sandbox can have up to 8 vCPU and 8 GiB of memory on the Paid tier, or 2 vCPU and 4 GiB on the Free tier, plus 20 GB of disk. CPU and memory are set when you build the template.

## Details

| Limit | Free | Paid | Enterprise |
| - | - | - | - |
| Maximum vCPU per sandbox | 2 | 8 | 8 by default, adjustable |
| Maximum memory per sandbox | 4 GiB | 8 GiB | 8 GiB by default, adjustable |
| Disk per sandbox | 20 GB | 20 GB | 20 GB by default, adjustable |

Configuration rules:

* vCPU is a whole number, for example 1, 2, 4, or 8.
* Memory is set in 512 MiB increments, between 0.5 and 4 GiB per vCPU. For example, 1 vCPU allows 512 MiB–4 GiB and 2 vCPU allows 1–8 GiB.
* Both values must stay within your tier's maximums; a request over them fails.

## How to

Set the size when you build a template, then create sandboxes from it:

```python Python icon="python" theme={"system"}
from novita_sandbox import Novita

novita = Novita()
template = novita.template.new().from_python_image("3.12")
build = novita.template.build(template, "big-worker", cpu_count=4, memory_mb=8192)  # Paid tier

sandbox = novita.sandbox.create(build.template_id)
```

```js JavaScript & TypeScript icon="js" theme={"system"}
import { Novita } from 'novita-sandbox'

const novita = new Novita()
const template = novita.template.new().fromPythonImage('3.12')
const build = await novita.template.build(template, 'big-worker', { cpuCount: 4, memoryMB: 8192 }) // Paid tier

const sandbox = await novita.sandbox.create(build.templateId)
```

Learn more: [Quota Limits](https://docs.novita.ai/guides/sandbox-quota-limit.md) · [Build templates](https://docs.novita.ai/guides/sandbox-template-build-operations.md)

## Related questions

* [How much does Novita Sandbox cost?](https://docs.novita.ai/guides/sandbox-faq-pricing.md)
* [How do I increase my Novita Sandbox concurrency limit?](https://docs.novita.ai/guides/sandbox-faq-concurrency-limit.md)
* [How long can a Novita Sandbox run?](https://docs.novita.ai/guides/sandbox-faq-max-runtime.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.