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

# Gateway Models & Pricing

> The model catalog for the Perplexity Gateway API, with per-token pricing for models from Anthropic, OpenAI, Google, xAI, and Perplexity.

## Overview

Every model below is available through both Gateway endpoints — [Chat Completions](/api-reference/gateway-chat-completions-post) and [Messages](/api-reference/gateway-messages-post) — under the same `creator/model-name` id. Prices are in USD per 1 million tokens, and you are billed at the requested model's rates regardless of how the request is served.

For the live catalog, query [`GET /models`](/api-reference/gateway-models-get); the tables below show the current catalog.

<Note>
  Cached input is billed separately from fresh input: cache reads are billed at the discounted per-model rate shown in the "Cache read" column, and cache writes at the rate shown (or at the input rate where no dedicated write rate is listed). Reasoning tokens are billed at the output rate.
</Note>

## Anthropic Models

| Model                           |  Input |  Output | Cache write | Cache read |
| ------------------------------- | -----: | ------: | ----------: | ---------: |
| **`anthropic/claude-opus-5`**   | \$5.00 | \$25.00 |      \$6.25 |     \$0.50 |
| **`anthropic/claude-sonnet-5`** | \$2.00 | \$10.00 |      \$2.50 |     \$0.20 |

## OpenAI Models

| Model                      |  Input |  Output | Cache write | Cache read |
| -------------------------- | -----: | ------: | ----------: | ---------: |
| **`openai/gpt-5.6-sol`**   | \$5.00 | \$30.00 |      \$6.25 |     \$0.50 |
| **`openai/gpt-5.6-terra`** | \$2.50 | \$15.00 |     \$3.125 |     \$0.25 |
| **`openai/gpt-5.6-luna`**  | \$1.00 |  \$6.00 |      \$1.25 |     \$0.10 |

When a request's input exceeds **272K tokens**, these models switch to long-context rates for **both** input and output on that request:

| Model                      | Input above 272K | Output above 272K |
| -------------------------- | ---------------: | ----------------: |
| **`openai/gpt-5.6-sol`**   |          \$10.00 |           \$45.00 |
| **`openai/gpt-5.6-terra`** |           \$5.00 |           \$22.50 |
| **`openai/gpt-5.6-luna`**  |           \$2.00 |            \$9.00 |

<Tip>
  OpenAI models support `service_tier: "flex"`, which halves both input and output token rates when the request is served on the flex tier.
</Tip>

## Google Models

| Model                              |  Input | Output | Cache read |
| ---------------------------------- | -----: | -----: | ---------: |
| **`google/gemini-3.6-flash`**      | \$1.50 | \$7.50 |     \$0.15 |
| **`google/gemini-3.5-flash`**      | \$1.50 | \$9.00 |     \$0.15 |
| **`google/gemini-3.5-flash-lite`** | \$0.30 | \$2.50 |     \$0.03 |

## xAI Models

| Model              |  Input | Output | Cache read |
| ------------------ | -----: | -----: | ---------: |
| **`xai/grok-4.5`** | \$2.00 | \$6.00 |     \$0.30 |

When a request's input exceeds **200K tokens**, `xai/grok-4.5` switches to long-context rates for **both** input and output on that request: $4.00 input / $12.00 output.

## Perplexity-Hosted Models

Open-source models hosted by Perplexity — the `perplexity/` prefix reflects who serves the model, not who created it. Currently Moonshot AI's Kimi K3 and Z.AI's GLM 5.2:

| Model                    |  Input |  Output | Cache read |
| ------------------------ | -----: | ------: | ---------: |
| **`perplexity/kimi-k3`** | \$3.00 | \$15.00 |     \$0.30 |
| **`perplexity/glm-5.2`** | \$1.40 |  \$4.40 |     \$0.14 |

## Listing Models Programmatically

```bash theme={null}
curl 'https://api.perplexity.ai/router/v1/models' \
  -H "Authorization: Bearer $PERPLEXITY_API_KEY" | jq
```

The response lists every available model sorted by id, including each model's base token prices — the endpoint is the self-describing source for the catalog and base rates, while long-context thresholds and flex-tier multipliers appear only in the tables above. Requesting a model that is not in the catalog returns a `400` naming the invalid model — the catalog is also the allowlist.

## Next Steps

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/docs/gateway/quickstart">
    Make your first Gateway API call.
  </Card>

  <Card title="Pricing & Billing" icon="receipt" href="/docs/getting-started/pricing">
    How credits, billing, and usage tiers work across the platform.
  </Card>
</CardGroup>
