Simple, predictable pricing
for code execution

500 free executions every month. Sessions, package install, and async unlock at Pro. Mega tier ships with the new direct API channel for teams running 200K+ executions a month.

Basic
$0/mo
500 executions/month
  • 12 languages
  • 30s max timeout
  • Batch up to 10
  • Streaming included
  • gVisor isolation
  • Multi-file programs
Ultra
$49/mo
50,000 executions/month
  • Everything in Pro
  • 300s max timeout
  • Batch up to 100
  • 20 concurrent sessions
  • Full package allowlist
  • Priority queue
Mega
$149/mo
200,000 executions/month
  • Everything in Ultra
  • 600s max timeout
  • Batch up to 200
  • 50 concurrent sessions
  • Custom package allowlist
  • Dedicated priority queue

Feature comparison

Every checkmark below is enforced server-side. Quotas reset on the first of each month.

Feature Basic Pro Ultra Mega
Executions / month50010,00050,000200,000
Max CPU timeout30s60s300s600s
Batch size1050100200
Rate limit (req/min)53060180
12 languages
gVisor isolation
Multi-file programs
Output verification
Streaming (SSE)
Stateful sessions5 concurrent20 concurrent50 concurrent
Package installtop-1k cachefull allowlistfull + custom
Async + webhooks
MCP server access
Direct API channel
Priority queue
Custom package allowlist
Email support

Frequently asked questions

Is there a free tier?
Yes. Basic is free forever — 500 executions per month, no credit card needed. It's enough to integrate, prototype, and run small evaluation suites. Sign up via RapidAPI and you'll get an API key in under a minute.
What counts as one execution?
One call to POST /v1/execute, one async job started via POST /v1/execute?async=true, or one item inside a batch. Streaming requests count as one execution per stream — the SSE event count doesn't matter. Failed compilations and timeouts still count.
Do sessions count differently?
Each POST /v1/sessions/{id}/execute counts as one execution. Creating a session is free. Installing packages inside a session counts as one execution per install call, regardless of how many packages you install in that call.
What if I exceed my quota?
Requests beyond your quota return HTTP 429. Your quota resets at the start of each calendar month UTC. There's no overage billing — you must upgrade tiers to handle more. Rate-limit headers (X-RateLimit-Remaining, X-RateLimit-Reset) are included on every response so you can throttle proactively.
Can I switch tiers?
Yes, at any time, in either direction. On RapidAPI, upgrades take effect immediately and prorate. Downgrades take effect at the next billing cycle. There's no minimum commitment beyond the monthly billing period.
Refund policy?
If you cancel within 7 days of upgrading and have used less than 10% of your tier's quota, we issue a full refund. Beyond that, we don't refund partial months. Cancel any time to stop future charges. We never charge after cancellation.
Can I run SandboxAPI on my own infrastructure?
Self-hosting isn't supported in Phase 2. If you have a regulated-environment requirement (HIPAA, FedRAMP, on-prem), reach out to [email protected] — we're scoping a self-hosted edition for late 2026.
What's the difference between RapidAPI and the direct API?
Same endpoints, different billing. RapidAPI is faster to set up and uses your existing RapidAPI account. The direct channel at api.sandboxapi.dev bypasses the proxy (lower latency by ~30ms) and uses Stripe for billing. Direct customers get programmatic key rotation and webhook IP allowlisting.

Start in 60 seconds

Subscribe on RapidAPI to get an API key, or sign up directly for full self-serve billing and lower latency.