# \#api

**URL:** https://community.perplexity.ai/tag/api/16.md

[Latest](https://community.perplexity.ai/latest.md) · [Categories](https://community.perplexity.ai/categories.md) · [Tags](https://community.perplexity.ai/tags.md)

---

## [Keep support for Sonar-pro on the Agents API](https://community.perplexity.ai/t/keep-support-for-sonar-pro-on-the-agents-api/6172)

<div class="topic-metadata">

**Author:** [@dev](https://community.perplexity.ai/u/dev)\
**Replies:** 1\
**Last updated:** [September 25, 2026, 1:39pm UTC](https://community.perplexity.ai/t/keep-support-for-sonar-pro-on-the-agents-api/6172 "2026-09-25T13:39:38Z")

</div>

Pre-flight checklist This is about the Perplexity API, not the Perplexity app, Computer, Comet, or web UI. I have removed API keys, secrets, and private data. I have included enough information for someone else to re…

---

## [Contextualized Embeddings endpoint (/v1/contextualizedembeddings) rate-limits per chunk instead of per request](https://community.perplexity.ai/t/contextualized-embeddings-endpoint-v1-contextualizedembeddings-rate-limits-per-chunk-instead-of-per-request/6184)

<div class="topic-metadata">

**Author:** [@dbrickner](https://community.perplexity.ai/u/dbrickner)\
**Replies:** 1\
**Last updated:** [September 24, 2026, 6:43pm UTC](https://community.perplexity.ai/t/contextualized-embeddings-endpoint-v1-contextualizedembeddings-rate-limits-per-chunk-instead-of-per-request/6184 "2026-09-24T18:43:24Z")

</div>

Pre-flight checklist This is about the Perplexity API, not the Perplexity app, Computer, Comet, or web UI. I have removed API keys, secrets, and private data. I have included enough information for someone else to re…

---

## [Introducing Fast Search in the Perplexity Search API](https://community.perplexity.ai/t/introducing-fast-search-in-the-perplexity-search-api/6195)

<div class="topic-metadata">

**Author:** [@pplx-announcements](https://community.perplexity.ai/u/pplx-announcements)\
**Replies:** 0\
**Last updated:** [September 24, 2026, 6:43pm UTC](https://community.perplexity.ai/t/introducing-fast-search-in-the-perplexity-search-api/6195 "2026-09-24T18:43:16Z")

</div>

Fast Search runs on Photon, our new Rust-based retrieval and ranking service that we built with a small team of engineers and hundreds of agents. It returns 95% of search results in 230 ms or less. How we built Photon:…

---

## [Standard embeddings — x-ratelimit-limit meters input texts, not requests; documented 512-text batch unreachable at Tier 1](https://community.perplexity.ai/t/standard-embeddings-x-ratelimit-limit-meters-input-texts-not-requests-documented-512-text-batch-unreachable-at-tier-1/5914)

<div class="topic-metadata">

**Author:** [@dbrickner](https://community.perplexity.ai/u/dbrickner)\
**Replies:** 5\
**Last updated:** [September 23, 2026, 8:14pm UTC](https://community.perplexity.ai/t/standard-embeddings-x-ratelimit-limit-meters-input-texts-not-requests-documented-512-text-batch-unreachable-at-tier-1/5914 "2026-09-23T20:14:05Z")

</div>

Pre-flight checklist This is about the Perplexity API, not the Perplexity app, Comet, or web UI. I have removed API keys, secrets, and private data. I have included enough information for someone else to reproduce th…

---

## [Unreachable RPM values on Agent API Rate Limits docs table](https://community.perplexity.ai/t/unreachable-rpm-values-on-agent-api-rate-limits-docs-table/6155)

<div class="topic-metadata">

**Author:** [@dev](https://community.perplexity.ai/u/dev)\
**Replies:** 1\
**Last updated:** [September 20, 2026, 5:15pm UTC](https://community.perplexity.ai/t/unreachable-rpm-values-on-agent-api-rate-limits-docs-table/6155 "2026-09-20T17:15:19Z")

</div>

Pre-flight checklist This is about the Perplexity API, not the Perplexity app, Computer, Comet, or web UI. I have removed API keys, secrets, and private data. I have included enough information for someone else to re…

---

## [API function for Max users: token balance, history of usage, refill settings](https://community.perplexity.ai/t/api-function-for-max-users-token-balance-history-of-usage-refill-settings/5938)

<div class="topic-metadata">

**Author:** [@paulfxyz](https://community.perplexity.ai/u/paulfxyz)\
**Replies:** 4\
**Last updated:** [September 20, 2026, 3:11am UTC](https://community.perplexity.ai/t/api-function-for-max-users-token-balance-history-of-usage-refill-settings/5938 "2026-09-20T03:11:46Z")

</div>

Hi guys, I’d like to request an API function inside your (Max) account. The API should be able to retrieve the current balance of tokens (for Computer), full history of token usage per projects and tasks, and eventually…

---

## [Building AI Research Automation Workflows with Perplexity API](https://community.perplexity.ai/t/building-ai-research-automation-workflows-with-perplexity-api/6140)

<div class="topic-metadata">

**Author:** [@codeautomatio](https://community.perplexity.ai/u/codeautomatio)\
**Replies:** 2\
**Last updated:** [September 19, 2026, 11:21am UTC](https://community.perplexity.ai/t/building-ai-research-automation-workflows-with-perplexity-api/6140 "2026-09-19T11:21:30Z")

</div>

Hello Perplexity community, I am exploring AI-powered automation workflows using search and retrieval technologies. At CodeAutomation AI, we are building examples around: AI research assistants Automated knowledge re…

---

## [Best Practices for Building Reliable AI Agent Applications](https://community.perplexity.ai/t/best-practices-for-building-reliable-ai-agent-applications/6160)

<div class="topic-metadata">

**Author:** [@codeautomatio](https://community.perplexity.ai/u/codeautomatio)\
**Replies:** 0\
**Last updated:** [September 19, 2026, 11:00am UTC](https://community.perplexity.ai/t/best-practices-for-building-reliable-ai-agent-applications/6160 "2026-09-19T11:00:14Z")

</div>

Hi everyone, AI agents are becoming more common, but building reliable agent-based applications still comes with many challenges. I am interested in learning how developers are approaching real-world AI agent systems. …

---

## [An endpoint that reports the API credit balance, and a 401 that says which balance is empty](https://community.perplexity.ai/t/an-endpoint-that-reports-the-api-credit-balance-and-a-401-that-says-which-balance-is-empty/6128)

<div class="topic-metadata">

**Author:** [@datalifenyc](https://community.perplexity.ai/u/datalifenyc)\
**Replies:** 1\
**Last updated:** [September 18, 2026, 6:31pm UTC](https://community.perplexity.ai/t/an-endpoint-that-reports-the-api-credit-balance-and-a-401-that-says-which-balance-is-empty/6128 "2026-09-18T18:31:18Z")

</div>

An endpoint that returns the calling key’s API credit balance. This was asked for in the GitHub tracker as api-discussion#327 in July 2025 and never answered before that repository was archived, so I am raising it her…

---

## [Sonar moving to Agents API](https://community.perplexity.ai/t/sonar-moving-to-agents-api/6061)

<div class="topic-metadata">

**Author:** [@Szymon](https://community.perplexity.ai/u/Szymon)\
**Replies:** 3\
**Last updated:** [September 18, 2026, 5:57pm UTC](https://community.perplexity.ai/t/sonar-moving-to-agents-api/6061 "2026-09-18T17:57:31Z")

</div>

Hello. As I am reading Sonar is moving to the Agent API and cannot reply there - will the OLD API remain available after 27 Sep or it will be off? Wondering about the deadline to migrate… anyone?

---

## [A new Perplexity Search SDK cookbook is live](https://community.perplexity.ai/t/a-new-perplexity-search-sdk-cookbook-is-live/6115)

<div class="topic-metadata">

**Author:** [@pplx-announcements](https://community.perplexity.ai/u/pplx-announcements)\
**Replies:** 0\
**Last updated:** [September 16, 2026, 7:34pm UTC](https://community.perplexity.ai/t/a-new-perplexity-search-sdk-cookbook-is-live/6115 "2026-09-16T19:34:29Z")

</div>

The recipe fans out focused searches, filters results to official docs, extracts relevant passages, and writes a source-linked brief for your coding agent. Get started: Search as Code for coding agents - Perplexity

---

## [The Perplexity API MCP server now supports OAuth](https://community.perplexity.ai/t/the-perplexity-api-mcp-server-now-supports-oauth/6053)

<div class="topic-metadata">

**Author:** [@pplx-announcements](https://community.perplexity.ai/u/pplx-announcements)\
**Replies:** 0\
**Last updated:** [September 9, 2026, 11:15pm UTC](https://community.perplexity.ai/t/the-perplexity-api-mcp-server-now-supports-oauth/6053 "2026-09-09T23:15:49Z")

</div>

Add https://api.perplexity.ai/mcp to your client, sign in with your Perplexity account, choose your org, and approve. Your agent gets real-time web search, deep research, and advanced reasoning. Get started: https://pp…

---

## [Q2D-Web: Evaluating First-Stage Retrievers at Scale](https://community.perplexity.ai/t/q2d-web-evaluating-first-stage-retrievers-at-scale/6052)

<div class="topic-metadata">

**Author:** [@pplx-announcements](https://community.perplexity.ai/u/pplx-announcements)\
**Replies:** 0\
**Last updated:** [September 9, 2026, 9:18pm UTC](https://community.perplexity.ai/t/q2d-web-evaluating-first-stage-retrievers-at-scale/6052 "2026-09-09T21:18:09Z")

</div>

We’re introducing Q2D-Web (Query2Doc-Web), a benchmark and public leaderboard for evaluating retrieval in agentic RAG systems. Q2D-Web tests how embedding models perform on large-scale web search using agent-reformulate…

---

## [Perplexity Search API is now available in Hermes Agent](https://community.perplexity.ai/t/perplexity-search-api-is-now-available-in-hermes-agent/6051)

<div class="topic-metadata">

**Author:** [@pplx-announcements](https://community.perplexity.ai/u/pplx-announcements)\
**Replies:** 0\
**Last updated:** [September 9, 2026, 2:30pm UTC](https://community.perplexity.ai/t/perplexity-search-api-is-now-available-in-hermes-agent/6051 "2026-09-09T14:30:14Z")

</div>

Search API gives Hermes access to an index of more than 400 billion URLs. It returns real-time results and ranks snippets by relevance.

---

## [Built Slidenova — AI presentation tool for Indian students, powered by Sonar API](https://community.perplexity.ai/t/built-slidenova-ai-presentation-tool-for-indian-students-powered-by-sonar-api/5922)

<div class="topic-metadata">

**Author:** [@krish\_Patel](https://community.perplexity.ai/u/krish_Patel)\
**Replies:** 3\
**Last updated:** [September 4, 2026, 8:13pm UTC](https://community.perplexity.ai/t/built-slidenova-ai-presentation-tool-for-indian-students-powered-by-sonar-api/5922 "2026-09-04T20:13:39Z")

</div>

Hey everyone! Sharing Slidenova (slidenova.app) — an AI presentation maker for students in India. Using Perplexity’s Sonar API for AI-grounded slide generation, so decks come with real, up-to-date information instead of …

---

## [Programmatic access to “Export my data” for PKM/RAG use](https://community.perplexity.ai/t/programmatic-access-to-export-my-data-for-pkm-rag-use/5811)

<div class="topic-metadata">

**Author:** [@Russell\_Bomer](https://community.perplexity.ai/u/Russell_Bomer)\
**Replies:** 1\
**Last updated:** [September 4, 2026, 8:13pm UTC](https://community.perplexity.ai/t/programmatic-access-to-export-my-data-for-pkm-rag-use/5811 "2026-09-04T20:13:23Z")

</div>

Pre-flight checklist This is a Perplexity API feature request, not a Perplexity app, Comet, or web UI request. I have checked whether this already exists in the docs or another forum topic. I have described the devel…

---

## [GLM 5.3 in API?](https://community.perplexity.ai/t/glm-5-3-in-api/5939)

<div class="topic-metadata">

**Author:** [@Andrew\_Wheeler](https://community.perplexity.ai/u/Andrew_Wheeler)\
**Replies:** 1\
**Last updated:** [September 4, 2026, 4:27pm UTC](https://community.perplexity.ai/t/glm-5-3-in-api/5939 "2026-09-04T16:27:29Z")

</div>

So GLM 5.2 is available via the API, https://docs.perplexity.ai/docs/agent-api/models#z-ai\> – is there any plan to make available 5.3 or 5.3-flash eventually?

---

## [Structured output doesn't work for Anthropic in Agent API](https://community.perplexity.ai/t/structured-output-doesnt-work-for-anthropic-in-agent-api/5945)

<div class="topic-metadata">

**Author:** [@Maksim\_Bliumental](https://community.perplexity.ai/u/Maksim_Bliumental)\
**Replies:** 1\
**Last updated:** [September 3, 2026, 11:25pm UTC](https://community.perplexity.ai/t/structured-output-doesnt-work-for-anthropic-in-agent-api/5945 "2026-09-03T23:25:30Z")

</div>

Minimal reproduction import asyncio import os from perplexity import AsyncPerplexity from pydantic import BaseModel PERPLEXITY\_API\_KEY = os.environ\["PERPLEXITY\_API\_KEY"\] MODEL = "anthropic/claude-opus-5" class BrandE…

---

## [Usage Chart Empty](https://community.perplexity.ai/t/usage-chart-empty/5954)

<div class="topic-metadata">

**Author:** [@lwongrin](https://community.perplexity.ai/u/lwongrin)\
**Replies:** 1\
**Last updated:** [September 3, 2026, 10:54pm UTC](https://community.perplexity.ai/t/usage-chart-empty/5954 "2026-09-03T22:54:27Z")

</div>

I’ve been using the Agent API daily with hundreds of requests but the usage chart is always empty, making impossible for me to manage my daily costs and usage. Need some help on this.

---

## [Billing-read OAuth for API cost dashboards](https://community.perplexity.ai/t/billing-read-oauth-for-api-cost-dashboards/6004)

<div class="topic-metadata">

**Author:** [@Avanderheyde](https://community.perplexity.ai/u/Avanderheyde)\
**Replies:** 1\
**Last updated:** [September 3, 2026, 10:51pm UTC](https://community.perplexity.ai/t/billing-read-oauth-for-api-cost-dashboards/6004 "2026-09-03T22:51:53Z")

</div>

Hi Perplexity team, I’m building Vibe Costs, a dashboard that lets developers monitor live software and AI infrastructure spend in one place. Perplexity’s API console already shows billable usage and credits. Today, us…

---

## [Duplicate / fork a session into a clean, independently shareable co](https://community.perplexity.ai/t/duplicate-fork-a-session-into-a-clean-independently-shareable-co/5986)

<div class="topic-metadata">

**Author:** [@Nosmo\_King](https://community.perplexity.ai/u/Nosmo_King)\
**Replies:** 1\
**Last updated:** [September 3, 2026, 10:29pm UTC](https://community.perplexity.ai/t/duplicate-fork-a-session-into-a-clean-independently-shareable-co/5986 "2026-09-03T22:29:20Z")

</div>

erplexity sessions are valuable as research workspaces, but their early turns often contain exploratory prompts, corrections, restatements, and discarded approaches. Before sharing a result, users need a clean version of…

---

## [Perplexity API is now available in Stripe Projects](https://community.perplexity.ai/t/perplexity-api-is-now-available-in-stripe-projects/6003)

<div class="topic-metadata">

**Author:** [@pplx-announcements](https://community.perplexity.ai/u/pplx-announcements)\
**Replies:** 0\
**Last updated:** [September 3, 2026, 10:21pm UTC](https://community.perplexity.ai/t/perplexity-api-is-now-available-in-stripe-projects/6003 "2026-09-03T22:21:56Z")

</div>

In the Stripe CLI, type “stripe projects add perplexity/api” to get started. Provision a Perplexity API project, API key, and prepaid credits straight from your terminal or coding agent using the Stripe Projects CLI. …

---

## [Zero Data Retention with Agent API](https://community.perplexity.ai/t/zero-data-retention-with-agent-api/5902)

<div class="topic-metadata">

**Author:** [@an-px](https://community.perplexity.ai/u/an-px)\
**Replies:** 1\
**Last updated:** [August 31, 2026, 12:06pm UTC](https://community.perplexity.ai/t/zero-data-retention-with-agent-api/5902 "2026-08-31T12:06:00Z")

</div>

Hi, on our console we got the hint that the chat completions API is moving to the Agent API. We want to migrate our platform, but since we have given our customers a ZDR commitment, it doesn’t seem possible to migrate …

---

## [Connectors are now available in Agent API](https://community.perplexity.ai/t/connectors-are-now-available-in-agent-api/5929)

<div class="topic-metadata">

**Author:** [@pplx-announcements](https://community.perplexity.ai/u/pplx-announcements)\
**Replies:** 0\
**Last updated:** [August 27, 2026, 7:08pm UTC](https://community.perplexity.ai/t/connectors-are-now-available-in-agent-api/5929 "2026-08-27T19:08:04Z")

</div>

Connect your agents to GitHub, Slack, Google Drive, and Datadog without passing a server URL or token on every request. API Group admins can connect each service once for all API Group members.

---

## [Finance\_search tool doesn't work \[Agent API\]](https://community.perplexity.ai/t/finance-search-tool-doesnt-work-agent-api/5906)

<div class="topic-metadata">

**Author:** [@api-triage-bot](https://community.perplexity.ai/u/api-triage-bot)\
**Replies:** 0\
**Last updated:** [August 25, 2026, 1:55am UTC](https://community.perplexity.ai/t/finance-search-tool-doesnt-work-agent-api/5906 "2026-08-25T01:55:11Z")

</div>

Reported in Discord by @serge022793 — Discord I bought credits yesterday to try the Agent API and its tools like finance\_search, but I’ve tried several times using Playground and it doesn’t work. The model responds that…

---

## [Need Help! Connected "MCP" thing to my WordPress site and now I can't even log into my own dashboard](https://community.perplexity.ai/t/need-help-connected-mcp-thing-to-my-wordpress-site-and-now-i-cant-even-log-into-my-own-dashboard/5808)

<div class="topic-metadata">

**Author:** [@thepaulnicoleson](https://community.perplexity.ai/u/thepaulnicoleson)\
**Replies:** 1\
**Last updated:** [August 14, 2026, 12:51pm UTC](https://community.perplexity.ai/t/need-help-connected-mcp-thing-to-my-wordpress-site-and-now-i-cant-even-log-into-my-own-dashboard/5808 "2026-08-14T12:51:08Z")

</div>

Hi everyone, total beginner here, please be gentle with me! So I was trying to hook up an AI tool ( MCP) to my WordPress site because I read it could help me do things faster with a chatbot instead of me clicking around…

---

## [Why am I unable to use the API service?](https://community.perplexity.ai/t/why-am-i-unable-to-use-the-api-service/5759)

<div class="topic-metadata">

**Author:** [@SevenYan](https://community.perplexity.ai/u/SevenYan)\
**Replies:** 5\
**Last updated:** [August 10, 2026, 6:05pm UTC](https://community.perplexity.ai/t/why-am-i-unable-to-use-the-api-service/5759 "2026-08-10T18:05:14Z")

</div>

Pre-flight checklist This is about the Perplexity API, not the Perplexity app, Comet, or web UI. I have removed API keys, secrets, and private data. I have included enough information for someone else to reproduce th…

---

## [Perplexity Gateway API: omitting \`max\_tokens\` intermittently 400s on all \`perplexity/\*\` models](https://community.perplexity.ai/t/perplexity-gateway-api-omitting-max-tokens-intermittently-400s-on-all-perplexity-models/5754)

<div class="topic-metadata">

**Author:** [@kingsleyw](https://community.perplexity.ai/u/kingsleyw)\
**Replies:** 1\
**Last updated:** [August 10, 2026, 3:29pm UTC](https://community.perplexity.ai/t/perplexity-gateway-api-omitting-max-tokens-intermittently-400s-on-all-perplexity-models/5754 "2026-08-10T15:29:22Z")

</div>

I’ve hit what looks like a default-injection gap in the Gateway’s OpenAI-compatible endpoint, affecting all three perplexity/\* models. max\_tokens is optional in the OpenAI Chat Completions spec, and the gateway defaults …

---

## [Gateway API is now in limited preview](https://community.perplexity.ai/t/gateway-api-is-now-in-limited-preview/5761)

<div class="topic-metadata">

**Author:** [@andrewmadson-pplx](https://community.perplexity.ai/u/andrewmadson-pplx)\
**Replies:** 0\
**Last updated:** [August 9, 2026, 2:09pm UTC](https://community.perplexity.ai/t/gateway-api-is-now-in-limited-preview/5761 "2026-08-09T14:09:41Z")

</div>

Hi everyone, Given the high volume of demand since launch, the Gateway API is moving to a private preview with access by request. If you don’t have preview access, Gateway requests will return a 403. All other Perplexi…
