> ## Documentation Index
> Fetch the complete documentation index at: https://docs.perplexity.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started

> How to use the Perplexity API Cookbook, plus a quick start for getting your API key and installing the SDK.

A collection of practical guides, runnable examples, and integration patterns for building with [**Perplexity's API Platform**](https://docs.perplexity.ai/) — covering the Agent API, Search API, and Embeddings API.

> [!NOTE]
>
> Looking for a specific recipe? Browse and filter every recipe by product, capability, and topic on the [Cookbook home page](https://docs.perplexity.ai/docs/cookbook.md).

## How to Use This Cookbook

> [card] [Guides](https://docs.perplexity.ai/docs/cookbook/articles/function-calling-e2e/README.md)
>
> Practical deep-dives on patterns that go beyond the docs — structured outputs, function calling, RAG pipelines, and cross-cutting best practices.

> [card] [Examples](https://docs.perplexity.ai/docs/cookbook/examples/README.md)
>
> Runnable projects covering every API. From research assistants and news monitors to document Q\&A and image analysis — with Python and TypeScript.

> [card] [Integration Guides](https://docs.perplexity.ai/docs/cookbook/articles/langchain-vc-memo-agent/README.md)
>
> Connect Perplexity with external frameworks and build auditable, citation-grounded workflows.

> [card] [Community Showcase](https://docs.perplexity.ai/docs/cookbook/showcase.md)
>
> Real-world applications built by the community — see what others are building with the API Platform.

## Quick Start

**1. Get API Access**

To use the Perplexity API Platform, you'll need an API key. If you don't have one yet:

> [card] [Get your Perplexity API Key](https://console.perplexity.ai/project/keys)
>
> Navigate to the **API Keys** tab in the API Portal and generate a new key.

**2. Install the SDK**

The Perplexity API SDK is available in Python and TypeScript. Install the package for your preferred language:

```bash Python theme={null}
pip install perplexityai
```

```bash TypeScript theme={null}
npm install @perplexity-ai/perplexity_ai
```

**3. Pick a Starting Point**

The Perplexity API Platform supports a wide range of use cases across its different APIs. Here are some recommended starting points based on your goals:

* New to the platform? Refer to our [Quick Start Guide](https://docs.perplexity.ai/docs/getting-started/quickstart.md)
* Want to build something? Take a look at our [Examples](https://docs.perplexity.ai/docs/cookbook/examples/README.md)
