Modal · Schema

Modal Sandbox

A Modal Sandbox — a secure container for executing untrusted user or agent code with isolation, optional GPU, volumes, networking tunnels, and lifecycle hooks.

ServerlessGPUCloud ComputeAI InfrastructureSandboxesInferenceTrainingBatch ProcessingPythonTypeScriptGo

Properties

Name Type Description
sandbox_id string
app_id string
state string
image string
entrypoint array
gpu string
cpu number
memory integer
timeout integer
idle_timeout integer
encrypted_ports array
unencrypted_ports array
tags object
created_at string
View JSON Schema on GitHub

JSON Schema

modal-sandbox-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/modal-com/main/json-schema/modal-sandbox-schema.json",
  "title": "Modal Sandbox",
  "description": "A Modal Sandbox — a secure container for executing untrusted user or agent code with isolation, optional GPU, volumes, networking tunnels, and lifecycle hooks.",
  "type": "object",
  "required": ["sandbox_id", "app_id", "state"],
  "properties": {
    "sandbox_id": { "type": "string" },
    "app_id": { "type": "string" },
    "state": {
      "type": "string",
      "enum": ["created", "scheduled", "started", "ready", "finished", "terminated"]
    },
    "image": { "type": "string" },
    "entrypoint": {
      "type": "array",
      "items": { "type": "string" }
    },
    "gpu": { "type": "string" },
    "cpu": { "type": "number", "minimum": 0.125 },
    "memory": { "type": "integer", "minimum": 128 },
    "timeout": { "type": "integer", "minimum": 1, "maximum": 86400 },
    "idle_timeout": { "type": "integer", "minimum": 0 },
    "encrypted_ports": {
      "type": "array",
      "items": { "type": "integer", "minimum": 1, "maximum": 65535 }
    },
    "unencrypted_ports": {
      "type": "array",
      "items": { "type": "integer", "minimum": 1, "maximum": 65535 }
    },
    "tags": {
      "type": "object",
      "additionalProperties": { "type": "string" }
    },
    "created_at": { "type": "string", "format": "date-time" }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/modal-sandbox"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.