All services

Service

Modal

compute4 endpoints
Docs

Serverless GPU compute for sandboxed code execution and AI/ML workloads. Create isolated sandboxes, execute commands, and run compute tasks.

mpp

tempo

Methods

4 methods available

POST/sandbox/create
100000 USDC

Create a new sandbox for code execution.

POST JSON body. Returns sandbox ID for subsequent operations.

{
  "body": {
    "image": "string (optional, container image)",
    "timeout": "number (optional, seconds)"
  }
}
POST/sandbox/exec
100 USDC

Execute a command in an existing sandbox.

POST JSON body with sandbox_id and command to execute.

{
  "body": {
    "sandbox_id": "string (required)",
    "command": "string (required)"
  }
}
POST/sandbox/status
100 USDC

Get the status of a sandbox.

POST JSON body with sandbox_id.

{
  "body": {
    "sandbox_id": "string (required)"
  }
}
POST/sandbox/terminate
100 USDC

Terminate a sandbox.

POST JSON body with sandbox_id. Terminates the sandbox and releases resources.

{
  "body": {
    "sandbox_id": "string (required)"
  }
}