# Vaaya Modal Sandbox Terminate

> Vaaya Modal Sandbox Terminate is a paid API for AI agents from vaaya.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Terminates a running Modal sandbox execution environment via the Vaaya agent platform

## Facts

- Endpoint: POST https://vaaya.ai/api/run/modal/sandbox-terminate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vaaya-modal-sandbox-terminate-f4294d63
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0G6IgU2vgH3_ZFkdj5Xqe

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 vaaya-modal-sandbox-terminate-f4294d63 -d '<json body>'
```

Example prompt: Stop the Modal sandbox I started earlier — sandbox ID sb-abc123 — it's done running and I want to terminate it now.

## When to prefer this

Use this endpoint when you have an active Modal sandbox (started via Vaaya or directly) that needs to be stopped, cleaned up, or released after a task completes or needs to be cancelled mid-execution. Prefer this over alternatives when operating within the Vaaya agent ecosystem with x402 micropayment support and no need to manage API keys.

## Known failure modes

- Sandbox ID not found or already terminated — returns 404 or error status
- Sandbox is in a non-terminable state — returns conflict error
- Authentication or payment failure via x402 protocol — returns 402 or 401
- Network timeout reaching Modal backend — returns 503 or timeout error
- Invalid request body or missing sandbox identifier — returns 400

## How this service works

Modal — Terminate a running sandbox.

## Output

Returns a confirmation that the specified Modal sandbox has been terminated, along with the updated sandbox state or status indicating it is no longer active.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "$schema": "http://json-schema.org/draft-07/schema#",
     "required": [
      "sandbox_id"
     ],
     "properties": {
      "sandbox_id": {
       "type": "string",
       "minLength": 1
      }
     },
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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