Perplexity API Returns Empty Answer With Valid Key: Fix

You have a valid Perplexity API key, but your requests return empty or null answers. The API call succeeds without an error, yet the response contains no content. This problem often occurs due to missing or incorrect parameters in the request body or headers. This article explains the root causes and provides step-by-step fixes to … Read more

Perplexity API Sonar Model Returns No Citations: Fix

When you call the Perplexity Sonar model through the API, you expect the response to include citations showing the sources of the information. Instead, the response may contain only the answer text with an empty citations array or no citations field at all. This problem usually occurs because the API request is missing the required … Read more

How to Get Started With the Perplexity Sonar API

The Perplexity Sonar API lets you integrate real-time search capabilities into your own applications, bots, or workflows. Instead of visiting the Perplexity website, you can send a question and receive a cited answer programmatically. This article explains what the Sonar API is, what you need to set it up, and how to make your first … Read more

Perplexity API Models: Sonar vs Sonar Pro vs Sonar Reasoning

Choosing the right Perplexity API model for your application can be confusing. The Sonar family includes three tiers: Sonar, Sonar Pro, and Sonar Reasoning. Each model offers different search depth, reasoning capability, and cost. This article explains the differences between these three models, their ideal use cases, and how to configure them in your API … Read more

How to Generate a Perplexity API Key

Official documentation checked October 14, 2026. Create a Perplexity API key in the API Console, not in a browser extension or a third-party key generator. The API has its own project, access and billing settings. A personal Pro subscription is not a prerequisite and does not turn API requests into unlimited, included usage. This guide … Read more

Perplexity API Key Stopped Working: Revocation, Billing, or Rate Limits?

Official documentation checked October 14, 2026. A failed Perplexity API request does not necessarily mean the key was revoked. Authentication mistakes, an exhausted credit balance and rate limits can all stop requests, but replacing credentials is not the remedy for every case. Start with the actual response and the project’s state. Do not delete all … Read more

How to Set Rate Limits in Perplexity API Requests

Managing API request volume is critical when integrating Perplexity into your applications. Without rate limits, your code can overwhelm the API server, trigger HTTP 429 Too Many Requests errors, or exceed your subscription quota unexpectedly. This article explains how to configure rate limits in Perplexity API requests using best practices for Python, JavaScript, and HTTP … Read more

How to Get Citations Field in Perplexity API Response

When you use the Perplexity API to generate search-backed answers, the response includes a citations field that lists the source URLs used. However, many developers find this field missing or empty in their API output. This usually happens because the request was sent without the required parameter that enables citation gathering. This article explains how … Read more