What is Perplexity?
Perplexity is an AI-powered search engine that answers questions with cited sources. It combines LLMs with real-time web search, perfect for research and fact-finding. Also offers an API for building search into your apps.
Step 1: Get Started
- 1. Visit perplexity.ai
- 2. Sign up for free account
- 3. Try searching in the web interface
- 4. Upgrade to Pro for advanced models (optional)
Step 2: Use the API
# Get API key from Settings → API
# Install SDK
pip install perplexity-api
# Use in Python
from perplexity import Perplexity
client = Perplexity(api_key="your-key")
response = client.chat.completions.create(
model="sonar",
messages=[
{"role": "system", "content": "Be precise and cite sources."},
{"role": "user", "content": "What is AI orchestration?"}
]
)
print(response.choices[0].message.content)
🎉 Perplexity is Ready!
You can now use AI-powered search for research and build search into your apps. Explore more tools in the AI Toolkit.