---
title: "Virtual Machines API: pricing, docs and API key"
description: "Tools to run code in isolated sandboxes and virtual machines, including microVMs, shell commands, file transfer, and more."
canonical: "https://dev.monid.ai/tools/virtual-machines"
---

# Virtual Machines API

> Tools to run code in isolated sandboxes and virtual machines, including microVMs, shell commands, file transfer, and more.

- Web page: https://dev.monid.ai/tools/virtual-machines
- Endpoints on Monid: 12
- Updated: Nov 24, 2026
- Part of: [Compute & Storage](https://dev.monid.ai/tools/compute.md)

## Use it from your agent

Paste this to your agent:

```text
Set up https://monid.ai/SKILL.md, and then use Monid to show me what I can do with Virtual Machines.
```

Searching the catalog (`monid discover`) and reading an endpoint's inputs and price (`monid inspect`) are free. Only `monid run` is billed, from one Monid balance.

## Endpoints

| Endpoint | What it does | Price |
| --- | --- | --- |
| `smolmachine /machines/{id}/start` Start Machine | Start a machine you own; its filesystem comes back intact. | Free no charge |
| `smolmachine /machines/{id}/code` Run Code | Run a source snippet in a machine you own, no shell quoting. Free. | Free no charge |
| `smolmachine /machines` Create Machine | Create a persistent Linux microVM sandbox from a container image. | Free no charge |
| `smolmachine /list-machines` List Your Machines | List the machines you own (id, state, size). Free. | Free no charge |
| `smolmachine /machines/{id}/events` Machine Events | The audit trail for one machine, why it started or stopped. | Free no charge |
| `smolmachine /machines/{id}/stop` Stop Machine | Stop a machine you own; its filesystem is preserved. | Free no charge |
| `smolmachine /machines/{id}/delete` Delete Machine | Permanently delete a machine you own, including its stored data. | Free no charge |
| `smolmachine /machines/{id}/usage` Machine Usage & Cost | What one machine has used and cost this month. Free. | Free no charge |
| `smolmachine /machines/{id}/exec` Run Command | Run a short command inside a machine you own and get the output back inline. Free. | Free no charge |
| `smolmachine /machines/{id}/exec/async` Run Command (long-running) | Run a long command inside a machine you own, returns a run id to poll. Free. | Free no charge |
| `smolmachine /machines/{id}/files/download` Download File | Download a file from a machine you own. | Free no charge |
| `smolmachine /machines/{id}/files/upload` Upload File | Upload a file into a machine you own, inline (base64) or from a URL. | Free no charge |

Prices are the listed price for one unit. The web page and `monid inspect` carry the full rate card for tiered endpoints.

## Questions about the Virtual Machines API

### How do I get a Virtual Machines API key?

You don't need a separate key for each provider. One Monid API key from app.monid.ai calls all 12 Virtual Machines endpoints on this page, and every other tool in the catalog.

### How much does the Virtual Machines API cost?

Each endpoint on this page lists its own price. Calls are billed from your Monid balance with no per-provider subscription.

### Is there a free Virtual Machines API?

New Monid accounts start with $1 in free credit, no card required. It pays for Virtual Machines calls at the prices listed on this page.

### Where is the Virtual Machines API documentation?

Each endpoint on this page says what it returns and what a call costs. For the full input parameters, your agent runs monid inspect on the endpoint, which is free. Setup is covered at docs.monid.ai.

## More

- [Every tools page](https://dev.monid.ai/tools.md)
- [Connect an agent to Monid](https://dev.monid.ai/index.md)
