Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/fortiumpartners/ensemble/using-perplexity-platformnpx skills add FortiumPartners/ensemble --skill using-perplexity-platformgit clone --depth 1 https://github.com/FortiumPartners/ensembleWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/fortiumpartners/ensemble/using-perplexity-platform)<a href="https://agentmods.dev/skills/fortiumpartners/ensemble/using-perplexity-platform"><img src="https://agentmods.dev/badge/skills/fortiumpartners/ensemble/using-perplexity-platform.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00056 | $0.02863 |
| Opus 5 | $0.00028 | $0.01432 |
| Sonnet 5 | $0.00011 | $0.00573 |
| Haiku 4.5 | $0.00006 | $0.00286 |
Grade A, and why
using-perplexity-platform scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -X POST https://api.perplexity.ai/chat/completions \ How it starts
The opening of the file, as written. The whole thing — 438 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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
- When to Use
- Sonar Model Family
- Quick Start
- Chat Completions API
- Citations and Sources
- Search Configuration
- Streaming
- Error Handling
- Best Practices
- Anti-Patterns
- Integration Checklist
- When to Use Perplexity vs Others
- CLI Quick Test
- See Also
When to Use
This skill is loaded by backend-developer when:
openaipackage inrequirements.txtorpyproject.tomlwith Perplexity base URL- Environment variables
PERPLEXITY_API_KEYorPPLX_API_KEYpresent - User mentions "Perplexity", "Sonar", or "search-augmented" in task
- Code uses
api.perplexity.aibase URL
Minimum Detection Confidence: 0.8 (80%)
Sonar Model Family
Available Models
| Model | Context | Search | Use Case | Speed |
|---|---|---|---|---|
sonar |
128K | Yes | General search-augmented | Fast |
sonar-pro |
200K | Yes | Complex research, deeper search | Medium |
sonar-reasoning |
128K | Yes | Multi-step reasoning with search | Slower |
sonar-reasoning-pro |
200K | Yes | Advanced reasoning, citations | Slowest |
Model Selection Guide
Task Complexity -> Model Selection
+-- Simple factual queries -> sonar (fast, affordable)
+-- Research with citations -> sonar-pro (deeper search)
+-- Multi-step reasoning -> sonar-reasoning
+-- Complex analysis -> sonar-reasoning-pro
What ships with it
13 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- examples/basic-chat.example.py 12 KB runs code
- examples/citations.example.py 16 KB runs code
- examples/README.md 6.1 KB
- examples/research-assistant.example.py 17 KB runs code
- examples/streaming.example.py 13 KB runs code
- README.md 7.1 KB
- REFERENCE.md 19 KB
- templates/chat.template.py 7.0 KB runs code
- templates/chat.template.ts 6.4 KB runs code
- templates/README.md 5.0 KB
- templates/search-config.template.py 13 KB runs code
- templates/streaming.template.py 12 KB runs code
- VALIDATION.md 7.1 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 438 lines · 56 tokens per session scan A 48a3456b566f
using-perplexity-platform is a skill published in the GitHub repository FortiumPartners/ensemble (11 stars, last pushed 1mo ago), licensed MIT. It adds 56 tokens to every session and 2,863 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
debugging-output-and-previewing-html-using-ray
Use when user says "send to Ray," "show in Ray," "debug in Ray," "log to Ray," "display in Ray," or wants to visualize data, debug output, or show diagrams in the Ray desktop application.
rust-system-calls
Guides using bunsys for system calls and file I/O in Rust. Use when implementing file operations, opening fds, or any syscall path instead of std::fs or libc.
write-a-prd
Create a PRD through user interview, codebase exploration, and module design, then submit as a GitHub issue. Use when user wants to write a PRD, create a product requirements document, or plan a new feature.
doncheli-context-health
Report the current state of the context window and recommend compression or cleanup actions. Activate when user mentions "context health", "context window", "how much context", "context full", "running out of context", "compress context".
mongoose-adapter
Wiring @kavo/mongoose into a Nest app — models as entity identities, ObjectId rendered as hex strings and id-keyed DTOs, declared soft delete, ref paths as relation and foreign key at once, and the cross-relation filter that is refused. Use when adding Kavo to a Mongoose/MongoDB project, or answering "how do I use…
task-control-doc
Use when the user wants a master control document for a large, complex, long-running, or multi-session task. Defines how to create a task control doc that captures background, mandatory reads, subtask breakdown, and self-contained work packages so each subtask can be executed in a fresh session with minimal context.