import CodeBlock from "@theme/CodeBlock";

# Google PaLM

The [Google PaLM API](https://developers.generativeai.google/products/palm) can be integrated by first
installing the required packages:

```bash npm2yarn
npm install google-auth-library @google-ai/generativelanguage
```

Create an **API key** from [Google MakerSuite](https://makersuite.google.com/app/apikey). You can then set
the key as `GOOGLE_PALM_API_KEY` environment variable or pass it as `apiKey` parameter while instantiating
the model.

import GooglePaLMExample from "@examples/models/embeddings/googlepalm.ts";

<CodeBlock language="typescript">{GooglePaLMExample}</CodeBlock>