Hey @Aishwarya_Sharma β the quality difference you are seeing between Perplexity Pro (the web product) and the sonar-pro API is expected, not a bug.
Perplexity Pro in the browser runs a multi-step Pro Search pipeline β multiple searches, page fetching, cross-referencing, and synthesis. A standard sonar-pro API call does a single-step search, which produces faster but less thorough results.
To get quality closer to the web experience, use the Agent API with the pro-search preset:
This runs the same multi-step reasoning pipeline that powers the web product. You can also use sonar-pro with search_type="pro" and stream=True if you prefer the Sonar API format.
The tradeoff is cost β Pro Search uses more compute and web searches, so it is pricier per request. For simple factual queries, standard sonar-pro is often sufficient. For research-grade answers, the pro-search preset is the way to go.