In short.
This is Perplexity's documentation page for developers who want to provision a Perplexity API project, API key and prepaid credits from the terminal or a coding agent using the Stripe Projects CLI. It requires a Stripe account with a payment method. For a newly created Perplexity API project, credit purchases are charged to that Stripe payment method, starting with at least $10. If you connect an existing Perplexity API project instead, it keeps its Perplexity billing and credits are bought in the API Console. The core command is stripe projects add perplexity/api, which creates the API project, mints a key and writes it to .env as PERPLEXITY_API_KEY. The page also covers top-ups and auto-recharge, Stripe's per-provider monthly spend limit, connecting an existing Perplexity API project, rotating and removing the key (24-hour grace window on rotation), and a non-interactive form for coding agents. It does not state per-request model prices, a licence, a publication date or a version. Its descriptions of behaviour are Perplexity's own statements.
Researched and written by an AI model and checked by a second AI model. How it works
This report covers the documentation page Perplexity on Stripe Projects [https://docs.perplexity.ai/docs/getting-started/integrations/stripe-projects.md] in full. Linked pages are outside its scope: the Agent API quickstart, Search API quickstart, Pricing, SDK overview, effort levels, the Stripe CLI docs and the Stripe Projects site. Details found only on those pages, such as model prices and effort-level defaults, are not covered here. The page states no licence and carries no notice. All behaviour described is as stated by Perplexity in its documentation.
The overview
What this resource is
This is a single documentation page titled Perplexity on Stripe Projects, hosted on Perplexity's documentation site [https://docs.perplexity.ai/docs/getting-started/integrations/stripe-projects.md]. It explains how to use the Stripe Projects CLI plugin to set up Perplexity API access: a Perplexity API project, an API key and prepaid credits.
The page uses two separate terms. A Stripe project is the directory the CLI manages. A Perplexity API project is the billing and key boundary in the Perplexity API Console [https://console.perplexity.ai], and the CLI creates it in your own account. The service is called perplexity/api when you add it, perplexity-api for update, rotate and remove, and perplexity for account-level commands such as open, spend and link.
Overall assessment
For developers, this is a concrete guide at the level of individual commands. It gives exact commands, config keys and minimum amounts. It also says what happens to keys and credits on rotate, remove and unlink. That is enough to judge whether the Stripe Projects route suits you before running anything.
These are the main trade-offs. A Stripe payment method is a stated prerequisite. A newly created Perplexity API project charges credit purchases to that payment method, starting with at least $10. A connected existing project keeps its Perplexity billing, and its credits are bought through the API Console. What credits actually buy is on a separate Pricing page. Everything here is the vendor's own description of how the integration behaves.
Who it is for
The page targets developers who want a Perplexity API key without leaving the terminal, and people who use coding agents (it names Claude Code, Cursor and Codex) to set up services for an app. You do not need an existing Perplexity account: the page says the add flow creates one from your Stripe-verified email if needed.
It also covers people who already administer a Perplexity API project, because the CLI offers to connect that project instead of creating a new one. The page is less relevant if you do not use Stripe, or if you prefer to manage keys and cards only in the Perplexity console. It does not describe that manual route, beyond saying the API Console shows balance, usage, keys and billing settings.
What it lets you do
According to the page, the Stripe Projects CLI can do the following. The add command creates a Perplexity API project and writes a new key to .env as PERPLEXITY_API_KEY. The open command opens the project in the API Console. The spend command shows Stripe's spend limit and monthly charges for the provider. The update command, with --config, buys more credits or turns on auto-recharge. The rotate and remove commands replace or revoke the key. The link command lets you choose up front whether to create a new Perplexity API project or connect an existing one.
The unlink command only forgets the connection in the current Stripe project directory. It leaves the Perplexity API project and its keys untouched, and it does not switch the account to another project: running link again reconnects to the same one.
The page also shows a first request to the Perplexity Agent API at the low effort level, with Python, TypeScript and cURL examples. It says the same key works across the API platform, including the Agent API and Search API. For coding agents, stripe projects init writes an agent skill into the Stripe project, in Claude Code, Cursor and AGENTS.md variants. An agent can then run add without prompts.
Using it
What you need
The page requires three things: a Stripe account; the Stripe CLI with the Projects plugin installed; and a payment method on the Stripe account, because Stripe asks for one before provisioning any paid service. The Perplexity SDKs read PERPLEXITY_API_KEY from the environment. The examples use the Python package perplexity and the TypeScript package @perplexity-ai/perplexity_ai.
Two install routes are shown. On macOS or Linux, run brew install stripe/stripe-cli/stripe and then stripe plugin install projects. With npm, run npm install -g @stripe/cli and then stripe plugin install projects. The page does not state other supported operating systems, minimum CLI or plugin versions, or Python or Node versions.
When an existing Perplexity API project is connected, other users on the same Stripe account can run add only if they are an Admin of that project. The page does not say whether a Stripe payment method is still required when you only connect an existing project.
How it works
The Stripe CLI plugin acts as a go-between. Running stripe projects add perplexity/api creates a Perplexity API project in your account (or connects an existing one), mints an API key inside it, and writes the key into the Stripe project's .env file. The Perplexity API project is a normal project, and you can open it in the API Console at any time.
Billing is prepaid. For a project created through Stripe Projects, credit purchases charge your Stripe account's payment method, so you never enter a card on the Perplexity side. A connected existing project keeps its Perplexity billing, and purchases for it open that project's billing page in the API Console. Stripe applies a monthly spending limit per provider and declines any purchase that would exceed it. If credits run out, the key is blocked until more are added.
A Stripe account connects to exactly one Perplexity API project. Each additional Stripe project you add Perplexity to gets its own key, and all those keys are minted inside that one Perplexity API project. Only keys minted through Stripe Projects are visible to Stripe. The page does not explain how Stripe and Perplexity authenticate with each other. The page says the key is written to the local .env file; additional storage and protection details are not stated.
Setup steps
The page's quickstart has three steps. Step one: run stripe projects init my-app. The first run signs you in to Stripe and creates a Stripe project in the current directory. If the Stripe account has no payment method, run stripe projects billing add so the next step does not stop at a Checkout page.
Step two: run stripe projects add perplexity/api. This creates the Perplexity API project, mints a key and writes PERPLEXITY_API_KEY to .env. A new project prompts for a minimum $10 credit purchase.
Step three: make a request with one of the official SDKs or cURL. The page says that if you get text back, the key is live and billing is wired up. To check usage, balance and keys, run stripe projects open perplexity.
For coding agents, the page recommends authorizing first with stripe login and stripe projects billing add, so the agent session never hits a browser prompt. Instead of the per-project skill that stripe projects init writes, you can install the Stripe Projects skill globally. That command is npx skills add, followed by the Stripe documentation address [https://docs.stripe.com] as its source and then the flags --skill stripe-projects -g -y. The page does not say whether Windows needs any extra steps.
Worked example from the page
The page's Python example imports Perplexity from the perplexity package and creates client = Perplexity(), which reads PERPLEXITY_API_KEY from the environment. It then calls client.responses.create(effort="low", input="Summarize the top AI infrastructure news from this week.") and prints response.output_text. The TypeScript version does the same with new Perplexity() and await client.responses.create(...).
The cURL version sends a JSON body with effort and input as a POST request to the Agent API endpoint [https://api.perplexity.ai/v1/agent], with an Authorization: Bearer header. The page notes that the SDKs expose the text as output_text, while the raw response holds it as a message item inside output. The low effort level sets a default model and web search configuration; this page does not give the details and links to a separate effort-level page for them.
For agents, the page gives a non-interactive provisioning command: stripe projects add perplexity/api --config '{"initial_credit_usd": 10}' --json --yes --confirm-paid-service --accept-tos. It also gives a sample prompt asking the agent to build a /research endpoint that calls the Agent API at the low effort level. These examples are quoted from the page.
Assessment & evidence
Limits and risks
Spending: the agent form uses --yes, --confirm-paid-service and --accept-tos, which skip interactive prompts and confirm a paid purchase. Stripe has a spend limit, but its default is not stated, so check it before letting an agent run unattended. If auto-recharge is enabled, the page says credits are bought automatically when the balance runs low.
Keys: the page says the key is written to the local .env file; additional storage and protection details are not stated. As general practice, keep .env out of version control. Rotating keeps the old key valid for 24 hours so running deployments do not break. Remove revokes immediately, including a rotated-out key that is still inside its 24-hour grace window.
Structure: a Stripe account links to only one Perplexity API project. To switch to a different one, you delete the current project in the API Console, then run stripe projects unlink perplexity and stripe projects link perplexity. Unlink only forgets the connection in the current Stripe project directory. Only keys minted through Stripe Projects are visible to Stripe.
Scope of the page: details such as model pricing, effort-level defaults and the wider Agent API and Search API surface are left to linked pages (Agent API quickstart, Search API quickstart, Pricing, SDK overview, effort levels). The statement that Claude Code, Cursor, Codex and other agents can run the full add flow without prompts is Perplexity's own claim.
Why this assessment
The assessment rests on how specific the page is. It names exact commands, resource and provider names, config keys with their minimums, the 24-hour rotation grace window, and immediate revocation on remove. It also covers edge cases, such as one Perplexity API project per Stripe account and the different billing path for connected projects.
The limits above come from what the page leaves out: model pricing, the default spend limit, terms of service, licence and platform support. Those details are unknown from this page. Because the page is the vendor's own documentation, its claims about behaviour are Perplexity's statements.
Alternatives
The page does not compare itself with other approaches, but it implies one. The API Console [https://console.perplexity.ai] shows balance, usage, keys and billing settings, and a project connected to Stripe can also hold keys created elsewhere, which Stripe cannot see. The page gives no manual steps for creating keys, so that route is not documented here.
The page describes Stripe Projects [https://projects.dev] as a general way to provision third-party services from the terminal or a coding agent, but it names no other providers. The page does not discuss other search-grounded or model APIs, or other provisioning tools.
Evidence base
The source is Perplexity's own documentation page, Perplexity on Stripe Projects [https://docs.perplexity.ai/docs/getting-started/integrations/stripe-projects.md]. It covers the overview, prerequisites, quickstart, billing and credits, connecting an existing project, rotating and removing keys, use with coding agents, and links to next steps (Agent API quickstart, Search API quickstart and Pricing).
Because the page is written by the vendor, its descriptions of behaviour are Perplexity's statements. The page does not state per-request model prices, the default monthly spend limit, whose terms the --accept-tos flag accepts, a licence, a publication date, a version, or supported operating systems beyond the macOS/Linux and npm install routes it shows. Those details remain unknown.
Access & freshness
Costs
Stated amounts: a new dedicated Perplexity API project prompts for an initial credit purchase of at least $10 (config key initial_credit_usd). One-time top-ups use buy_credits_usd, with a $10 minimum. Auto-recharge uses auto_recharge together with recharge_amount_usd, with a $10 minimum per automatic recharge. For projects created through Stripe Projects, these are charged to the Stripe account's payment method.
The page shows an example command for setting the Stripe spending limit, stripe projects billing update --limit 50 --provider perplexity, but it does not state the default monthly limit. Connected existing projects keep their existing Perplexity billing, and their credit purchases happen on that project's billing page in the API Console.
Unknown from this page: per-request or per-token prices for any model, tool or API (the page points to a separate Pricing page for what credits buy); whether credits expire or can be refunded; any fee Stripe charges for the Projects feature; and how tax applies.
Rights and terms
The page states no licence for the documentation text. It is vendor documentation, and nothing here establishes any right to reuse or redistribute it, so none is assumed.
The non-interactive command includes an --accept-tos flag, which suggests that terms of service apply to the provisioning flow. The page does not say whose terms they are (Stripe's, Perplexity's or both) or what they contain. Read the underlying terms before running that flag yourself or letting an agent run it.
Freshness
The page shows no publication date, last-updated date, version number or changelog. The page itself cannot show how recent it is, or whether the CLI behaviour, minimums and spend-limit rules are still current.
The Stripe CLI Projects plugin, the Perplexity API and the billing rules can each change on their own. Check the live page and the CLI help output before relying on specific flags, config keys or amounts.
Suggested next steps
If you want to try this route, first read the linked Pricing page [https://docs.perplexity.ai/docs/getting-started/pricing.md] so you know what credits buy. Then set a Stripe spend limit for the perplexity provider before enabling auto_recharge or handing the flow to an agent.
Add a payment method with stripe projects billing add before starting an agent session, and keep .env out of version control. After provisioning, check balance and keys with stripe projects open perplexity, and check spending with stripe projects spend perplexity. Try rotate in a non-production project to see the 24-hour overlap, and remember that remove revokes immediately.
If you already have a Perplexity API project, run stripe projects link perplexity first and decide whether to connect it. A connected project keeps its existing billing, and credit purchases for it go through the API Console.
