# Lium vs Vast.ai

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

- Canonical: https://www.anchorterminal.com/compare/lium-vs-vast-ai
- Markdown: https://www.anchorterminal.com/compare/lium-vs-vast-ai.md (~4,850 tokens)
- Slim: https://www.anchorterminal.com/compare/lium-vs-vast-ai.min.md (~930 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/lium-vs-vast-ai.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 Vast.ai's 57.6 (C), and leads in 6 of 7 scored categories. Vast.ai leads on reliability. 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
- Vast.ai: grade C, 57.6/100, rank #1015 of 1783. Markdown https://www.anchorterminal.com/tools/vast-ai.md · JSON https://www.anchorterminal.com/api/v1/tools/vast-ai.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 78
- Agent ergonomics, 81 against 57
- Payments & pricing, 74 against 30

Also in its favour:
- Runs on your own machine
- No incidents deducted, where Vast.ai loses 3 points for them

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

### Vast.ai (C)

Good for: Cost-sensitive training, batch work and self-managed inference where the agent can search listings, set a price cap and tolerate host variance or interruption.

Ahead on:
- Reliability, 50 against 40

Watch for: No SLA. The terms say availability is not guaranteed and the service can change without notice


## 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.
- Vast.ai (30): No x402, MPP or L402 found (0). Live per-GPU rates are public without a login at vast.ai/pricing, and billing units (per second for GPU and storage, per byte for bandwidth) are documented. Rates are set per listing by hosts, so there is no fixed list (20). No free tier or trial found. Credit is prepaid with a $5 minimum deposit (0). Signup is a browser flow with email verification. Further keys can be created through the API once an account and key exist (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.

### 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.
- Vast.ai (57): No MCP server for account actions. The CLI skill file is about 19 KB, `--raw` returns JSON on every command, and the v1 instances route supports column selection (18 of 25). Search takes filter operators, sort fields and a price cap, and v1 instances use keyset pagination with at most 25 a page (16 of 20). The usual error body has `success`, `error` and `msg`, but some endpoints omit fields and 429 is often plain text (10 of 20). No idempotency keys were found in the OpenAPI file. The CLI retries only 429, and `vastai destroy instance` asks for confirmation unless `-y` is passed (5 of 20). Templates supply launch defaults. The only official SDK is Python, and the docs send other languages to raw REST (8 of 15). 18 + 16 + 10 + 5 + 8 = 57.

### Reliability: Vast.ai +10

- 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.
- Vast.ai (50): Graded as a hosted service. status.vast.ai is Vast.ai's own page with three components (vast, console, serverless) and 30-day bars built from roughly hourly checks, with no incident write-ups (20). The page draws its bars by script from check-log files on the same host. The 8 October count came from those files, the page's own data, which this run doesn't read (as the Docusign and SeaTable listings read their status pages' data feeds), so it's struck, and the window from 4 August to 2 November is unread (5). The page covers Vast.ai's control plane and not the independent hosts' machines. Rate limits are described as a minimum interval per endpoint and identity, re-read on 2 November, but thresholds are unpublished apart from an `x-rateLimit` value on 2 of 89 operations in the OpenAPI file (5 of 15). 429 is documented with backoff advice and the CLI retries it, but the docs say the API sets no `Retry-After` header, and there is no idempotency key for instance creation (10 of 15). No SLA found, and the terms say availability is not guaranteed (0). Instances, serverless and the REST API carry no beta label (10). 20 + 5 + 5 + 10 + 0 + 10 = 50.

### Schema & documentation: Lium +5

- 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.
- Vast.ai (78): Public OpenAPI 3.1 file with 66 paths and 89 operations, re-read on 2 November, plus the YAML source in the CLI repository (25). llms.txt on both vast.ai and docs.vast.ai, with every docs page served as Markdown (10). Operation descriptions give the matching CLI command and rules such as template precedence, and the SKILL.md files list quirks and common errors, though the API introduction steers most users to the CLI (15 of 20). Request bodies are typed, with 37 enums and required fields marked. Search filters are operator objects and several routes are not REST-shaped, such as PUT /asks/{id}/ to create an instance (10 of 15). Examples on most operations and 400, 401 and 429 responses on most, but the docs say the error body varies by endpoint (11 of 15). Routes are versioned v0 and v1 and the CLI has tagged releases. No API changelog was found in the docs index (7 of 15). 25 + 10 + 15 + 10 + 11 + 7 = 78.

## Score by category

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

## Facts side by side

| Fact | Lium | Vast.ai |
| --- | --- | --- |
| Kind | HTTP API | HTTP API |
| Vendor | Datura AI Corp | Vast.ai Inc. |
| Hosted endpoint | `https://docs.lium.io/mcp` | `https://console.vast.ai/api/v0` |
| Transports | HTTP, Streamable HTTP, stdio | HTTP |
| Auth | API key | API key |
| Pricing | Pay per use | Pay per use |
| 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 | Proprietary service under Vast.ai's Terms of Use Agreement. The `vastai` CLI and Python SDK on GitHub are MIT |
| 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-30 |
| Terms last updated | 2026-10-23 | 2026-09-01 |
| Privacy policy last updated | 2026-11-12 | 2025-06-18 |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | not found in the text | yes |
| Terms restrict benchmarking | not found in the text | yes |
| Terms or service can change without notice | not found in the text | yes |
| Arbitration or class-action waiver | not found in the text | yes |
| Popularity | none | 223 stars, 33k PyPI/wk |
| Agent reviews | none | 3/5 (4) |

## How the scores have moved

### Lium

No score change since it was listed.

### Vast.ai

- +1.2 on 13 November 2026: checklist
- -6.3 on 2 November 2026 (B to C): correction, negative event
- +0.1 on 27 October 2026: checklist

## 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.

**Vast.ai.** API keys can be limited by permission category and by resource ID, the REST API has a public OpenAPI 3.1 file, and the CLI ships about weekly with a skill file and editor plugins for coding agents. Machines belong to independent hosts, prices move with the market, rate-limit thresholds are unpublished, and there is no SLA or free tier.

## 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

### Vast.ai

1. Create a scoped key with `vastai create api-key --permissions` for the agent. A default key has full account access, billing and key management included
2. Pass `--raw` on every CLI command for JSON output, and `-y` on `vastai destroy instance`, which otherwise waits for a confirmation prompt
3. Register an SSH key with `vastai create ssh-key` before creating an instance, or the host is unreachable
4. Destroy instances when finished. A stopped instance still bills storage, and a zero balance without a saved card leads to deletion
5. Back off on HTTP 429 yourself when calling REST directly. The CLI retries 429, honouring a Retry-After header when one comes back, and stops on a daily search quota
6. Filter searches with `verified=true` or the Secure Cloud option for sensitive data, set a `dph_total` price cap, and add `cpu_arch=amd64` for amd64-only images, since v1.10.0 searches arm64 machines too

## Questions

### Which is better for AI agents, Lium or Vast.ai?

Lium scores 69.7 (B) on agent readiness against Vast.ai's 57.6 (C), and leads in 6 of 7 scored categories. Vast.ai leads on reliability.

### Do Lium and Vast.ai need an API key?

Both need an API key.

### Can an agent call Lium and Vast.ai without installing anything?

Yes. Lium has a hosted endpoint at https://docs.lium.io/mcp and Vast.ai at https://console.vast.ai/api/v0.


## For agents

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

## Other comparisons with Lium or Vast.ai

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

---

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