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

# Pricing and limits

> What a sandbox costs per awake hour at each size, a worked monthly cost, the plans, the free trial, and the main limits.

Fibre charges for compute **by the second, and only while a sandbox is awake**. When a sandbox has nothing to do,
it goes to sleep on its own, and a sleeping sandbox costs nothing for compute. This is why you can give every user
or every task its own sandbox without paying for machines that sit idle.

This page explains what each size costs, how storage and plans work, and lists the main limits.

## Sizes and prices

The size of a sandbox decides how much CPU, memory and disk it has, and its price per hour of awake time. You
choose the size when you create the sandbox.

| Size | vCPU | Memory | Disk | Per awake hour |
| - | - | - | - | - |
| `xsmall` | 1 | 2 GB | 10 GB | \$0.0075 |
| `small` (the default) | 2 | 4 GB | 10 GB | \$0.015 |
| `medium` | 4 | 8 GB | 20 GB | \$0.030 |
| `large` | 8 | 16 GB | 40 GB | \$0.060 |
| `xlarge` | 16 | 32 GB | 80 GB | \$0.165 |

Both [runtimes](https://docs.fibre.dev/sandboxes/runtimes.md), `standard` and `vm`, cost the same for a given size. Network traffic is
included in the price.

> [card] What a month costs
>
> Say a `medium` sandbox is awake 3 hours a day for a 30-day month. That is 90 awake hours, and 90 × $0.030 = **$2.70\*\*. For the other 21 hours of each day it is asleep and costs nothing for compute.

## Storage

When a sandbox sleeps, Fibre saves its memory and files so that it can wake up exactly where it was. That saved
state, together with any [snapshots](https://docs.fibre.dev/setup/snapshots.md) you keep, counts towards your storage. Every account
includes **20 GB**, and storage beyond that costs **\$0.10 per GB per month**.

## Plans

A plan sets how many sandboxes you can keep, awake or asleep, and how many you can start or wake each day. **The plan's price comes
back to you as credit**, which pays for awake time and storage. Credit you do not use rolls over for up to 3
months.

| Per month | Credit | Sandboxes kept | Starts and wakes a day |
| - | - | - | - |
| \$20 | \$20 | 100 | 200 |
| \$100 | \$100 | 300 | 840 |
| \$500 | \$500 | 1,000 | 1,680 |
| \$2,000 | \$2,000 | 2,000 | 2,400 |

* **Sandboxes kept** counts every sandbox you have, awake or asleep. When you reach it, creating another is refused
  (`429 sandbox_limit`) until you delete one or move to a larger plan.
* Starts and wakes above the daily number still happen straight away. They are never queued. Each one above the
  number costs **\$0.03**.
* Awake time beyond your credit is paid from a prepaid balance. You can turn on automatic top-up so the balance
  never runs out.

## Free trial

The free trial lasts 7 days and includes \$20 of awake time. A card is needed to start it. During the trial you can
keep up to 2 sandboxes, use the `xsmall`, `small` and `medium` sizes, and start up to 100 sandboxes a day.

## Limits

These are the main limits. Each one is explained on the page about that feature, and the full list is in
[errors, retries and limits](https://docs.fibre.dev/production/errors-and-limits.md#limits).

| | Limit |
| - | - |
| Exec | Stops after 30 seconds; [background commands](https://docs.fibre.dev/sandboxes/running-commands.md) run as long as the sandbox lives |
| Lifetime | None unless you set one: kept until you delete it. 60 seconds to 10 years; change or remove it at any time |
| Idle timeout | 5 minutes by default; any number of seconds up to a day, or `0` to never sleep |
| Disk | By size, 10 to 80 GB |
| Labels | Up to 16 per sandbox |
| Browser | One per sandbox |
| API keys | Expire after up to 365 days, or never |
| API requests | 1,200 reads and 600 other requests a minute on the \$20 plan; more on the larger plans |

## Next

> [card] [Sleep and wake](https://docs.fibre.dev/sandboxes/sleep-and-wake.md)
>
> What a sleeping sandbox keeps, and how to keep one awake if you need to.

> [card] [Quickstart](https://docs.fibre.dev/get-started/quickstart.md)
>
> Your first sandbox in four steps.


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