---
title: Perplexity
---

<!-- THIS FILE IS AUTO-GENERATED BY website/scripts/generate-model-docs.js. DO NOT EDIT MANUALLY. -->

# Perplexity

Use `perplexity/<model>` with VoltAgent's model router.

## Quick start

```ts
import { Agent } from "@voltagent/core";

const agent = new Agent({
  name: "perplexity-agent",
  instructions: "You are a helpful assistant",
  model: "perplexity/sonar",
});
```

## Environment variables

- `PERPLEXITY_API_KEY`

## Provider package

`@ai-sdk/perplexity`

## Default base URL

Not listed.

You can override the base URL by setting `PERPLEXITY_BASE_URL`.

## Provider docs

- https://docs.perplexity.ai

## Models

<details>
  <summary>Show models (3)</summary>

- sonar
- sonar-pro
- sonar-reasoning-pro

</details>
