# init_vertexai

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/utilities/vertexai/init_vertexai)

Init Vertex AI.

## Signature

```python
init_vertexai(
    project: Optional[str] = None,
    location: Optional[str] = None,
    credentials: Optional[Credentials] = None,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `project` | `Optional[str]` | No | The default GCP project to use when making Vertex API calls. (default: `None`) |
| `location` | `Optional[str]` | No | The default location to use when making API calls. (default: `None`) |
| `credentials` | `Optional[Credentials]` | No | The default custom credentials to use when making API calls. If not provided credentials will be ascertained from the environment. (default: `None`) |

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/utilities/vertexai.py#L56)