> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.create_volume

Create a new volume from an offer ID.

## Signature

```python theme={null}
VastAI.create_volume(id: int, size: float = 15, name: Optional[str] = None) -> str
```

## Parameters

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

<ParamField path="size" type="float" default="15">
  size
</ParamField>

<ParamField path="name" type="Optional[str]">
  name
</ParamField>

## Returns

`str`, Result from the API call.

## Example

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

client = VastAI(api_key="YOUR_API_KEY")
result = client.create_volume(id=12345)
print(result)
```
