> ## 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.

# API Groups & Billing

> Learn how to use the Perplexity API Portal to manage access, usage, billing, and team collaboration.

## What is an API Group?

An **API Group** is your organization's workspace in the Perplexity API Portal. It allows you to:

* **Manage billing** and payment methods for API usage
* **Create and control API keys** for accessing the Perplexity API
* **Invite team members** and control their permissions (optional)
* **Monitor usage and costs** across all your API keys

## Prerequisites

Before getting started, make sure you have:

* A Perplexity account (sign up at [perplexity.ai](https://perplexity.ai))
* **Admin permissions** for billing and API key management
* A **credit card** ready for payment setup (you won't be charged initially)

<Note>
  If you're joining an existing team, you'll need an invitation from an Admin. Contact your team lead to get access.
</Note>

## Accessing the API Portal

Navigate to [console.perplexity.ai](https://console.perplexity.ai) to access your API group. The left-hand sidebar is divided into two sections:

* **Group**: Settings, Members, Billing, API keys, Files
* **API Playground**: Search API, Agent API

***

## Creating and Managing an API Group

To set up your organization:

<Steps>
  <Step title="Access Group Settings">
    Click **Settings** in the left sidebar under **Group**.

    <Frame>
      <img src="https://mintcdn.com/perplexity/DPUduAo6hpcohwv5/docs/assets/images/api_portal/console_new_group.png?fit=max&auto=format&n=DPUduAo6hpcohwv5&q=85&s=49df5c637490410b73809cc39809ce10" alt="API Group Settings" width="912" height="390" data-path="docs/assets/images/api_portal/console_new_group.png" />
    </Frame>
  </Step>

  <Step title="Complete Organization Details">
    Fill out your organization's name, address, and tax details.

    <Frame>
      <img src="https://mintcdn.com/perplexity/DPUduAo6hpcohwv5/docs/assets/images/api_portal/console_new_group_setup.png?fit=max&auto=format&n=DPUduAo6hpcohwv5&q=85&s=6be48e87e1a4c31c4cd4571be05312e0" alt="API Group Setup" width="1010" height="1510" data-path="docs/assets/images/api_portal/console_new_group_setup.png" />
    </Frame>

    <Info>
      Your organization name and address will appear on invoices and help us support you better.
    </Info>
  </Step>
</Steps>

***

## Billing and Payment Methods

### How Billing Works

The Perplexity API uses a **credit-based billing system**:

* **Credits** are purchased in advance and used for API calls
* **Different models** consume different amounts of credits per request
* **Usage is charged** based on tokens processed and search queries made
* **Automatic top-up** can be enabled to avoid service interruptions

<Info>
  See our [Pricing page](./pricing) for detailed cost information per model and usage type.
</Info>

### Setting Up Payment

<Card title="Access Billing Dashboard" icon="credit-card" arrow="True" horizontal="True" iconType="solid" cta="Go to Billing" href="https://console.perplexity.ai">
  Navigate directly to your API billing dashboard to manage payment methods, view usage, and configure billing settings.
</Card>

<Steps>
  <Step title="Navigate to Billing">
    Click **Billing** in the left sidebar. This page shows your credit balance, payment method, usage chart, and billing breakdown.

    <Frame>
      <img src="https://mintcdn.com/perplexity/DPUduAo6hpcohwv5/docs/assets/images/api_portal/console_billing.png?fit=max&auto=format&n=DPUduAo6hpcohwv5&q=85&s=6d6e71d28dcf4d39faa4fc8b14c6ad48" alt="API Billing Dashboard" width="1470" height="536" data-path="docs/assets/images/api_portal/console_billing.png" />
    </Frame>
  </Step>

  <Step title="Add Payment Method">
    Click **Add payment method** and enter your credit card information. Payment is managed via Stripe — you can also click **Manage ↗** to access the Stripe portal directly.

    <Note>
      Adding a payment method will not charge your credit card. It stores payment information for future API usage.
    </Note>
  </Step>

  <Step title="Configure Auto Reload (Recommended)">
    Enable automatic credit top-up by clicking **Change preferences** next to **Auto reload**.

    <Frame>
      <img src="https://mintcdn.com/perplexity/DPUduAo6hpcohwv5/docs/assets/images/api_portal/console_topup.png?fit=max&auto=format&n=DPUduAo6hpcohwv5&q=85&s=3aa16c75b424292781b61005b1ab32df" alt="API Billing Dashboard" width="738" height="636" data-path="docs/assets/images/api_portal/console_topup.png" />
    </Frame>

    <Warning>
      If you run out of credits, your API keys will be blocked until you add to your credit balance. Auto reload prevents this by automatically adding credits when your balance drops below a threshold.
    </Warning>
  </Step>
</Steps>

### Credit Balance

The Billing page displays your **remaining credit balance** prominently at the top. You can purchase additional credits at any time using the **Buy more credits** link.

Your current **usage tier** is also shown here — click **Learn more ↗** for details on tier thresholds and benefits.

***

## Managing API Keys

### What are API Keys?

API keys are your credentials for accessing the Perplexity API. Each key:

* **Authenticates your requests** to the Perplexity API
* **Tracks usage** for attribution
* **Can be revoked** for security purposes
* **Should be kept secure** and never shared publicly

<Info>
  You'll need to include your API key in the Authorization header of every API request: `Authorization: Bearer $PERPLEXITY_API_KEY`
</Info>

### Creating an API Key

<Steps>
  <Step title="Navigate to API Keys">
    Click **API keys** in the left sidebar.

    <Frame>
      <img src="https://mintcdn.com/perplexity/DPUduAo6hpcohwv5/docs/assets/images/api_portal/console_api_keys.png?fit=max&auto=format&n=DPUduAo6hpcohwv5&q=85&s=d72bcb05e281c05a5a7a2f7b3a469f50" alt="API Keys" width="1468" height="700" data-path="docs/assets/images/api_portal/console_api_keys.png" />
    </Frame>
  </Step>

  <Step title="Generate New Key">
    Click **+ Generate API Key** to create a new API key.

    <Frame>
      <img src="https://mintcdn.com/perplexity/DPUduAo6hpcohwv5/docs/assets/images/api_portal/console_api_keys_new.png?fit=max&auto=format&n=DPUduAo6hpcohwv5&q=85&s=ca3c652417faa90238d299ddc72b0249" alt="API Keys" width="1008" height="524" data-path="docs/assets/images/api_portal/console_api_keys_new.png" />
    </Frame>
  </Step>
</Steps>

<Warning>
  API keys are sensitive credentials. Never expose them in client-side code or share them in public repositories.
</Warning>

***

## Adding and Managing Members

Admins can invite team members to the organization with specific roles: **Admin** or **Member**.

### Adding a Member

<Steps>
  <Step title="Navigate to Members">
    Click **Members** in the left sidebar. This page shows your current team members and their roles.
  </Step>

  <Frame>
    <img src="https://mintcdn.com/perplexity/DPUduAo6hpcohwv5/docs/assets/images/api_portal/console_members.png?fit=max&auto=format&n=DPUduAo6hpcohwv5&q=85&s=78f439f1a1567dc49c7ff06c4033b3af" alt="Members" width="1454" height="540" data-path="docs/assets/images/api_portal/console_members.png" />
  </Frame>

  <Step title="Initiate Member Invitation">
    Click **+ Add Member**. Enter the user's email address and click **Invite**.

    <Frame>
      <img src="https://mintcdn.com/perplexity/DPUduAo6hpcohwv5/docs/assets/images/api_portal/console_add_member.png?fit=max&auto=format&n=DPUduAo6hpcohwv5&q=85&s=c4fab8e720fb1db15206846289399a3a" alt="Add Member" width="1006" height="686" data-path="docs/assets/images/api_portal/console_add_member.png" />
    </Frame>
  </Step>

  <Step title="Member Receives Invitation">
    The invited user will receive an email with a link to join your group.

    <Check>
      Once they accept, they'll appear in your member list with their assigned role.
    </Check>
  </Step>
</Steps>

### Filtering Members by Role

Use the dropdown to filter your list of team members by role.

### Roles

* **Admin**: Full access to invite/remove members, manage billing, and view usage data.
* **Member**: Can view usage and account limits but cannot modify settings.

<Warning>
  Only Admins can make changes to billing and member permissions.
</Warning>

***

## Viewing Usage Metrics

All members can monitor API usage directly from the **Billing** page in the console.

<Frame>
  <img src="https://mintcdn.com/perplexity/DPUduAo6hpcohwv5/docs/assets/images/api_portal/console_usage_metrics.png?fit=max&auto=format&n=DPUduAo6hpcohwv5&q=85&s=80e6246097068cf8854370c98a9de338" alt="Usage Metrics" width="1508" height="1718" data-path="docs/assets/images/api_portal/console_usage_metrics.png" />
</Frame>

The **Usage** chart lets you track activity over time with the following filters:

* **Metric selector**: Choose from Chat Completions API Requests, Input Tokens, Output Tokens, Citation Tokens, Reasoning Tokens, Deep Research Requests Count, Search API Requests Count, or Pro Search API Requests Count
* **Time range**: Filter by Last 7 Days, Last 30 Days, or custom range

Below the chart, the **Billing breakdown** table shows a per-model breakdown of usage quantity, rate, and cost — giving you a clear picture of spend by product.

<Check>
  Usage metrics help you monitor API activity and optimize for cost or performance.
</Check>

## Invoice History

Below the usage chart and billing breakdown on the **Billing** page, you'll find your **Invoice history** — a record of all past invoices with their date, status, and cost.

<Frame>
  <img src="https://mintcdn.com/perplexity/DPUduAo6hpcohwv5/docs/assets/images/api_portal/console_invoices.png?fit=max&auto=format&n=DPUduAo6hpcohwv5&q=85&s=4df3bb3d07fef0c321d8b82272651c14" alt="Invoice History" width="1258" height="1122" data-path="docs/assets/images/api_portal/console_invoices.png" />
</Frame>

Invoices are generated automatically each billing cycle. Use the **Previous** and **Next** controls to paginate through older records.
