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

# Billing

Sandbox resource usage depends on the [resources you configure](https://developers.telnyx.com/docs/edge-compute/sandboxes/composition.md#size) and the sandbox's [lifecycle state](https://developers.telnyx.com/docs/edge-compute/sandboxes/common-control-plane/user-controlled-lifecycle.md#states).

## Resource Lifecycle

| State | Resource behavior |
| - | - |
| `starting` | The sandbox is being provisioned. |
| `running` | Its configured CPU, memory, and disks are available. |
| `paused` | CPU execution stops; memory, processes, and disk state are preserved for resume. |
| `terminated` | The sandbox is removed. |

A [fork](https://developers.telnyx.com/docs/edge-compute/sandboxes/common-control-plane/user-controlled-lifecycle.md#fork) creates another sandbox with its own lifecycle. [Snapshots](https://developers.telnyx.com/docs/edge-compute/sandboxes/common-control-plane/snapshots.md) preserve a sandbox's state, while [templates](https://developers.telnyx.com/docs/edge-compute/sandboxes/organization-resources/templates.md) provide reusable starting points.

## Account

Agent Sandboxes belongs to the organization's Telnyx account. Account balance, payment methods, and invoices are managed alongside other Telnyx services. You can read the account balance through the [Balance API](https://developers.telnyx.com/api-reference/billing/get-user-balance-details.md) and view account-level charges through the [charges summary](https://developers.telnyx.com/api-reference/get-monthly-charges-summary.md).

## Resource Usage

[Lifecycle events](https://developers.telnyx.com/docs/edge-compute/sandboxes/data-plane-operations/lifecycle-events.md) show when a sandbox changes state. [Metrics](https://developers.telnyx.com/docs/edge-compute/sandboxes/data-plane-operations/metrics.md) report CPU, memory, and disk usage. Use these with the sandbox's configured resources to understand its activity.

## Resource Cleanup

[Terminate a sandbox](https://developers.telnyx.com/docs/edge-compute/sandboxes/common-control-plane/user-controlled-lifecycle.md#terminate) when it is no longer needed. Termination removes the sandbox and its snapshots. Templates are managed separately and remain available until deleted.
