Skip to main content
Perplexity

Search documentation

Type to search this documentation.

On this pageOverview

Getting Started

A collection of practical guides, runnable examples, and integration patterns for building with Perplexity's API Platform — covering the Agent API, Search API, and Embeddings API.

  1. Get API Access

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

    Get your Perplexity API Key

    Navigate to the API Keys tab in the API Portal and generate a new key.

    Click here

  2. Install the SDK

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

    Python
    pip install perplexityai
    TypeScript
    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(/docs/getting-started/quickstart)
    • Want to build something? Take a look at our Examples(/docs/cookbook/examples/README)
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu