🔥 Black Friday AI API deals are live· 🎬 Seedance 2.5 — 20% off, up to 42% below market, until Nov 30Ends in--d --:--:--See deals →

Muapi Sandbox Run Command: AI 대형 언어 모델

Run shell commands in a cloud Linux sandbox with the Muapi Sandbox API. Get stdout, stderr and exit codes. from $0.036/hour. Run a shell command inside a running sandbox and get stdout, stderr and the exit code.

대화형 모델 제어

Run a shell command inside a running sandbox and get stdout, stderr and the exit code.

📝

개요

이 모델 정보

Run Command on the Muapi Sandbox API runs a shell command inside a running sandbox and returns its output and exit code, or a process ID when run detached. It is one operation of the Sandbox API, which gives AI agents and developers isolated cloud Linux machines over REST, billed per second from the same Muapi key and credits used for 500+ image, video and audio models. The response returns stdout, stderr and exitCode for a normal run, or a processId for a detached run. Sandboxes cost $0.036 (small), $0.072 (default) or $0.144 (large) per running hour, stopped sandboxes are free, and idle sandboxes auto-stop after 15 minutes. Pair it with Run Command and Stop Sandbox to build a complete agent workflow.

1Agent tools: Back an agent's shell tool with a real machine.
2Build and test: Install dependencies, run tests and return results.
3Media scripts: Run ffmpeg or custom scripts on outputs from Muapi models.
💰

가격 및 가치

비용 분석

muapiFrom $0.036 per running hour

Small $0.036, default $0.072, large $0.144 per hour. Billed per second from the same credits as media models. Stopped sandboxes are free.

Fal.ai제공되지 않음

No sandbox API.

Replicate제공되지 않음

No sandbox API.

** 경쟁업체 가격은 유사한 모델 아키텍처 및 사용 계층을 기준으로 추정됩니다.

⚙️

기술적인 세부사항

구성 스키마

Sandbox IDstring

The sandbox ID returned by Create Sandbox.

기본값3f2b8c1e-5a4d-4e6f-9a7b-0c1d2e3f4a5b
Commandstring

Shell command to run inside the sandbox.

기본값python3 --version
Timeout (seconds)int

Maximum time to wait for the command.

기본값30
Detachedboolean

Run in the background and return a process ID to poll with Command Status.

기본값false
Working Directorystring

Directory to run the command in.

기본값.
📖

구현 가이드

개발자 문서

How to Use Run Command

  1. Get an API key: create one at muapi.ai/access-keys and export it as MUAPI_KEY.

  2. Call the endpoint: send the request below. Replace $SANDBOX_ID with the ID returned by Create Sandbox.

curl -X POST "https://api.muapi.ai/api/v1/sandboxes/$SANDBOX_ID/commands" \
  -H "x-api-key: $MUAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"command": "python3 --version", "timeout_seconds": 30}'
  1. Read the result: the response contains stdout, stderr and exitCode for a normal run, or a processId for a detached run.

  2. Stop when finished: call Stop Sandbox so you only pay for active time.

❓

일반적인 질문

자주 묻는 질문

What does Run Command do?

It runs a shell command inside a running sandbox and returns its output and exit code, or a process ID when run detached.

How much do sandboxes cost?

$0.036 (small, 2 vCPU/4 GB), $0.072 (default, 4 vCPU/8 GB) or $0.144 (large, 8 vCPU/16 GB) per running hour, billed per second from your Muapi credits. Stopped sandboxes are free, and you need a $1 balance to start one.

Do I need a separate key for sandboxes?

No. The same Muapi API key and credit balance cover sandboxes and 500+ image, video and audio models.

What happens when my credits run out or the sandbox is idle?

The sandbox 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.

How is this operation authenticated?

Send your key in the `x-api-key` header. Each key can only see and control its own sandboxes.