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

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

To use Perplexity programmatically in your own applications, scripts, or third-party tools, you need an API key. This key acts as a unique token that authenticates your requests to the Perplexity API. Without it, you cannot access the search, chat, or completion endpoints. The process requires a paid Perplexity Pro subscription. Free accounts do not … Read more

Perplexity API Key Revoked Without Notice: Cause and Recovery

You are using the Perplexity API in your application or script, and suddenly requests fail with a 401 or 403 error. The API key that worked minutes ago now returns an authentication failure. This often happens without any warning email or dashboard notification from Perplexity. This article explains the technical causes behind silent API key … 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