All servicesDocumentation 01
Service / compute
Modal
Serverless GPU compute for sandboxed code execution and AI/ML workloads. Create isolated sandboxes, execute commands, and run compute tasks.
Payment protocol
mpp
tempo
Method ledger
4 callable methods
POST/sandbox/create100000 USDC
POST
/sandbox/createCreate 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/exec100 USDC
POST
/sandbox/execExecute 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/status100 USDC
POST
/sandbox/statusGet the status of a sandbox.
POST JSON body with sandbox_id.
{
"body": {
"sandbox_id": "string (required)"
}
}POST/sandbox/terminate100 USDC
POST
/sandbox/terminateTerminate a sandbox.
POST JSON body with sandbox_id. Terminates the sandbox and releases resources.
{
"body": {
"sandbox_id": "string (required)"
}
}