> ## Documentation Index
> Fetch the complete documentation index at: https://dev-docs.trychainshift.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Perplexity

The `model` value is `PERPLEXITY`. Any behavior not listed here follows the [Supported models](https://dev-docs.trychainshift.ai/en/models.md) table as-is.

> [!NOTE]
>
> This model is available only to organizations with a separate agreement. Without access, it does not appear in the [supported models list](https://dev-docs.trychainshift.ai/en/api-reference/discovery/list-models.md), and if you include it in `models` when requesting a run, the entire request is rejected with `403` (`MODEL_NOT_GRANTED`). Even without access, you can still retrieve previously collected answers through the `model` filter of the statistics API.

## Where answers are collected

Perplexity answers are collected through **Perplexity's chat API**. With web search turned on, conditions are matched so that the results are equivalent to the search answers in the chat interface. Because the call does not go through the chat interface itself, the wording and details of an answer can differ from what you would see on screen for the same question.

* The prompt is sent verbatim as the question, and only one prompt is asked with no prior conversation.
* The answer body (`content`), cited sources (`sources`), and search queries performed while generating the answer (`fanouts`) are collected in the same form as other models.
* The run request's `region` and `location` are reflected in the answer.

## Model-specific behavior

* Fan-out is provided. The answer's `fanouts` is filled with the list of search queries.
* [Location-level collection](https://dev-docs.trychainshift.ai/en/models.md#supported-locations) (`location`), which is narrower than a region, is supported. If you specify `location` together with a model that does not support locations, the entire request is rejected with `400` (`LOCATION_NOT_SUPPORTED_FOR_MODEL`).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.