Compute Comparison
vs
All providers →

Perplexity vs xAI: Token Pricing, Speed & Intelligence

Full comparison of Perplexity and xAI — live token pricing, latency, throughput, context window, strengths, weaknesses, and best use cases. Rates sourced from public APIs — verify before use.

Perplexity

Agent API, Router API, Search API, Embeddings API — Sonar deprecated Sept 27, 2026

Perplexity has restructured its API platform in 2026. Sonar Chat Completions is now the Agent API, which provides access to third-party models (OpenAI, Anthropic, Google, xAI, Z.AI, Moonshot AI, NVIDIA) at direct provider rates with no markup. The Router API routes requests across models with per-token billing. The Search API provides real-time web retrieval billed per request. The Embeddings API offers pplx-embed-v1 models. Sonar is deprecated September 27, 2026. Check docs.perplexity.ai/docs/getting-started/pricing for current rates.

ResearchReal-time dataFact-checkingNews summarisationAgentic researchRAG pipelinesMulti-provider routing
Proprietary models

xAI

Grok 4.6 — SpaceXAI with Imagine Image 2.0, Voice Transcribe 2.0, and 500K context

xAI (operating as SpaceXAI) builds the Grok model family. Grok 4.6 is the current flagship with a 500K token context window. The September 2026 platform includes Imagine Image 2.0, Imagine Video 1.5, Voice API (speech-to-speech, TTS, STT), and Grok Voice Transcribe 2.0. Available on Azure AI Foundry, Oracle OCI, and Google Cloud Vertex. Check x.ai/api for current rates.

Real-time dataReasoningVisionImage generationVideo generationVoice AIChat
Proprietary models

Key metric comparison

Cheapest input ($/1M)

$1.00

$0.20

▲ better

Cheapest output ($/1M)

$1.00

$0.50

▲ better

Peak throughput

80 tok/s

400 tok/s

▲ better

Best latency (TTFT)

400ms

180ms

▲ better

Intelligence score

82/100

93/100

▲ better

Context window

128K

200K

▲ better

Live token pricing

Perplexitylive pricing

← Swipe to see all columns

ModelInputOutput
sonar-pro$3.00EST Jul 2026$15.00
sonar$1.00EST Jul 2026$1.00
sonar-reasoning-pro$2.00EST Jul 2026$8.00
sonar-reasoning$1.00EST Jul 2026$5.00
sonar-deep-research$2.00EST Jul 2026$8.00
xAIlive pricing

← Swipe to see all columns

ModelInputOutput
grok-3$3.00EST Jul 2026$15.00
grok-3-mini$0.30EST Jul 2026$0.50
grok-4-0709$3.00EST Jul 2026$15.00
grok-4-7$2.00EST Oct 2026$6.00
grok-3-fast$5.00EST Jul 2026$25.00

Strengths and weaknesses

Perplexity

Agent API: access OpenAI, Anthropic, Google, xAI, Z.AI, Moonshot AI, NVIDIA at direct provider rates
Search API: real-time web retrieval with advanced filtering
Router API: intelligent model routing with per-token billing at model rates
Embeddings API: pplx-embed-v1 models for semantic search and RAG
Agent API tools: web_search, fetch_url, people_search, sandbox
Sonar Deep Research for multi-step research with citations
Sonar deprecated Sept 27, 2026 — migration required
Agent API is a pass-through — no proprietary frontier model at this tier
No vision or multimodal support on Sonar models

xAI

Grok 4.6: competitive frontier pricing — check live table for current rates
500K token context window
Real-time X/Twitter data and web search grounding
Imagine Image 2.0 and Imagine Video 1.5 for multimodal generation
Voice API: speech-to-speech, TTS, and STT under one key
Available on Azure AI Foundry, Oracle OCI, and Google Cloud Vertex
No open-weight models — full vendor lock-in
Smaller ecosystem and fewer integrations than OpenAI
Limited model selection compared to frontier competitors

Key differentiators

Perplexity

An API platform combining real-time web search, multi-provider model routing (OpenAI, Anthropic, Google, xAI at direct rates), and purpose-built research tools under one key.

xAI

Grok 4.6 combines frontier-tier intelligence with real-time X/Twitter grounding, a 500K context window, and a full multimodal platform (Imagine Image 2.0, Imagine Video 1.5, Voice API).

Frequently asked questions

Perplexity FAQs

What APIs does Perplexity offer in 2026?

Perplexity offers four APIs: Agent API (multi-step agentic tasks with third-party models at direct provider rates), Router API (intelligent model routing), Search API (real-time web retrieval, per-request billing), and Embeddings API (pplx-embed-v1 models). Check docs.perplexity.ai/docs/getting-started/pricing for current rates.

Is the original Sonar model still available?

No. The original Sonar Chat Completions API is deprecated as of September 27, 2026. It has been replaced by the Agent API. Migrate to the Agent API for continued access to search-augmented LLM capabilities.

What is the Perplexity Agent API?

The Agent API provides access to third-party models from OpenAI, Anthropic, Google, xAI, Z.AI, Moonshot AI, and NVIDIA at direct provider rates with no markup. It includes tools: web_search, fetch_url, people_search, and sandbox. Check docs.perplexity.ai for current tool rates.

xAI FAQs

What is Grok 4.6 and how much does it cost?

Grok 4.6 is xAI's current flagship model with a 500K token context window, vision, function calling, and real-time web and X/Twitter access. Check x.ai/api for current per-token rates.

What is the xAI Imagine API?

The Imagine API offers image and video generation via Imagine Image 2.0 and Imagine Video 1.5. Both are available under the same API key as Grok text models. Check x.ai/api for current rates.

What is the xAI Voice API?

The Voice API includes speech-to-speech, text-to-speech, and speech-to-text (REST and streaming). Grok Voice Transcribe 2.0 was released September 2026. Check x.ai/api for current rates.

Provider resources

Key strengths compared

Perplexity

  • Agent API: access OpenAI, Anthropic, Google, xAI, Z.AI, Moonshot AI, NVIDIA at direct provider rates
  • Search API: real-time web retrieval with advanced filtering
  • Router API: intelligent model routing with per-token billing at model rates
  • Sonar deprecated Sept 27, 2026 — migration required
  • Agent API is a pass-through — no proprietary frontier model at this tier

xAI

  • Grok 4.6: competitive frontier pricing — check live table for current rates
  • 500K token context window
  • Real-time X/Twitter data and web search grounding
  • No open-weight models — full vendor lock-in
  • Smaller ecosystem and fewer integrations than OpenAI

Key weaknesses compared

Perplexity

  • Sonar deprecated Sept 27, 2026 — migration required
  • Agent API is a pass-through — no proprietary frontier model at this tier
  • No vision or multimodal support on Sonar models

xAI

  • No open-weight models — full vendor lock-in
  • Smaller ecosystem and fewer integrations than OpenAI
  • Limited model selection compared to frontier competitors

Provider category context

Perplexity is a inference api, founded in 2022. xAI is a frontier lab, founded in 2023. Perplexity as an inference API provider hosts open-weight models — typically offering lower prices for equivalent capability tiers. xAI as a frontier lab trains and serves proprietary models with capabilities not available elsewhere.

How to choose between them

Choose Perplexity if you need agent api: access openai, anthropic, google, xai, z.ai, moonshot ai, nvidia at direct provider rates. Choose xAI if you need grok 4.6: competitive frontier pricing — check live table for current rates. For high-volume production workloads, run a cost comparison using the token pricing table above with your actual prompt/completion token ratio — the cheapest provider depends heavily on your input-to-output token ratio.