LiteLLM Perplexity Provider — Perplexity AI Agent
    Neura MarketNeura Market/Perplexity
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityTrending
    PerplexityAgentsLiteLLM Perplexity Provider
    Back to Agents

    LiteLLM Perplexity Provider

    BerriAI April 23, 2026
    0 copies 0 downloads

    LiteLLM integration for Perplexity API providing a unified interface to call Perplexity Sonar models alongside 100+ other LLM providers with consistent API format, fallback routing, and cost tracking.

    Overview

    LiteLLM provides a unified Python/TypeScript interface to call Perplexity alongside 100+ other LLM providers. Use the same code to call Perplexity, OpenAI, Anthropic, and more with automatic fallback and load balancing.

    Supported Models

    • perplexity/sonar
    • perplexity/sonar-pro
    • perplexity/sonar-reasoning-pro
    • perplexity/sonar-deep-research

    Key Features

    • Unified API across all providers
    • Automatic fallback chains (e.g., Perplexity -> OpenAI -> Anthropic)
    • Load balancing across models
    • Cost tracking and budgeting
    • Token usage monitoring
    • OpenAI-compatible API format
    • Streaming support

    Usage

    from litellm import completion
    
    response = completion(
        model="perplexity/sonar-pro",
        messages=[{"role": "user", "content": "What's new in AI today?"}]
    )
    print(response.choices[0].message.content)
    

    Configuration

    Set PERPLEXITY_API_KEY environment variable. LiteLLM automatically routes requests to Perplexity's API endpoint.

    Proxy Server

    LiteLLM can run as a proxy server, exposing a unified OpenAI-compatible endpoint that routes to Perplexity and other providers based on model name.

    Tags

    litellmunified-apimulti-providerproxy

    Comments

    More Agents

    View all
    pi-package

    @llblab/pi-telegram

    Telegram runtime adapter for Pi

    L
    llblab
    video

    remotion

    Make videos programmatically

    J
    jonny
    browser-automation

    cbrowser

    Cognitive browser automation that thinks like your users—and helps AI agents navigate too. Simulate real user cognition with abandonment detection, constitutional safety, chaos engineering, and UX friction discovery. Sites that pass CBrowser's cognitive t

    W
    wfmedia
    browser

    agent-browser

    Browser automation CLI for AI agents

    G
    GitHub Actions
    openrouter

    @openrouter/sdk

    The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.

    G
    GitHub Actions
    nopeek

    @nopeek/agent-bridge

    Run your own agents as E2EE NoPeek bots. Pairs with one-time codes (multiple accounts per computer), runs every bot each account owns, and pipes messages to any command or webhook.

    D
    darkstaar4

    Stay up to date

    Get the latest Perplexity prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Perplexity and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Perplexity resource

    • Connect AI Agents to EPA Clean Air Act Data with MCP Integrationn8n · $14.99 · Related topic
    • Complete Lyft API Integration for AI Agents with 16 Operations Using MCPn8n · $14.99 · Related topic
    • Call Analyzer with AssemblyAI Transcription and OpenAI Assistant Integrationn8n · $14.99 · Related topic
    • SMS Messaging API Integration for AI Agents with BulkSMSn8n · $14.99 · Related topic
    Browse all workflows