Agent API
Agent API
The Agent API is a multi-provider, interoperable API specification for building LLM applications. Access models from multiple providers with integrated real-time web search, tool configuration, reasoning control, and token budgets—all through one unified interface.
OpenAI Compatibility
Use your existing OpenAI SDKs with Perplexity's Agent API. Full compatibility with minimal code changes.
Prompt Guide
How to write effective prompts for the Agent API.
Perplexity Search API
Access real-time web search results with Perplexity's Search API. Get ranked results, domain filtering, multi-query search, and content extraction for developers.
Fast Search
Use search_type fast on the Search API for lower-latency, lower-cost web results.
Best Practices
Learn best practices for optimizing search queries and implementing efficient async patterns with Perplexity's Search API.
Perplexity Search SDK
An agents-first Python SDK that brings Perplexity's Search as Code approach to your applications: composable retrieval primitives that agents orchestrate in code.