using-perplexity-platform
Perplexity Sonar API development with search-augmented generation, real-time web search, citations, and OpenAI-compatible Chat Completions. Use for AI-powered applications requiring up-to-date information, research assistants, and grounded responses with sources.
npx skills add majiayu000/claude-skill-registry --skill using-perplexity-platform --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Perplexity Sonar API Development Skill ## Quick Reference Perplexity Sonar API development with Python and TypeScript/JavaScript clients. Covers Sonar model family for search-augmented generation, Chat Completions API (OpenAI-compatible), real-time web search, citations, and streaming. --- ## Table of Contents 1. [When to Use](#when-to-use) 2. [Sonar Model Family](#sonar-model-family) 3. [Quick Start](#quick-start) 4. [Chat Completions API](#chat-completions-api) 5. [Citations and Sources](#citations-and-sources) 6. [Search Configuration](#search-configuration) 7. [Streaming](#streaming) 8. [Error Handling](#error-handling) 9. [Best Practices](#best-practices) 10. [Anti-Patterns](#anti-patterns) 11. [Integration Checklist](#integration-checklist) 12. [When to Use Perplexity vs Others](#when-to-use-perplexity-vs-others) 13. [CLI Quick Test](#cli-quick-test) 14. [See Also](#see-also) --- ## When to Use This skill is loaded by `backend-developer` when: - `openai` package in `requirements.txt` or `pyproject.toml` with Perplexity base URL - Environment variables `PERPLEXITY_API_KEY` or `PPLX_API_KEY` present - User mentions "Perplexity", "Sonar", or "search-augmented" in task - Code u
- Quick Reference
- Table of Contents
- When to Use
- Sonar Model Family
- Available Models
- Model Selection Guide
- Pricing (per 1M tokens)
- Quick Start
- Python Setup (Using OpenAI SDK)
- TypeScript Setup
- Environment Configuration
- Chat Completions API
- Common Parameters
- Perplexity-Specific Parameters
export PERPLEXITY_API_KEY="pplx-..." Test API access curl -X POST https://api.perplexity.ai/chat/completions \
What does the using-perplexity-platform skill do?
Perplexity Sonar API development with search-augmented generation, real-time web search, citations, and OpenAI-compatible Chat Completions. Use for AI-powered applications requiring up-to-date information, research assistants, and grounded responses with sources.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill using-perplexity-platform --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
