Perplexity API
Perplexity API is Perplexity AI's programmatic interface for developers — tracked here as part of TheLLMWiki's index of 27 public AI APIs. This page is a starting point for evaluating Perplexity API: what models it serves, how to get started, where to find live pricing, and how it stacks up against comparable APIs from other vendors.
Using Perplexity API
Like most model APIs, Perplexity API bills per token, often offers a prompt-caching or batch discount on repeated or non-urgent workloads, and documents rate limits and authentication in Perplexity AI's own developer docs — always the source of truth for current pricing and limits. Use this page as an index of what Perplexity API serves and how it fits into the wider Perplexity AI ecosystem, not as a live pricing reference.
Most teams start by prototyping directly against Perplexity API using the vendor's official SDK, then move to production once they've confirmed latency, cost per request at real volume, and output quality on their actual prompts — not a public benchmark.
A practical path to your first Perplexity API call
- Create an account and generate an API key from Perplexity AI's developer console
- Install the official SDK for your language rather than calling raw HTTP where one exists
- Start with a small, cheap model in the family to validate your integration before switching to the flagship
- Set a hard budget alert before running anything at real volume
- Read the rate-limit documentation before you hit it in production
How Perplexity API is typically billed
Most APIs in this category bill per million tokens, split into an input rate and a (usually higher) output rate, with a separate, cheaper rate for cached or repeated input. Some also offer a batch tier at a discount for non-urgent, asynchronous workloads. Because these numbers change with almost every model update, always confirm the current rate on Perplexity AI's official pricing page before estimating a production budget — treat any specific number you see elsewhere, including summaries like this one, as a starting point rather than a quote.
Perplexity API, answered
What does Perplexity API give you access to?
Programmatic access to Perplexity AI's hosted models — see Perplexity AI's documentation for the current lineup.
Is pricing on this page current?
Always confirm against Perplexity AI's live pricing page before budgeting — API pricing changes with nearly every model release.
How does Perplexity API compare to other APIs?
See our comparison hub for head-to-head breakdowns across vendors, or the related APIs listed above.
Do I need a business account to use this API?
Most providers let individual developers sign up directly with a personal account; enterprise agreements are usually only needed for volume discounts, SLAs, or dedicated support.
What's the fastest way to estimate my costs?
Run a representative sample of your real requests, note the average input and output token count per request, then multiply by the current published rate — not a rough guess based on word count.
Building on Perplexity API? Make sure your brand is cited too.
See exactly how ChatGPT, Gemini, Claude and six other engines currently describe your brand — in under two minutes.