LiteLLM Perplexity Provider — Perplexity Agents | Neura Market
    Neura MarketNeura Market/Perplexity
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityTrendingGenerate
    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.

    Agent Definition
    ## 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
    
    ```python
    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
    science

    Scientific Paper Summarizer

    Reads and summarizes scientific papers in plain language

    P
    Perplexity Team
    482
    supply-chain

    Supply Chain Monitor

    Monitors supply chain disruptions and logistics developments globally

    P
    Perplexity Team
    230
    jobs

    Job Market Analyst

    Analyzes job market conditions, salary trends, and skill demand

    R
    Research Hub
    54
    clinical-trials

    Clinical Trial Tracker

    Monitors clinical trials for specific conditions or treatments

    D
    DataMinds
    294
    content

    Content Freshness Checker

    Monitors content for outdated information and suggests updates

    A
    AI Search Lab
    357
    cybersecurity

    Threat Intelligence Gatherer

    Collects cybersecurity threat intelligence from open sources

    S
    SmartQuery
    347

    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.