> ## Documentation Index
> Fetch the complete documentation index at: https://vastai-80aa3a82-docs-disable-ssh-password-login.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.search_templates

Search for templates.

## Signature

```python theme={null}
VastAI.search_templates(
    query: Optional[Union[str, dict]] = None
) -> list[dict]
```

## Parameters

<ParamField path="query" type="Optional[Union[str, dict]]">
  Search query in simple query syntax (see below)
</ParamField>

## Returns

`list[dict]`

## Example

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

client = VastAI(api_key="YOUR_API_KEY")
result = client.search_templates()
print(result)
```
