AI providers comparison

Perplexity API Platform vs xAI API

Prices, documented capabilities and limits from dated official sources, side by side. Unknowns remain unknown; different billing units do not establish a cost winner.

What the evidence answers

A reading of reviewed official documentation for Perplexity API Platform and xAI API. It is not a hands-on test, a ranking or a recommendation of one product.

Common buyer questions answered
5 requirements
Documented for one
0 requirements
Not verified for either
0 requirements
Prices
Not like-for-like yet

Price

A complete like-for-like price comparison is not established; the next steps say what is missing.

Common buyer questions answered

Even when labels match, check each source for differences in plans, units and scope.

API interfaces
Perplexity API Platform Orchestrator API, Agent API, Search API, Embeddings API, Decisions API
xAI API Responses API, Image and video generation, Files API, Batch API, Voice API, Tokenization, Model and account lookup
Model catalogue
Perplexity API Platform Agent API models come from third-party providers including OpenAI, Anthropic, Google, xAI, Z.AI, Moonshot AI and NVIDIA.
xAI API A separate catalogue for chat and image-understanding models lists modalities, aliases, token pricing and supported reasoning efforts.
Billing basis
Perplexity API Platform Orchestrator API usage is billed per token at each model’s published input and output rates, with no per-request fees.
xAI API Usage is priced per token, with token prices reported in USD cents per 100 million tokens.
Data controls
Perplexity API Platform Customer content is not used to train generative AI models by default; zero data retention is not the default and is available only to eligible customers under a written agreement.
xAI API By default the SDK sends store: false, asking that responses not be stored, unless the caller opts in; this differs from the API’s own default.
Availability
Perplexity API Platform API credits can be purchased through AWS Marketplace, and custom enterprise pricing is available through a sales enquiry.
xAI API A priority (or fast) service tier gives faster responses at a higher price.

Limits to check

  • Perplexity API Platform The Perplexity Python library describes synchronous and asynchronous clients.
  • xAI API The xAI Python SDK describes synchronous and asynchronous clients.

Not verified yet

Every compared requirement has evidence for at least one.

Not verified means our reviewed sources do not establish it. It does not mean a product lacks the capability or that it costs nothing.

Side-by-side evidence

Documented values with their sources and check dates; requirements the sources do not establish stay marked.

  • Documented as supported
  • Documented as unsupported
  • Not verified Sources do not establish it
  • Not applicable
Documented scope and limits; unverified dimensions remain unknown.
RequirementPerplexity API PlatformxAI API
Pricing
Usage-based API pricing
Usage-based API pricing
Who it is for
The Perplexity Python library describes access to the Perplexity REST API.

Verified Nov 3, 2026 · Perplexity API Platform: perplexity-sdk

The official xAI Python SDK describes access to xAI APIs.

Verified Nov 3, 2026 · xAI API: xai-sdk

Coverage limits
The Perplexity Python library describes synchronous and asynchronous clients.

Verified Nov 3, 2026 · Perplexity API Platform: perplexity-sdk

The xAI Python SDK describes synchronous and asynchronous clients.

Verified Nov 3, 2026 · xAI API: xai-sdk

API interfaces
Orchestrator API, Agent API, Search API, Embeddings API, Decisions API

Perplexity API pricing page (docs.perplexity.ai) captured 9 November 2026; prices in USD; supplier statement, not a hands-on test. These are the APIs with a pricing section on the page, not a complete API reference; features and rates differ by API.

Verified Nov 10, 2026 · Perplexity API Platform: perplexity-api-pricing-20261109b

Responses API, Image and video generation, Files API, Batch API, Voice API, Tokenization, Model and account lookup

Official TypeScript SDK README (xai-org/xai-sdk-ts, release v0.2.8, commit ef80b018, Apache-2.0) captured 9 November 2026; supplier documentation, not an API call, deployment or independent test. Lists what this SDK release covers, not every API the provider offers; the README marks the SDK experimental, so its interfaces may change before 1.0.

Verified Nov 11, 2026 · xAI API: xai-api-project

Model catalogue
Agent API models come from third-party providers including OpenAI, Anthropic, Google, xAI, Z.AI, Moonshot AI and NVIDIA.

Perplexity API pricing page (docs.perplexity.ai) captured 9 November 2026; prices in USD; supplier statement, not a hands-on test. Provider list only; the page links to a separate Agent API Models page for the individual models, which this capture does not include. The page also lists Perplexity-named embedding and decision models for other APIs.

Verified Nov 10, 2026 · Perplexity API Platform: perplexity-api-pricing-20261109b

A separate catalogue for chat and image-understanding models lists modalities, aliases, token pricing and supported reasoning efforts.

Official TypeScript SDK README (xai-org/xai-sdk-ts, release v0.2.8, commit ef80b018, Apache-2.0) captured 9 November 2026; supplier documentation, not an API call, deployment or independent test. Describes how the API and SDK expose model information; it does not name the currently available models. Check the provider’s model documentation for the live list.

Verified Nov 11, 2026 · xAI API: xai-api-project

Billing basis
Orchestrator API usage is billed per token at each model’s published input and output rates, with no per-request fees.

Perplexity API pricing page (docs.perplexity.ai) captured 9 November 2026; prices in USD; supplier statement, not a hands-on test. The same page prices the Agent API per token at each model’s published rates and lists separate charges: Search API $5.00 per 1,000 successful requests ($1.00 with Fast Search) and per-invocation Agent API tools (for example standard web search $0.0025). Per-model rates are on separate model pages that this capture does not include.

Verified Nov 10, 2026 · Perplexity API Platform: perplexity-api-pricing-20261109b

Usage is priced per token, with token prices reported in USD cents per 100 million tokens.

Official TypeScript SDK README (xai-org/xai-sdk-ts, release v0.2.8, commit ef80b018, Apache-2.0) captured 9 November 2026; supplier documentation, not an API call, deployment or independent test. The same README says the Batch API processes requests asynchronously at a reduced price and that the "priority" or "fast" service tier costs more; it states no actual rates. Current rates and tool, image, video and voice charges must be checked in the provider’s pricing documentation.

Verified Nov 11, 2026 · xAI API: xai-api-project

Data controls
Customer content is not used to train generative AI models by default; zero data retention is not the default and is available only to eligible customers under a written agreement.

Perplexity API Privacy & Security page (docs.perplexity.ai) captured 9 November 2026; supplier statement, not a hands-on test. The page says retention, use and security practices vary by API, model and account configuration, that third-party model providers may require limited retention, and that it does not modify the API Terms of Service, which control. The page also notes that certain APIs may be subject to product-specific terms.

Verified Nov 10, 2026 · Perplexity API Platform: perplexity-api-privacy-20261109b

By default the SDK sends store: false, asking that responses not be stored, unless the caller opts in; this differs from the API’s own default.

Official TypeScript SDK README (xai-org/xai-sdk-ts, release v0.2.8, commit ef80b018, Apache-2.0) captured 9 November 2026; supplier documentation, not an API call, deployment or independent test. Client behaviour of this SDK only. Retention, training use and other data terms of the service are governed by the provider’s terms and settings, which this capture does not cover.

Verified Nov 11, 2026 · xAI API: xai-api-project

Availability
API credits can be purchased through AWS Marketplace, and custom enterprise pricing is available through a sales enquiry.

Perplexity API pricing page (docs.perplexity.ai) captured 9 November 2026; prices in USD; supplier statement, not a hands-on test. Purchase channels only; no custom or enterprise price is stated. Rate limits and usage tiers are on a separate page that this capture does not include.

Verified Nov 10, 2026 · Perplexity API Platform: perplexity-api-pricing-20261109b

A priority (or fast) service tier gives faster responses at a higher price.

Official TypeScript SDK README (xai-org/xai-sdk-ts, release v0.2.8, commit ef80b018, Apache-2.0) captured 9 November 2026; supplier documentation, not an API call, deployment or independent test. Rates for the tier are on the provider’s Priority Processing page, which this capture does not include. Which models offer a fast deployment is not stated.

Verified Nov 11, 2026 · xAI API: xai-api-project

Coverage note

Publisher SDK README captured 3 November 2026; describes that SDK and API examples, not a live service test. Current models, prices, availability and service terms require confirmation.

Publisher SDK README captured 3 November 2026; describes that SDK and API examples, not a live service test. Current models, prices, availability and service terms require confirmation.

Next steps

  • Choose the exact Perplexity API Platform model first: its token rates depend on the model and service tier.
  • Choose the exact xAI API model first: its token rates depend on the model and service tier.

Commissions never change costs, eligibility or rankings.