# BlockRun.AI Sandbox Terminate

> BlockRun.AI Sandbox Terminate is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13, last successful call 2026-07-22).

Terminates a running sandbox environment and releases its allocated compute resources.

## Facts

- Endpoint: POST https://blockrun.ai/api/v1/modal/sandbox/terminate
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Last successful call: 2026-07-22
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-ai-ef93eeb9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8D-35Rwe5qGYiV7OmzEdl

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability blockrun-ai-ef93eeb9 -d '<json body>'
```

Example prompt: Terminate the BlockRun sandbox with ID sandbox-abc123 and release all its resources.

## When to prefer this

Use this endpoint when you have finished executing code in a BlockRun sandbox (created via /sandbox/create) and need to clean up resources to avoid unnecessary charges or resource leaks. Always call this after your sandbox workflow is complete.

## Known failure modes

- Invalid or unknown sandbox_id returns a 404 or error response
- Sandbox already terminated returns an error or idempotency confirmation
- Payment failure (402) if USDC balance is insufficient
- Network timeout if sandbox termination takes too long
- Unauthorized access if sandbox_id belongs to a different user

## How this service works

Terminate sandbox and release resources.

## Output

A confirmation that the sandbox has been terminated and its compute resources have been released, typically including the sandbox ID and termination status.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "sandbox_id": {
   "type": "string",
   "description": "Sandbox ID from /sandbox/create"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-ai-ef93eeb9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blockrun.ai](https://www.zero.xyz/host/blockrun.ai/llms.txt)
