> ## 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 集成的用量。

<p>通过以下方式访问我们的 API 和各种模型： <a href="https://console.perplexity.ai/" rel="nofollow noopener noreferrer" target="_blank">API 控制台</a>。添加支付方式、监控用量并生成 API 密钥，将 Perplexity 无缝集成到你的工作流程中。</p>

<p>请访问我们的 <a href="https://docs.perplexity.ai/home" rel="nofollow noopener noreferrer" target="_blank">文档</a>页面，了解有关 API 的更多信息。</p>

<h2 id="h_77f2e54447">如何访问 API？</h2>

<p>访问 <a href="https://console.perplexity.ai/" rel="nofollow noopener noreferrer" target="_blank">API 控制台</a>在这里，您可以查看和添加积分、生成 API 密钥，并监控您的使用情况。</p>

<h2 id="h_944fe9569b">如何生成和使用 API 密钥？</h2>

<ul>
  <li>
    <p>前往 <a href="https://console.perplexity.ai/" rel="nofollow noopener noreferrer" target="_blank">API 控制台</a>。</p>
  </li>

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

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

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

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

<p>注意：API 积分与 <a href="/help-center/help-center/zh-CN/articles/13838041-perplexity-shang-de-jifen-ruhe-yunzuo" rel="nofollow">Computer 积分</a> 是分开的。</p>


## Related topics

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