Model selection guide for perplexity-cli ask and chat commands. Use when choosing between sonar, sonar-pro, sonar-reasoning, and sonar-deep-research.
73
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
The --model flag (or "model" in JSON input) controls which Sonar model handles your question.
Applies to ask and chat. Default is sonar.
| Model | Speed | Cost | Best for |
|---|---|---|---|
sonar | Fastest | Lowest | Quick factual questions, high-volume agent queries |
sonar-pro | Medium | Medium | Deep analysis, comparisons, multi-part questions |
sonar-reasoning | Slow | High | Complex analytical or logical questions |
sonar-deep-research | Slowest | Highest | Extensive research with multiple search rounds |
sonar (default)Use for:
perplexity-cli ask "What is the latest LTS version of Node.js?"
perplexity-cli ask "What does HTTP 429 mean?"
perplexity-cli search "Python 3.13 release date"sonar-proUse for:
perplexity-cli ask "Compare PostgreSQL vs CockroachDB for a multi-region SaaS" --model sonar-pro
perplexity-cli ask "What are the tradeoffs of event sourcing vs CQRS?" --model sonar-pro
perplexity-cli ask "Summarize recent changes in Kubernetes 1.30" --model sonar-pro --recency monthsonar-reasoningUse for:
--reasoning high for best resultsperplexity-cli ask "What is the time complexity of Dijkstra's algorithm and why?" \
--model sonar-reasoning --reasoning high
perplexity-cli ask "Given a distributed system with eventual consistency, explain why this race condition occurs: ..." \
--model sonar-reasoning --reasoning highsonar-deep-researchUse for:
perplexity-cli ask "What does the current research literature say about transformer attention mechanisms and their computational limits?" \
--model sonar-deep-research --mode academic
perplexity-cli ask "Provide a comprehensive overview of WebAssembly ecosystem tools as of 2025" \
--model sonar-deep-research--reasoning)Only meaningful with sonar-reasoning and sonar-pro. Ignored by other models.
| Value | Use when |
|---|---|
minimal | Speed is critical; shallow reasoning is fine |
low | Slightly better than default; marginal cost increase |
medium | Balanced — good default for sonar-reasoning |
high | Complex questions where correctness matters more than speed |
# Quick estimation
perplexity-cli ask "Rough complexity of merge sort?" --model sonar-reasoning --reasoning minimal
# Deep analysis
perplexity-cli ask "Analyze the correctness of this distributed locking algorithm: ..." \
--model sonar-reasoning --reasoning highIs it a simple factual question?
→ YES: sonar (fast, cheap)
→ NO:
Does it need logical/mathematical reasoning?
→ YES: sonar-reasoning + --reasoning high
→ NO:
Does it need comprehensive coverage from many sources?
→ YES: sonar-deep-research
→ NO: sonar-pro (deep analysis, balanced speed/cost)For agents making many queries in a loop:
# Use sonar for bulk/filter queries
for topic in "Python" "Rust" "Go" "TypeScript"; do
perplexity-cli ask "Latest stable version of $topic?" | jq -r '.content'
done
# Upgrade to sonar-pro only for the synthesis step
perplexity-cli ask "Given these versions, which language has the most active recent development?" \
--model sonar-pro \
--system "Be brief. One paragraph max."5624eaa
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.