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

Create a new subaccount.

## Signature

```python theme={null}
VastAI.create_subaccount(
    email: str,
    username: str,
    password: str,
    type: Optional[str] = None
) -> dict
```

## Parameters

<ParamField path="email" type="str" required>
  email address to use for login
</ParamField>

<ParamField path="username" type="str" required>
  username to use for login
</ParamField>

<ParamField path="password" type="str" required>
  password to use for login
</ParamField>

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

## Returns

`dict`

## Example

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

client = VastAI(api_key="YOUR_API_KEY")
result = client.create_subaccount(email="value", username="value", password="value")
print(result)
```
