How to Use Sonar Pro in Grok
Sonar Pro fits research questions that require several steps and longer follow-ups. Compared with Sonar, it has a larger context window for more detailed searches.
Prompts to try with Sonar Pro in Grok
Copy an example into Grok, or ask in your own words.
Use Sonar Pro to compare PostgreSQL and MySQL for a small reporting application. Cover indexing, JSON queries, and replication in a concise table, citing official documentation and labeling version-dependent findings.
Use Sonar Pro to research what Microsoft and Google announced about accessibility in the past 90 days. Separate announced features from released features and include a dated source for each finding.
Ask Sonar Pro through Spiral to review the diff on this branch and list the three riskiest changes.
Get a second opinion from Sonar Pro on this function, then tell me what the call cost.
Summarize these release notes with Sonar Pro in five bullet points.
How to set up Sonar Pro in Grok
Pick the way that suits you. Each takes about two minutes.
Use the Grok connector
- Add a custom connector
In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.
https://api.spiral.ai/mcp
- Sign in to Spiral and approve
Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.
- Check that it is connected
Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.
Use the Spiral skill
- Send Grok this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Sonar Pro
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "openrouter", "model": "perplexity/sonar-pro", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Grok finds Sonar Pro on Spiral, shows the price and runs it.
Sonar Pro providers and prices
Spiral runs Sonar Pro through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.086509 per run at the default inputs. $3.90 per 1M input tokens, $19.50 per 1M output tokens.
Settings you can ask for
Ask Grok for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Top k | a whole number from 0 | ||
| Top p | 0 to 1 | ||
| Max tokens | 1 to 8000 | The most output tokens to generate. | |
| Temperature | 0 to 2 | ||
| Presence penalty | -2 to 2 | ||
| Frequency penalty | -2 to 2 |
Every API field of Perplexity: Sonar Pro is on its tool page: open its card above.
What can you do with Sonar Pro in Grok?
Turn a specific question into a brief you can check against cited sources. Ask for a clear time period, a short comparison, or an explanation matched to your knowledge.
Check release notes before an upgrade
Research official release notes for a specific software version. Summarize breaking changes, deprecations, and migration guidance with citations.
Prepare a prospect brief
Find a company's recent product announcements and public partnerships. Turn the evidence into a short meeting brief with dated sources.
Compare documented product features
Compare named products against a short feature checklist. Cite the documentation for each finding and mark anything the sources do not establish.
Build a weekly news digest
Summarize recent reporting on a tightly defined topic. Include publication dates and distinguish reported events from commentary.
Check claims before publication
Research a short list of factual claims for an article or presentation. Return supporting evidence, conflicting sources, and claims that remain unverified.
Find documentation for a technical question
Look up how a named library or platform documents a specific behavior. Include the applicable version and a citation for the answer.
Track competitor announcements
Review public announcements from a small set of competitors over a stated period. Summarize releases and partnerships without filling gaps with assumptions.
Create a sourced topic primer
Explain an unfamiliar technical or business topic for a defined audience. Pair the main concepts with sources readers can inspect next.
More on Sonar Pro and Grok
Overview
Sonar Pro in other agents
Questions about Sonar Pro in Grok
Can Grok use Sonar Pro?
Yes. Add Spiral to Grok as an MCP server, and Grok can find and run Sonar Pro like any built-in tool.
How much does Sonar Pro cost in Grok?
Up to $0.086509 per run at the default inputs. $3.90 per 1M input tokens, $19.50 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok plan is separate.
Do I need an OpenRouter account to use Sonar Pro in Grok?
No. Spiral runs Sonar Pro on its own OpenRouter account. You sign in to Spiral once and never paste a key.
How long does it take to set up Sonar Pro in Grok?
About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.
Does Grok wait while Sonar Pro runs?
Sonar Pro runs in the background. Grok starts the run, checks on it and gives you the text, json when it's ready.
What is Sonar best used for?
Use Sonar for focused factual questions and research summaries with citations. Useful tasks include checking a product announcement, finding documentation, and summarizing recent reporting.
When should I choose Sonar Pro?
Choose Sonar Pro when a question involves several research steps or longer follow-ups. Sonar is designed for quicker, more focused question answering.
Does a larger context window mean a longer answer?
Context size and answer length are different limits, and your prompt consumes part of the context. Sonar Pro has a 200,000-token context window but an 8,000-token completion limit.
Can I trust an answer because it has citations?
Citations give you evidence to inspect, but the answer can still contain errors. Open the supporting source and check that it backs the exact claim, date, and product version.
How should I phrase a research question?
Name the exact subject, time period, and comparison criteria. Ask for a defined result, such as a five-row table, and tell it to identify missing evidence.
Start using Sonar Pro in Grok
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Grok:
set up https://spiral.ai/SKILL.md


