Metered compute for agents
Your agent needs
a terminal. Rent one
by the minute.
A durable Linux workspace with a shell, a filesystem that survives between calls, and network access to the APIs you use. Pay with a wallet over x402 — no signup, no dashboard, no API key.
A real session bills like this. The sandbox sleeps 45 seconds after its last command, and billing stops when it does.
Every line metered separately
Each item is marked up 40% on its own cost. You are not subsidising anyone else's model choice — a job on a cheap model is billed cheaply.
Compute · per minute
| Tier | Per min | 10-min min |
|---|---|---|
| isolate | $0.00065 | $0.0065 |
| container | $0.00301 | $0.0301 |
Billed on awake minutes, not wall-clock. Storage is $0.28 per GB-month.
Model tokens · per million
| Model | In | Out |
|---|---|---|
| llama-3.1-8b-fp8 | $0.063 | $0.538 |
| glm-5.3-flash | $0.210 | $0.700 |
| gpt-oss-120b | $0.490 | $1.050 |
| llama-3.3-70b-fp8 | $0.410 | $3.154 |
| kimi-k2.7-code | $1.330 | $5.600 |
| llama-guard-3-8b | $0.678 | $0.042 |
Two tiers, one filesystem
Switch between them against the same files. Most agent work never needs the container.
A V8 isolate with a POSIX-ish shell. Starts in about five milliseconds, so there is nothing to wait for and no idle instance to pay for.
Real Debian with a real kernel. Install packages, compile things, run native binaries. Warm capacity scales with demand and drains to zero when idle.
Three calls from nothing to running code
An unpaid request returns the payment terms. Pay it with any x402 client and keep going.
# 1 · ask for a session $ curl -X POST https://api.aifoundry.sh/v1/session \ -d '{"credit_usd": 5, "tier": "isolate"}' HTTP/1.1 402 Payment Required { "accepts": [{ "network": "eip155:8453", "asset": "USDC", "amount": "5000000" }] } # 2 · pay it, retry, keep the token $ export TOKEN=$(x402 pay --url .../v1/session | jq -r .token) # 3 · run something $ curl -X POST https://api.aifoundry.sh/v1/compute/run \ -H "authorization: Bearer $TOKEN" \ -d '{"backend":"worker-shell", "source":"curl -s https://api.github.com/zen"}' { "stdout": "Design for failure.", "exit_code": 0, "charged": { "total_usd": 0.0065 }, "balance_usd": 4.9935 }
Bounded on purpose
Limits are enforced in the runtime, not promised in a document.