Learning resourcesReviewed · Perplexity

Perplexity Agent API Models

Perplexity’s Agent API Models page is a reference for developers choosing AI models, but prices and supported features differ between models. It explains model identifiers, token and cache pricing, processing tiers and fallback configuration through Python, TypeScript and HTTP examples.

Researched 24 Nov 2026

In short.

Perplexity’s Agent API Models page is a reference for developers comparing hosted AI models, but a shared interface does not guarantee matching features or costs. It documents model identifiers, token pricing, caching, processing tiers and fallback lists. Unsupported tiers silently revert to default processing, some prices have explicit expiry dates, and the displayed response has an unexplained mismatch with the requested output-token budget. Model quality, speed and runtime behavior are not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete page at [https://docs.perplexity.ai/docs/agent-api/models.md], captured at 2026-11-24T12:45:50.144Z, source revision sha256:624070f319a147040e0ad6a1d0a4f31302621d99d4c60c6d34c052549aa1cb88. Coverage includes every provider table, pricing and caching notices, access restrictions, service-tier rules, request and response examples, fallback configuration and linked-feature descriptions. The documentation index and all linked pages are excluded. Nothing was executed; live availability, billing behavior, performance and reliability are not assessed.

The overview

Identity

This is Perplexity’s model and pricing reference for its Agent API at [https://docs.perplexity.ai/docs/agent-api/models.md]. It describes access to models from multiple providers through one interface.

The page lists 30 model identifiers across nine provider headings: Anthropic, OpenAI, Google, xAI, Z.AI, DeepSeek, Moonshot AI, NVIDIA and Perplexity. It is documentation for choosing and configuring hosted models; it does not supply model weights or an application to install.

Assessment

The page is useful for narrowing a model shortlist, estimating token charges and understanding configuration rules before integrating the API. Its strongest details concern operational surprises: context-dependent prices, separate cache charges and service tiers that can be ignored without rejecting a request.

It provides little basis for deciding which model produces the best answers for a particular task. Provider descriptions such as balanced, fastest or highest reasoning are not accompanied by comparative benchmarks.

Users

The main audience is developers building applications that generate answers through Perplexity, particularly applications that may switch providers or configure fallback models. Developers managing API spending can use the cache, context-length and tier rules to refine cost estimates.

Beginners get concrete request examples in three languages or interfaces, but need basic familiarity with API keys and programming or HTTP requests. Experienced developers gain configuration details, while still needing model-specific documentation for capability compatibility.

Capabilities

The reference covers selecting a model, setting an output-token budget, choosing supported processing tiers, reading usage information and supplying an ordered fallback list. Its response example contains web search results alongside generated text and itemized usage.

Some model-specific details are included. Kimi K3 accepts six reasoning-effort labels, with minimal mapped to low effort and xhigh and max mapped to maximum effort. NVIDIA Nemotron 3.5 Super is described as text-input-only, with a 1,048,576-token context window and support for up to 131,072 output tokens.

Web search, finance search, effort presets and structured output controls have linked guides, but their detailed configuration is not established on this page.

Using it

Requirements

The HTTP example requires an API key supplied through the PERPLEXITY_API_KEY environment variable and sent in an Authorization: Bearer header. Integration requires an HTTP client or one of the illustrated SDKs. Account creation, credential provisioning, billing prerequisites and regional availability are not explained.

Claude Fable 5.2 specifically requires non-Zero Data Retention model access, requested through api@perplexity.ai. The page does not establish eligibility or approval times. Reasoning and tool support must be checked for each model because the page explicitly warns that features vary.

Mechanism

A request supplies model for one model or models for an ordered fallback chain. The API is documented to try the next model when an earlier one fails or is unavailable. Failure categories, retry timing and behavior after partial output are not specified.

Default processing applies when service_tier is omitted or set to auto or default. Supported flex processing costs half the listed token rates; priority costs twice those rates, and fast is an alias for priority. For a fallback list, every model must support the requested tier. Otherwise, the API ignores it and uses default processing. The response reports the tier that actually served the request.

Prompt caching reuses previously cached input tokens at a cache-read rate. Tokens written to the cache use the cache-write rate instead of the input rate. Where no separate cache-write price is listed, writes are charged at the input rate.

Setup

The Python example imports Perplexity from perplexity; the TypeScript example imports it from @perplexity-ai/perplexity_ai. Both create a client and call responses.create with model, input and max_output_tokens, then read the response identifier and output_text. Installation commands and SDK versions are not supplied.

The direct HTTP example sends a POST request to [https://api.perplexity.ai/v1/agent] with bearer authentication, a Content-Type: application/json header and the same three request fields. The shell example uses jq to display the response.

Example

The generation example selects openai/gpt-5.6-sol, asks for an explanation of supervised versus unsupervised learning and sets max_output_tokens to 300. The displayed response contains search results, a generated explanation and usage charges. It reports 657 output tokens, which exceeds the requested budget; the page does not explain this discrepancy.

The fallback example supplies openai/gpt-5.6-sol, anthropic/claude-sonnet-5-5 and google/gemini-4-hydrogen in that order, with an 8,192-token output budget. These are documentation examples, not execution results establishing successful requests or failover.

Assessment & evidence

Limitations

There are no comparative quality benchmarks, latency measurements, availability guarantees, rate limits or complete feature matrices. Most models’ context windows are not specified; a pricing boundary such as 272,000 tokens should not be interpreted as a maximum context size.

The page says omitting max_output_tokens can permit up to 128,000 output tokens per generation, capped by model support. An explicit value supplies a total output-token budget across the run; an effort level or saved profile may also supply a budget. The unexplained 300-versus-657-token example limits confidence in the example’s consistency.

No code or requests were executed. Actual authentication, model availability, cache behavior, billing, output-budget enforcement and fallback reliability are not assessed.

Fit rationale

The page supports configuration and budgeting decisions because it connects exact model identifiers with pricing and request behavior. A shared request interface could simplify comparing providers, but it does not establish equivalent answers, tool support or reasoning behavior.

Fallback and discounted processing require particular care together. In the documented mixed-provider fallback example, the Anthropic and Google entries do not list flex support, so requesting flex would revert the chain to default processing under the stated rules. A low listed token price also cannot establish cost per useful answer without knowing token consumption and task quality.

Alternatives

For ranked web results rather than a generated answer, the page points to Perplexity’s Search API at POST /search. It takes no model parameter and bills per successful request rather than per token. The request price and detailed behavior are not supplied here.

The model tables link to provider documentation for further capability information. Direct-provider access is a comparison to investigate, but this page does not establish whether it is cheaper, faster or feature-equivalent to Perplexity access.

Evidence

The factual basis is the complete Perplexity documentation page at [https://docs.perplexity.ai/docs/agent-api/models.md]. Its model tables, explanatory notes and request examples establish what the publisher documents, while its response example illustrates an output format and charges.

The example is not independent evidence of performance or successful execution. Linked provider specifications and separate feature guides are outside this page, so their contents do not establish additional capabilities or terms here.

Access & freshness

Costs

Prices are published in US dollars per million tokens and may differ from direct-provider prices. For openai/gpt-6.2-sol at input lengths up to 272,000 tokens, the listed rates are $2 for input, $10 for output, $0.10 for cache reads and $2.50 for cache writes. Above that boundary, they become $4, $15, $0.20 and $5 respectively. Other models have their own rates and thresholds.

As a calculated illustration, 1,000 uncached input tokens and 300 output tokens on openai/gpt-6.2-sol at default processing cost $0.005 in token charges. This uses the lower context-length rates and excludes tools and any other charges. Supported flex or priority processing would multiply those token charges by 0.5 or 2.

The Google section and Kimi K3 note explicitly bill reasoning tokens at output-token rates. The sample response itemizes a $0.0025 tool-call charge, but the page provides no general tool-price schedule; that example does not establish a universal search fee. Typical total request cost, free allowances, minimum spending and other account charges are unknown.

Rights and data handling

The page supplies no explicit licence for redistributing its documentation or code examples. It also does not establish model-use restrictions, output ownership or permission to redistribute model weights. Commercial-use and redistribution rights therefore remain unknown from this page.

The non-Zero Data Retention requirement for Claude Fable 5.2 is a specific data-handling consideration. Retention duration, training use, processing locations and retention settings for the other listed models are not stated.

Freshness

The page was captured on November 24, 2026. It gives no explicit page revision date or SDK version.

Gemini 4 Argon and Gemini 4 Carbon rates are marked introductory through November 30, 2026. Gemini 3.8 Flash and Gemini 3.7 Flash rates apply through December 31, 2026. Prices after those dates are unknown from this page, and the other listed rates have no stated duration guarantee.

Practical next steps

Choose a model identifier based on required capabilities, then check its model-specific documentation before integration. Confirm data-handling terms, particularly if considering Claude Fable 5.2, and refresh any time-limited prices before budgeting.

Set an explicit output-token budget and confirm that every fallback model supports the intended service tier. Inspect the returned service_tier and usage fields rather than assuming the requested tier was honored. Include cache, reasoning and tool charges in estimates.

Before relying on the API for a production workload, resolve the example’s output-budget discrepancy and assess representative answer quality, latency, budget enforcement and failover behavior. Those outcomes remain unknown.

Evidence for this report

selected-page.txtselected · checked 2026-11-24