> ## Documentation Index
> Fetch the complete documentation index at: https://vastai-80aa3a82-examples-openclaw-openai-serverless.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.create_api_key

Create a new API key.

## Signature

```python theme={null}
VastAI.create_api_key(name: Optional[str] = None, permission_file: Optional[str] = None, key_params: Optional[str] = None) -> str
```

## Parameters

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

<ParamField path="permission_file" type="Optional[str]">
  permission\_file
</ParamField>

<ParamField path="key_params" type="Optional[str]">
  key\_params
</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_api_key()
print(result)
```
