Skip to main content
Providers

Perplexity

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

Quick start

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

Models

Show models (3)
  • sonar
  • sonar-pro
  • sonar-reasoning-pro

Table of Contents