Create an isolated cloud machine over REST, run commands, read and write files, then stop it. Pay per second from the same Muapi key and credit balance you use for 500+ image, video and audio models.
small2 vCPU · 4 GB RAM$0.036/hrdefault4 vCPU · 8 GB RAM$0.072/hrlarge8 vCPU · 16 GB RAM$0.144/hrPass profile when creating a sandbox. Billed per second while running; stopped sandboxes are free.
# 1. create
curl -X POST https://api.muapi.ai/api/v1/sandboxes \
-H "x-api-key: $MUAPI_KEY" -H "Content-Type: application/json" \
-d '{"profile": "default"}' # small | default | large
# 2. run a command
curl -X POST https://api.muapi.ai/api/v1/sandboxes/$ID/commands \
-H "x-api-key: $MUAPI_KEY" -H "Content-Type: application/json" \
-d '{"command": "python3 --version", "timeout_seconds": 30}'
# 3. stop (free while stopped)
curl -X POST https://api.muapi.ai/api/v1/sandboxes/$ID/stop \
-H "x-api-key: $MUAPI_KEY"/api/v1/sandboxesCreate a sandbox/api/v1/sandboxesList your sandboxes/api/v1/sandboxes/{id}/commandsRun a shell command (sync or detached)/api/v1/sandboxes/{id}/filesWrite a file/api/v1/sandboxes/{id}/files?path=Read a file/api/v1/sandboxes/{id}/stopStop (billing pauses)/api/v1/sandboxes/{id}/resumeResume a stopped sandbox/api/v1/sandboxes/{id}Delete a sandboxGive an agent a real machine to clone repos, install packages, run tests and fix failures.
Run untrusted or generated code away from your own infrastructure.
Run apps like Open Generative AI in the cloud with the user's own Muapi key.
Run ffmpeg or custom scripts on outputs from Muapi image, video and audio models.
A sandbox API lets your code or AI agent create an isolated cloud Linux machine on demand, run shell commands, read and write files, then stop or delete it, all over REST.
Billed per second from your Muapi credits while running: $0.036/hour (small), $0.072/hour (default) or $0.144/hour (large). Stopped sandboxes are free. You need a $1 balance to start.
Yes. One key and one credit balance cover sandboxes and 500+ image, video and audio models.
It is stopped automatically when your balance cannot cover usage or after 15 minutes without activity. A stopped sandbox's files are kept for 14 days.