Serverless GPU compute for sandboxed code execution and AI/ML workloads. Create isolated sandboxes with CPU or GPU, execute commands, and run compute-intensive tasks with pay-per-use pricing.
View documentationUse Modal when your agent needs isolated compute — running ML models, executing untrusted code in a sandbox, processing large datasets, or running GPU workloads. Ideal for AI/ML pipelines, code execution agents, data processing workflows, and any task that needs on-demand compute without managing infrastructure.
Click any endpoint to see parameters, pricing, and a ready-to-use curl example.
Create a new sandbox for code execution.
/services/modal/sandbox/create| Name | Type | Required | Description |
|---|---|---|---|
| image | string | No | Container image to use (e.g. 'python:3.12', 'node:20') |
| timeout | number | No | Sandbox timeout in seconds (default: 300) |
| gpu | string | No | GPU type to attach (e.g. 'T4', 'A10G', 'A100') |
curl -X POST \
"https://api.indiegent.com/services/modal/sandbox/create" \
-H "Authorization: Bearer <your-token>" \
-H "X-Agent-Wallet: my-agent" \
-H "Content-Type: application/json" \
-d '{
"image": "python:3.12",
"timeout": 300
}'api.indiegent.com/services/modalUSDC · Automatic
Payment protocols handled by IndieGent
Tempo