Perplexity through Squiid
Sonar models that answer from live web results with citations. Perplexity is on the Squiid roadmap.
What Perplexity is
Perplexity's API serves the Sonar model family, which differs from a plain LLM in that every answer is grounded in a live web search performed as part of the request. The response includes the sources it used, and options let you restrict recency or domains. There are also deeper research and reasoning variants that run longer multi-step searches before answering. Structured output and search filters let you constrain answers to particular domains or to the last week, which is what turns it from a demo into something you can put in a product.
This is the service a vibe-coded app reaches for when the model's training cutoff is the problem. Competitor monitoring, a research panel inside a product, pre-call briefings on a company, news digests and anything where a user will ask about last week all work better through Sonar than through a frontier model with a search tool bolted on, because the retrieval and the citation formatting are already handled. It also removes a whole class of code your agent would otherwise write: a search client, a scraper, a deduplication step and a prompt that tries to keep the model from inventing sources.
Why connect it through Squiid
Perplexity bills a per-request search component as well as tokens, which makes it easy to misjudge cost in a loop. Squiid meters both against your prepaid credits at Perplexity's listed rates and stops at zero, and shows the spend per day in the dashboard. Requests go to https://api.squiid.io/v1/perplexity/... with Authorization: Bearer $SQUIID_API_KEY, OpenAI-compatible clients work by base URL swap (gateway convention), and the total appears on your single monthly invoice. Daily caps are useful here, because a research agent left running overnight can make a lot of searches.
- One account, one key, one bill, one dashboard. Perplexity sits beside every other service your project uses, on the same invoice and the same credit balance.
- Key custody. Squiid holds the Perplexity credentials. Your code carries
SQUIID_API_KEY, so PERPLEXITY_API_KEY, PPLX_API_KEY, PERPLEXITY_BASE_URL never land in a repository, a preview deployment or an agent’s context. - Metering you can see. Every call is counted per service and per day, so you know what Perplexity costs before the month ends.
- Pause on zero. When prepaid credits run out the gateway stops authorizing usage instead of running up a bill you did not fund.
- One rotation. Rotating the Squiid key cuts off every agent, worker and deployment at once, with no provider key to hunt down.
What you get
- Sonar models with live web grounding
- Citations returned with every answer
- Search and token components metered together
- OpenAI-compatible calls through the gateway
- Perplexity list pricing, no markup
How to connect Perplexity
One variable replaces the provider credentials this service would normally need. Requests go to the gateway and the official SDKs work by pointing their base URL at it (gateway convention).
# .env
# replaces PERPLEXITY_API_KEY, PPLX_API_KEY, PERPLEXITY_BASE_URL
SQUIID_API_KEY=sq_live_xxxxxxxxxxxxxxxxxxxxxxxx
# every request: https://api.squiid.io/v1/perplexity/...
# header: Authorization: Bearer $SQUIID_API_KEY
Add it in your dashboard
Open the Squiid catalog, add Perplexity and fund credits. Access is instant and metered per request.
Put the one key in your env
Add SQUIID_API_KEY to .env and delete PERPLEXITY_API_KEY, PPLX_API_KEY, PERPLEXITY_BASE_URL. Nothing else from Perplexity needs to exist in your project.
Point your agent at it
Claude Code, Cursor and Codex read the same variable and call https://api.squiid.io/v1/perplexity/. Agents use Sonar as a one-call replacement for search plus summarise, then store the returned citations alongside the answer.
Pricing through Squiid
Perplexity charges per token plus a per-request search fee that varies by model and search depth, at the provider's listed price. Squiid passes that through at par: one dollar of prepaid credit is one dollar of Perplexity usage, with no markup and no per-request margin.
Perplexity has no subscription attached on Squiid today. If a plan is required for a feature you need, it passes through at the provider’s listed price with no Squiid fee.
Squiid adds no markup to provider prices. There is a free plan at $0 a month with a 15% fee when you top up credits, Solo at $19.97 a month with a top-up fee that starts at 8% and falls to 3.5% as your spend grows, Team from $29.97 a seat a month with the same ladder one point lower, and Custom with a rate of 3% or less. Credits are prepaid, so Perplexity usage stops when the balance reaches zero rather than producing an invoice you did not fund. Auto top-up with a cap keeps production running without handing anyone an open-ended card.
If you leave
Nothing to move: Perplexity is usage-metered, so leaving means creating your own Perplexity key and pointing the client at it. Squiid never owns your code, your schema or your domain, and the gateway speaks Perplexity's own API, so the client change is a base URL. The handover page lists what happens for every provider in the catalogue.
Works with every coding agent
Perplexity through Squiid is just an HTTP call with a bearer token, so every agentic coding tool can use it with the single key already in your environment:
- Claude Code
- Cursor
- ChatGPT
- Codex
- Grok
- Gemini CLI
- GitHub Copilot
- Windsurf
- Perplexity
- Devin
- Replit
- v0
- Lovable
- Cline
Vibe coding a feature on Perplexity usually means asking for it in plain language and letting the agent write the integration. Because the key is Squiid’s rather than the provider’s, it can do that without ever holding a credential that could be leaked, logged or committed.
Related services
Tavily
Web search and scrapingSearch API designed for LLM agents, returning clean ranked context
LiveInstant EXExa
Web search and scrapingNeural web search that finds pages by meaning, with full content
Next upInstant BSBrave Search
Web search and scrapingIndependent web search index with a privacy-focused API
Next upInstantOpenAI
LLM APIsGPT models, embeddings, images and realtime voice over one API
LiveInstantFirecrawl
Web search and scrapingTurn any website into clean markdown or structured data for LLMs
LiveInstantQuestions people ask
Is this the same as a Perplexity Pro subscription?
No. Squiid connects the Sonar developer API that your application calls and meters it per request. Perplexity Pro is a separate consumer product.
Does Squiid mark up Perplexity's search fee?
No. Both the token charge and the per-request search charge pass through at Perplexity's list price against your credits.
Can I get citations through the gateway?
Yes. The citation fields in Perplexity's response are returned to your app unchanged.
Should I use Perplexity or Tavily for agent search?
Perplexity returns a written answer with citations. Tavily returns ranked search results for you to feed into your own model. Many apps use both, on one Squiid key.
Can Perplexity the coding agent use this?
Perplexity's assistant and the Sonar API are different surfaces. Any agent, including Perplexity's, can write code that calls Sonar through your Squiid key.
Connect Perplexity with one key.
Perplexity's Sonar API answers questions using live web search and returns citations with the response. Through Squiid it is metered per request and per token at Perplexity's list price.