SandboxAPI
## The most secure code execution API on the market Execute untrusted code safely with **gVisor kernel-level isolation** — not just containers, but a full user-space kernel that intercepts every syscall. Perfect for AI agents, online judges, coding platforms, and education tools. ### Why SandboxAPI? - **Secure by default** — gVisor sandbox with disabled networking, read-only filesystem, and…
SandboxAPI endpoints
| Method | Endpoint | Description |
|---|---|---|
| Execution | ||
| POST |
executeCode /v1/execute |
Execute a single code snippet in the specified language. The call blocks until execution completes, times out, or fails. |
| POST |
executeBatch /v1/execute/batch |
Execute multiple code snippets in a single request. Each snippet runs independently in its own sandbox. The response includes per-item results and aggregate counts. Maximum batch… |
| Languages | ||
| GET |
listLanguages /v1/languages |
Returns all supported programming languages with runtime version information, file extensions, aliases, and example code. |
| Health | ||
| GET |
healthCheck /v1/health |
Returns the service health status including Docker and Redis connectivity. |
| Other endpoints | ||
| POST |
Execute Code /v1/execute |
Execute code in a specified language. Returns stdout, stderr, exit code, and execution time synchronously. |
| POST |
Execute Batch /v1/execute/batch |
Execute multiple code snippets in one request. Each runs independently in parallel. |
| GET |
List Languages /v1/languages |
List all supported languages with version info and example code. |
| GET |
Health Check /v1/health |
Health check endpoint. Returns service status, Docker and Redis connectivity. |
SandboxAPI pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO Recommended | $19 / month | 30 / minute |
|
| ULTRA | $49 / month | 60 / minute |
|
| MEGA | $149 / month | — |
|