---
title: "Create VM"
method: POST
path: "/v2/vms"
tags: ["VMs v2", "API v2"]
---

# Create VM

`POST /v2/vms`

Create a new virtual machine

## Request body

- VmV2CreateRequest — VM Create Request v2
  - `vmTypeId` integer, required — Machine model type ID
  - `region` string, required — Region code
  - `name` string, required — VM nickname
  - `isSpot` boolean, required — Spot instance flag: true=spot, false=on-demand
  - `volumeMountPaths` object — Volume mount paths mapping: volumeId -> mountPath. If not specified, default path will be used.

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error
- `10000` — VM created successfully
- `10001` — Invalid request parameters

---

[API](https://skmtc.net/yottalabs/apis/docs-yottalabs-ai.md) · [All operations](https://skmtc.net/yottalabs/apis/docs-yottalabs-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yottalabs/docs-yottalabs-ai/revisions/998cc08df103/schema)
