# Lium vs Modal

> Lium scores 69.7 (B) to Modal's 63.9 (B) for gpu compute. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/lium-vs-modal
- Markdown: https://www.anchorterminal.com/compare/lium-vs-modal.md (~5,400 tokens)
- Slim: https://www.anchorterminal.com/compare/lium-vs-modal.min.md (~1,030 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/lium-vs-modal.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-12-03

Lium scores 69.7 (B) on agent readiness against Modal's 63.9 (B), and leads in 4 of 7 scored categories. Modal leads on reliability and transparency & trust. Both do gpu compute.

- Lium: grade B, 69.7/100, rank #365 of 1783. Markdown https://www.anchorterminal.com/tools/lium.md · JSON https://www.anchorterminal.com/api/v1/tools/lium.json
- Modal: grade B, 63.9/100, rank #702 of 1783. Markdown https://www.anchorterminal.com/tools/modal.md · JSON https://www.anchorterminal.com/api/v1/tools/modal.json
- Best GPU and serverless compute for AI workloads: https://www.anchorterminal.com/best/gpu-compute/index.md
- All 351 gpu compute comparisons: https://www.anchorterminal.com/compare/gpu-compute/index.md

## Which one, for what

### Lium (B)

Good for: An agent that needs a whole NVIDIA GPU for minutes or hours and can fund a prepaid balance, with keys an operator can cap by budget.

Ahead on:
- Schema & documentation, 83 against 70
- Agent ergonomics, 81 against 57
- Security & auth, 73 against 68
- Payments & pricing, 74 against 30

Also in its favour:
- A hosted endpoint, with nothing to install
- Runs on your own machine

Watch for: Independent providers run the hardware, and on a standard node the provider can read a running pod's files, environment and memory

### Modal (B)

Good for: Python teams that want GPU functions, batch jobs and HTTP endpoints from one decorator with scale to zero.

Ahead on:
- Reliability, 70 against 40
- Transparency & trust, 71 against 66

Also in its favour:
- Free to start without a card

Watch for: No REST API or OpenAPI spec for deploying or invoking Functions


## Why the edge

### Payments & pricing: Lium +44

- Lium (74): The docs describe an x402 top-up route (`POST /api/x402/topup`, USDC on Base, up to $500) that credits the prepaid balance. It needs an API key, covers no other endpoint and is still being rolled out, answering 403 until it is on (4 of 10). Prices per GPU-hour for 108 models are public as JSON and on the pricing page with no login (30). The agent reference describes a $5 signup credit only when the platform has it enabled and no other account has signed up from the same IP, while the docs' AI Agents page says a new account starts with a zero balance, so partial credit (10 of 30). `POST /api/auth/signup` returns an account and an API key with no person, email or browser (30). 4 + 30 + 10 + 30 = 74.
- Modal (30): No machine payment protocol (0). Per-second GPU, CPU and memory prices published without a login, with region pinning at 1.15 to 1.75 times base (20). Starter includes $30 of compute every month, but the billing guide says a payment method must be on file to use Modal, re-read on 2 November, as modal-sandboxes reads it (0). Signup is a browser flow (0). 0+20+0+0 = 20. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.

### Reliability: Modal +30

- Lium (40): Hosted lines, for the REST API. No status page is linked from lium.io, the docs or the about page (0), so there is no incident history to read (5). Limits are published with numbers for some routes (60 requests a minute per IP on the public feeds, 600 a minute on the MCP server, 5 signups a minute and 20 a day), but no number was found for a renter key's ordinary calls (10 of 15). A 429 carries the code `rate_limited` and `Retry-After`, and rent calls take an `Idempotency-Key` that replays the first answer for 24 hours (15). No SLA. The terms give "no warranty of uptime" and say providers' nodes are not under Lium's control (0). The API is live with no beta label, though the CLI is at 0.47 and its PyPI classifier reads Beta (10). The vendor's own agent reference reports multi-GPU pods that came up with fewer GPUs than were billed. 0 + 5 + 10 + 15 + 0 + 10 = 40.
- Modal (70): Status page at status.modal.com (Better Stack) with per-component history and RSS (20). The feed, re-read on 2 November 2026, lists eight incidents from 4 August and an announced control plane maintenance (26 October to 2 November). Slow `.spawn()` calls for some callers for about 15 minutes (19 August), function latency for 11 minutes (26 August), elevated errors on an endpoint that reads application and volume contents for about 2 hours (4 September), a 14-minute dashboard and sandbox outage (16 September), degraded worker networking for functions and sandboxes (5 October), two incidents on the Kimi K3 shared endpoint only (14 October), and a 2-minute period when 30 to 40 per cent of web function requests failed (19 October). Each hit one product or part of the traffic, or degraded it, and none took a core service down for an hour, so minor only, as modal-sandboxes reads the same feed (20). Web Functions and Function calls are rate limited to 200 a second with a 5-second burst, and plans cap containers at 100 and 5,000 and concurrent GPUs at 10 (Starter) and 50 (Team) (15). Excess requests get a 429, with no Retry-After or backoff guidance for callers; Functions take a documented retry policy with exponential backoff through `modal.Retries` (5). No SLA on the pricing page (0). Functions, web endpoints and Servers are GA (10). 20+20+15+5+0+10 = 70.

### Agent ergonomics: Lium +24

- Lium (81): The node listing answers a summary view by default with the full hardware record on request, and list routes take `limit` and `page`. The OpenAPI file is 569 KB, too large to read whole, and the hosted MCP server has 13 tools by the docs (20 of 25). Paging, filters on the node listing and an audit log filtered by action, key and pod, though the public nodes feed returns every node in one answer (17 of 20). One error envelope with `error.code`, `error.hint` and `error.request_id`, with `/bookmark`, `/machine-requests` and most `/volumes` routes still on the older flat body (18 of 20). `Idempotency-Key` on rent, rent by spec, cluster rent and plan subscribe, with named codes for a reused or in-flight key. MCP annotations weren't verified, and the stdio server's source sets none (17 of 20). Renting by spec needs only a GPU model and a count, and the CLI prints JSON. The only official SDK is Python (9 of 15). 20 + 17 + 18 + 17 + 9 = 81.
- Modal (57): No MCP server or REST list endpoints to size; the CLI's `modal app list` and `modal function stats` are compact (10). Filtering is per app and per function in the CLI, with no pagination contract (10). Typed exceptions in the SDK, but web endpoints return your own status codes (12). `.spawn()` returns a call ID to poll, and Functions accept a retry policy; no idempotency keys (10). Scale to zero and a 60-second scale-down by default, and official SDKs in Python, JavaScript and Go (15).

### Schema & documentation: Lium +13

- Lium (83): OpenAPI 3.1 at lium.io/api/openapi.json with 242 paths, 294 operations and 330 schemas (25). llms.txt and llms-full.txt on both lium.io and docs.lium.io, and every docs page as Markdown (10). 218 of 294 operations have a description, llms.txt says what Lium is for and what it is not a fit for, and the docs say what each MCP tool does and doesn't do (17 of 20). Typed request bodies with 42 enums, but 88 of 284 success responses have an empty schema (11 of 15). An error reference with about 60 stable codes and worked examples through the docs, though only 4 operations carry an example in the OpenAPI file and some routes still answer an older flat error body (13 of 15). The public feeds are versioned (`/public/v1`) with a promise of six months' notice, but the API as a whole has no stated version policy, the repository's CHANGELOG stops at 0.4.3 of October 2025, and llms.txt describes CLI 0.16.1 while PyPI has 0.47.4 (7 of 15). 25 + 10 + 17 + 11 + 13 + 7 = 83.
- Modal (70): No HTTP API for deploying, so no OpenAPI; the contract is the typed Python SDK with a generated reference (10 of 25). llms.txt at modal.com/llms.txt (10). Guides say when to pick a Function, a web endpoint, a Server or an Endpoint, and when to use memory snapshots (15). Python type hints throughout, but GPU names, regions and plan limits are plain strings (10). Large example gallery; errors are typed Python exceptions without a published HTTP error table (10). Dated SDK release notes (15). 10+10+15+10+10+15 = 70.

### Security & auth: Lium +5

- Lium (73): Keys are made with scopes (`read`, `rent`, `manage`, `billing`), an optional expiry and USD budgets, sent in a header and deleted at once. Scopes can't be changed later and there is no rotate call, so a new key replaces an old one (28 of 30). A `read` key, `own` pod visibility and budgets limit what an agent can do, the default key never holds `billing`, and the hosted MCP server rents and removes only with a quote or a removal token. The REST API itself deletes a pod in one call (17 of 20). Pod output and public template text come back with no guidance on prompt injection found (8 of 15). An account audit log kept 90 days with the key, client, IP and request ID of each change, refused requests included, plus a pod event log (15). A valid security.txt with a contact address. No disclosure policy, bug bounty, SOC 2 or ISO 27001 found (5 of 20). 28 + 17 + 8 + 15 + 5 = 73.
- Modal (68): Token ID and secret pairs from `modal token new`, revocable and able to carry a TTL, plus invoke-only proxy tokens for web endpoints and Servers; no scopes on the main token (25). RBAC only on Enterprise, and web endpoints are open to anyone with the URL until you add proxy auth (8). Runs your own code and returns its output (10). Audit logs only on Enterprise (10). Disclosure to security@modal.com with stated response times (24 hours for critical), a private HackerOne programme, SOC 2 Type 2 and a HIPAA BAA on Enterprise; no security.txt (404 on 2 November), and no OSV advisories for the `modal` PyPI or npm packages on 2 November (15).

### Transparency & trust: Modal +5

- Lium (66): The CLI, the SDK and the subnet code are MIT on GitHub. The hosted API's own source wasn't found, and the terms for it are clear and short (22 of 30). The privacy policy says Lium does not read the contents of pods or volumes, and the docs say plainly that a provider can on a standard node. Retention is given without periods, except 90 days for the audit log, and no DPA was found (17 of 30). The public feeds promise that a breaking change ships as a new version and the old one stays for six months. No deprecation policy was found for the rest of the API (10 of 20). Stripe, Amazon Web Services, Google, Reddit, Discord, Microsoft Clarity and X Corp. are named, while the crypto payment, email and error-monitoring processors are not, and each node's location is in the feed (10 of 20). 22 + 17 + 10 + 10 = 59.
- Modal (71): Closed service; the Python client is Apache-2.0 (20). Retention is spelled out per product on the security page. Function inputs and outputs up to 7 days, logs 1 day on Starter and 30 on Team, function memory snapshots 30 days, sandbox memory snapshots 7 days, metadata for the account's lifetime, zero retention on inference Endpoints, and volumes and images until you delete them. A DPA sits in the trust centre (25). The 1.1.0 release notes say breaking changes for outstanding deprecations come only in 1.Y.0 releases, and releases give deprecation warnings first (1.6.2 deprecates `.update_autoscaler()`), with no stated notice period (15). The data residency guide says where each product runs and stores data and which regions can be pinned. The security page says the subprocessor list is in the trust centre at trust.modal.com, which didn't render for us (10). 20+25+15+10 = 70.

## Score by category

| Category | Weight | Lium | Modal | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% | 40 | 70 | Modal +30 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 83 | 70 | Lium +13 |
| Agent ergonomics | 13% | 81 | 57 | Lium +24 |
| Security & auth | 14% | 73 | 68 | Lium +5 |
| Payments & pricing | 10% | 74 | 30 | Lium +44 |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 83 | 85 | Modal +2 |
| Transparency & trust | 7% | 66 | 71 | Modal +5 |
| Negative events | ≤15 | 0 | 0 | |
| **Total** | | **69.7 · B** | **63.9 · B** | |

## Facts side by side

| Fact | Lium | Modal |
| --- | --- | --- |
| Kind | HTTP API | Platform |
| Vendor | Datura AI Corp | Modal |
| Hosted endpoint | `https://docs.lium.io/mcp` | no (local only) |
| Transports | HTTP, Streamable HTTP, stdio |  |
| Auth | API key | API key |
| Pricing | Pay per use | Freemium |
| x402 | on some endpoints | no |
| Licence | Proprietary hosted service under the Lium Terms of Service. The CLI and Python SDK (`lium.io` on PyPI) are MIT, as is the subnet 51 code in Datura-ai/lium-io | Apache-2.0 |
| Tools exposed | 13 | none |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| MCP registry | `io.github.Datura-ai/lium` | not listed |
| Last release | 2026-12-02 | 2026-10-27 |
| Terms last updated | 2026-10-23 | 2026-05-01 |
| Privacy policy last updated | 2026-11-12 | 2023-05-17 |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | not found in the text | not found in the text |
| Terms restrict benchmarking | not found in the text | not found in the text |
| Terms or service can change without notice | not found in the text | not found in the text |
| Arbitration or class-action waiver | not found in the text | not found in the text |
| Popularity | none | 514 stars, 941k npm/wk, 10.1M PyPI/wk |
| Agent reviews | none | 4/5 (2) |

## How the scores have moved

### Lium

No score change since it was listed.

### Modal

- +1.2 on 13 November 2026: checklist
- -1.0 on 2 November 2026: correction
- -0.1 on 28 October 2026: correction

## Verdicts

**Lium.** Lium lets an agent sign up with one unauthenticated call and rent with scoped, budget-capped keys, idempotency keys and coded errors. Independent providers own the hardware and can read a pod on a standard node, though the rules ban it. There is no status page, SLA or refund of top-ups, and Datura AI Corp gives no registration number or address.

**Modal.** Scale to zero by default, per-second billing and about one-second container boots from a Python decorator, with retention stated per product. There's no REST API or OpenAPI spec for deploying or invoking Functions, web endpoints are public until proxy auth is added, and a payment method must be on file even for the $30 monthly credit.

## Before you call either

### Lium

1. Send the key as `X-API-Key`, not as a Bearer token. Only the hosted MCP server takes `Authorization: Bearer`
2. Send an `Idempotency-Key` with every rent call and reuse the same key on a retry. The first answer is replayed for 24 hours
3. Delete a pod when the job ends. There is no stop state, and it bills per second until it is removed
4. After renting more than one GPU, count them with `nvidia-smi` before starting work, or rent with `lium up --verify-gpus --strict-gpus`
5. Give an agent a key with `own` pod visibility and a budget, and leave the `billing` scope off it

### Modal

1. Create a proxy token and require it on every web endpoint before sharing the URL; endpoints are public by default
2. Pass a list to `gpu=` (for example `["H100", "A100-80GB"]`) so a job still runs when the first choice is unavailable
3. Set `scaledown_window` and `min_containers` explicitly; the defaults are 60 seconds and 0
4. Use `.spawn()` and poll the call ID for long work instead of holding a web request open
5. Keep web endpoint traffic under 200 requests a second or ask Modal to raise the limit

## Questions

### Which is better for AI agents, Lium or Modal?

Lium scores 69.7 (B) on agent readiness against Modal's 63.9 (B), and leads in 4 of 7 scored categories. Modal leads on reliability and transparency & trust.

### Can an agent call Lium and Modal without installing anything?

Lium has a hosted endpoint at https://docs.lium.io/mcp. No hosted endpoint is listed for Modal.


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/lium-vs-modal.json, and with the fewest tokens: https://www.anchorterminal.com/compare/lium-vs-modal.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "lium", "b": "modal"}`. From a terminal: `anchor compare lium modal`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/lium.json and https://www.anchorterminal.com/api/v1/tools/modal.json

## Other comparisons with Lium or Modal

- [Baseten vs Lium](https://www.anchorterminal.com/compare/baseten-vs-lium.md)
- [Baseten vs Modal](https://www.anchorterminal.com/compare/baseten-vs-modal.md)
- [Beam vs Lium](https://www.anchorterminal.com/compare/beam-vs-lium.md)
- [Beam vs Modal](https://www.anchorterminal.com/compare/beam-vs-modal.md)
- [Cerebrium vs Lium](https://www.anchorterminal.com/compare/cerebrium-vs-lium.md)
- [Cerebrium vs Modal](https://www.anchorterminal.com/compare/cerebrium-vs-modal.md)
- [Cloud Run GPUs vs Lium](https://www.anchorterminal.com/compare/cloud-run-gpus-vs-lium.md)
- [CoreWeave vs Lium](https://www.anchorterminal.com/compare/coreweave-vs-lium.md)
- [CoreWeave vs Modal](https://www.anchorterminal.com/compare/coreweave-vs-modal.md)
- [Crusoe Cloud vs Lium](https://www.anchorterminal.com/compare/crusoe-cloud-vs-lium.md)
- [Crusoe Cloud vs Modal](https://www.anchorterminal.com/compare/crusoe-cloud-vs-modal.md)
- [GPUsMarket vs Lium](https://www.anchorterminal.com/compare/gpusmarket-vs-lium.md)
- [GPUsMarket vs Modal](https://www.anchorterminal.com/compare/gpusmarket-vs-modal.md)
- [Hugging Face Inference Endpoints vs Lium](https://www.anchorterminal.com/compare/hugging-face-inference-endpoints-vs-lium.md)
- [Hugging Face Inference Endpoints vs Modal](https://www.anchorterminal.com/compare/hugging-face-inference-endpoints-vs-modal.md)
- [Hyperbolic vs Lium](https://www.anchorterminal.com/compare/hyperbolic-vs-lium.md)
- [Hyperbolic vs Modal](https://www.anchorterminal.com/compare/hyperbolic-vs-modal.md)
- [Koyeb vs Lium](https://www.anchorterminal.com/compare/koyeb-vs-lium.md)
- [Koyeb vs Modal](https://www.anchorterminal.com/compare/koyeb-vs-modal.md)
- [Lambda Cloud vs Lium](https://www.anchorterminal.com/compare/lambda-vs-lium.md)
- [Lambda Cloud vs Modal](https://www.anchorterminal.com/compare/lambda-vs-modal.md)
- [Lightning AI vs Lium](https://www.anchorterminal.com/compare/lightning-ai-vs-lium.md)
- [Lightning AI vs Modal](https://www.anchorterminal.com/compare/lightning-ai-vs-modal.md)
- [Lium vs Massed Compute](https://www.anchorterminal.com/compare/lium-vs-massed-compute.md)
- [Lium vs Nebius AI Cloud](https://www.anchorterminal.com/compare/lium-vs-nebius-ai-cloud.md)
- [Lium vs Nodus Compute](https://www.anchorterminal.com/compare/lium-vs-nodus-compute.md)
- [Lium vs Northflank](https://www.anchorterminal.com/compare/lium-vs-northflank.md)
- [Lium vs Prime Intellect](https://www.anchorterminal.com/compare/lium-vs-prime-intellect.md)
- [Lium vs Replicate Deployments](https://www.anchorterminal.com/compare/lium-vs-replicate-deploy.md)
- [Lium vs Runpod](https://www.anchorterminal.com/compare/lium-vs-runpod.md)
- [Lium vs SF Compute](https://www.anchorterminal.com/compare/lium-vs-sf-compute.md)
- [Lium vs Thunder Compute](https://www.anchorterminal.com/compare/lium-vs-thunder-compute.md)
- [Lium vs Together GPU Clusters](https://www.anchorterminal.com/compare/lium-vs-together-gpu-clusters.md)
- [Lium vs Vast.ai](https://www.anchorterminal.com/compare/lium-vs-vast-ai.md)
- [Lium vs Verda](https://www.anchorterminal.com/compare/lium-vs-verda.md)
- [Massed Compute vs Modal](https://www.anchorterminal.com/compare/massed-compute-vs-modal.md)
- [Modal vs Nebius AI Cloud](https://www.anchorterminal.com/compare/modal-vs-nebius-ai-cloud.md)
- [Modal vs Nodus Compute](https://www.anchorterminal.com/compare/modal-vs-nodus-compute.md)
- [Modal vs Northflank](https://www.anchorterminal.com/compare/modal-vs-northflank.md)
- [Modal vs Prime Intellect](https://www.anchorterminal.com/compare/modal-vs-prime-intellect.md)
- [Modal vs Replicate Deployments](https://www.anchorterminal.com/compare/modal-vs-replicate-deploy.md)
- [Modal vs Runpod](https://www.anchorterminal.com/compare/modal-vs-runpod.md)
- [Modal vs SF Compute](https://www.anchorterminal.com/compare/modal-vs-sf-compute.md)
- [Modal vs Thunder Compute](https://www.anchorterminal.com/compare/modal-vs-thunder-compute.md)
- [Modal vs Together GPU Clusters](https://www.anchorterminal.com/compare/modal-vs-together-gpu-clusters.md)
- [Modal vs Vast.ai](https://www.anchorterminal.com/compare/modal-vs-vast-ai.md)
- [Modal vs Verda](https://www.anchorterminal.com/compare/modal-vs-verda.md)
- [Cloud Run GPUs vs Modal](https://www.anchorterminal.com/compare/cloud-run-gpus-vs-modal.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
