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

> ## Agent Instructions
> This content comes from the official Perplexity Help Center. Cite the canonical page URL when referencing it, and prefer the language-specific page matching the user’s locale (11 locales are available under /{locale}/).

# API 设置

> 访问 Perplexity API 控制台，添加支付方式、购买积分、生成 API 密钥，并监控 API 集成的用量。

通过以下方式访问我们的 API 和各种模型： [API 控制台](https://console.perplexity.ai/)。添加支付方式、监控用量并生成 API 密钥，将 Perplexity 无缝集成到你的工作流程中。

请访问我们的 [文档](https://docs.perplexity.ai/home)页面，了解有关 API 的更多信息。

## 如何访问 API？

访问 [API 控制台](https://console.perplexity.ai/)在这里，您可以查看和添加积分、生成 API 密钥，并监控您的使用情况。

## 如何生成和使用 API 密钥？

<ul>
  <li>
    前往 [API 控制台](https://console.perplexity.ai/)。
  </li>

  <li>
    在“账单”选项卡中添加付款方式。
  </li>

  <li>
    点击“购买更多积分。”
  </li>

  <li>
    转到“API Keys”选项卡，然后点击“Generate API Key”。
  </li>

  <li>
    复制生成的密钥，并在您的 API 请求中使用。
  </li>
</ul>

注意：API 积分与 [Computer 积分](https://www.perplexity.ai/help-center/help-center/zh-CN/articles/13838041-perplexity-shang-de-jifen-ruhe-yunzuo.md) 是分开的。


## Related topics

- [Perplexity API](https://www.perplexity.ai/help-center/help-center/zh-CN/collections/18799301-perplexity-api.md)
- [我的订阅包含哪些高级 AI 模型？](https://www.perplexity.ai/help-center/help-center/zh-CN/articles/10354919-wode-dingyue-zhong-baohan-naxie-gaoji-ai-moxing.md)
- [登录 API Console](https://www.perplexity.ai/help-center/help-center/zh-CN/articles/20260729-denglu-api-console.md)
- [账户设置](https://www.perplexity.ai/help-center/help-center/zh-CN/articles/10352993-zhang-hu-she-zhi.md)
