> ## Documentation Index
> Fetch the complete documentation index at: https://vastai-80aa3a82-auto-cli-sdk-preview-pr-398.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.create_cluster

Create a Vast cluster.

## Signature

```python theme={null}
VastAI.create_cluster(
    subnet: str,
    manager_id: int
) -> dict
```

## Parameters

<ParamField path="subnet" type="str" required />

<ParamField path="manager_id" type="int" required />

## Returns

`dict`

## Example

```python theme={null}
from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.create_cluster(subnet="value", manager_id=12345)
print(result)
```
