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

Create a new subaccount under the current account.

## Signature

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

## Parameters

<ParamField path="email" type="Optional[str]">
  Email address for the new subaccount.
</ParamField>

<ParamField path="username" type="Optional[str]">
  Username for the new subaccount.
</ParamField>

<ParamField path="password" type="Optional[str]">
  Password for the new subaccount.
</ParamField>

<ParamField path="type" type="Optional[str]">
  Account type for the subaccount.
</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_subaccount()
print(result)
```
