# Bug Reports

**URL:** https://community.perplexity.ai/c/bug-reports/10.md?page=4

[Latest](https://community.perplexity.ai/latest.md) · [Categories](https://community.perplexity.ai/categories.md) · [Tags](https://community.perplexity.ai/tags.md)

**Page:** 5

---

## [Docs have non working code: Completions.create() got an unexpected keyword argument 'search\_mode'](https://community.perplexity.ai/t/docs-have-non-working-code-completions-create-got-an-unexpected-keyword-argument-search-mode/770)

<div class="topic-metadata">

**Author:** [@Dino\_Fancellu](https://community.perplexity.ai/u/Dino_Fancellu)\
**Replies:** 1\
**Last updated:** [July 29, 2025, 8:05pm UTC](https://community.perplexity.ai/t/docs-have-non-working-code-completions-create-got-an-unexpected-keyword-argument-search-mode/770 "2025-07-29T20:05:14Z")

</div>

:bug: Describe the Bug Example code doesn’t take search\_mode, OpenAI rejects it Error: Completions.create() got an unexpected keyword argument ‘search\_mode’ :white\_check\_mark: Expected Behavior docs.perplexity.ai/guide…

---

## [Structured output is not structured](https://community.perplexity.ai/t/structured-output-is-not-structured/712)

<div class="topic-metadata">

**Author:** [@Slavan\_Slavan](https://community.perplexity.ai/u/Slavan_Slavan)\
**Replies:** 4\
**Last updated:** [July 24, 2025, 6:21pm UTC](https://community.perplexity.ai/t/structured-output-is-not-structured/712 "2025-07-24T18:21:23Z")

</div>

:bug: Describe the Bug Structured output doesnt work stable - with one code and one environment it builds sometimes structured output and sometimes not. It works so even with structured code example from documentation. …

---

## [Subject: Urgent: Repeated ClientResponseError 400 Bad Request on Perplexity API](https://community.perplexity.ai/t/subject-urgent-repeated-clientresponseerror-400-bad-request-on-perplexity-api/626)

<div class="topic-metadata">

**Author:** [@Manna\_Maker\_AI](https://community.perplexity.ai/u/Manna_Maker_AI)\
**Replies:** 3\
**Last updated:** [July 5, 2025, 1:40pm UTC](https://community.perplexity.ai/t/subject-urgent-repeated-clientresponseerror-400-bad-request-on-perplexity-api/626 "2025-07-05T13:40:17Z")

</div>

Subject: Urgent: Repeated ClientResponseError 400 Bad Request on Perplexity API Dear Perplexity AI Support Team, I am reaching out regarding a critical issue with the Perplexity API that is affecting my application hos…

---

## ["sonar-pro" Model Returns 400 Invalid Model Error Despite Valid Setup](https://community.perplexity.ai/t/sonar-pro-model-returns-400-invalid-model-error-despite-valid-setup/623)

<div class="topic-metadata">

**Author:** [@Nick\_Groves](https://community.perplexity.ai/u/Nick_Groves)\
**Replies:** 1\
**Last updated:** [July 5, 2025, 12:58am UTC](https://community.perplexity.ai/t/sonar-pro-model-returns-400-invalid-model-error-despite-valid-setup/623 "2025-07-05T00:58:46Z")

</div>

:bug: Describe the Bug Calling the /chat/completions endpoint with a valid sonar-pro model results in a 400 error stating “Invalid model ‘sonar-pro’” — even though this is listed as a supported model in the documentation…

---

## [Request with country code:"PR" fails in Chat Completions API](https://community.perplexity.ai/t/request-with-country-code-pr-fails-in-chat-completions-api/610)

<div class="topic-metadata">

**Author:** [@Michal\_Horzela](https://community.perplexity.ai/u/Michal_Horzela)\
**Replies:** 1\
**Last updated:** [July 1, 2025, 10:22am UTC](https://community.perplexity.ai/t/request-with-country-code-pr-fails-in-chat-completions-api/610 "2025-07-01T10:22:36Z")

</div>

:bug: Describe the Bug HTTP 400 returnd on Completion API when request is done with “web\_search\_options” “country” param set to : “PR” (proper 2-digit code for Puerto Rico) :white\_check\_mark: Expected Behavior Expect…

---

## [Location Filter is borderline useless in the API](https://community.perplexity.ai/t/location-filter-is-borderline-useless-in-the-api/566)

<div class="topic-metadata">

**Author:** [@\_he](https://community.perplexity.ai/u/_he)\
**Replies:** 0\
**Last updated:** [June 18, 2025, 6:19pm UTC](https://community.perplexity.ai/t/location-filter-is-borderline-useless-in-the-api/566 "2025-06-18T18:19:53Z")

</div>

NOTE THAT I HAD TO REMOVE THE H FROM HTTPS LINKS BECAUSE THAT THIS FORUM SAID “NEW USERS CAN ONLY HAVE 2 LINKS PER POST”. :bug: Describe the Bug Instead of giving actual recommendations of nearby restaurants or being ab…

---

## [Issue with Sonar through API (Unsure of other models)](https://community.perplexity.ai/t/issue-with-sonar-through-api-unsure-of-other-models/429)

<div class="topic-metadata">

**Author:** [@Manan\_Pandya](https://community.perplexity.ai/u/Manan_Pandya)\
**Replies:** 1\
**Last updated:** [June 8, 2025, 9:43pm UTC](https://community.perplexity.ai/t/issue-with-sonar-through-api-unsure-of-other-models/429 "2025-06-08T21:43:11Z")

</div>

:bug: Describe the Bug So i am using the sonar api to power a real time search element. When i tested with “Give me latest news on Donald Trump” it replied back with Donald Trump is scheduled to take office for the secon…

---

## [Invalid verification ISO 3166-1 alpha-2 country code for Serbia](https://community.perplexity.ai/t/invalid-verification-iso-3166-1-alpha-2-country-code-for-serbia/427)

<div class="topic-metadata">

**Author:** [@vandesa003](https://community.perplexity.ai/u/vandesa003)\
**Replies:** 3\
**Last updated:** [June 8, 2025, 9:35pm UTC](https://community.perplexity.ai/t/invalid-verification-iso-3166-1-alpha-2-country-code-for-serbia/427 "2025-06-08T21:35:13Z")

</div>

:bug: Describe the Bug When pass the country as “RS”, the api returns 400 error code. { "error": { "message": "Validation error: country must be provided as a valid 2-digit ISO country code, got RS", "type": "…

---

## [Reasoning not always correctly enclosed in \`\<think\>...\</think\>\`](https://community.perplexity.ai/t/reasoning-not-always-correctly-enclosed-in-think-think/199)

<div class="topic-metadata">

**Author:** [@tonyaldon](https://community.perplexity.ai/u/tonyaldon)\
**Replies:** 4\
**Last updated:** [June 2, 2025, 12:27am UTC](https://community.perplexity.ai/t/reasoning-not-always-correctly-enclosed-in-think-think/199 "2025-06-02T00:27:02Z")

</div>

:bug: Describe the Bug Reasoning when using r1-1776 model seems to not be always correctly enclosed in \<think\>...\</think\>. :white\_check\_mark: Expected Behavior I expected the reasoning to always be enclosed in \<think\>.…

---

## [Posting image to sonar-deep-research leads to 500 error](https://community.perplexity.ai/t/posting-image-to-sonar-deep-research-leads-to-500-error/204)

<div class="topic-metadata">

**Author:** [@yosun](https://community.perplexity.ai/u/yosun)\
**Replies:** 5\
**Last updated:** [June 2, 2025, 12:26am UTC](https://community.perplexity.ai/t/posting-image-to-sonar-deep-research-leads-to-500-error/204 "2025-06-02T00:26:21Z")

</div>

:bug: Describe the Bug Posted an image to sonar-deep-research but got a 500 error :white\_check\_mark: Expected Behavior What you expected to happen. :cross\_mark: Actual Behavior HTTP/1.1 500 Internal Server Error Date: …

---

## [Unrecognized .edu address](https://community.perplexity.ai/t/unrecognized-edu-address/207)

<div class="topic-metadata">

**Author:** [@sad](https://community.perplexity.ai/u/sad)\
**Replies:** 3\
**Last updated:** [May 25, 2025, 10:52pm UTC](https://community.perplexity.ai/t/unrecognized-edu-address/207 "2025-05-25T22:52:30Z")

</div>

:bug: Describe the Bug I have a subdomain .edu as my school uses all Microsoft software and their ecosystem they utilize live.bucks.edu but years ago it was student.bucks.edu but .edu nonetheless for sure. RedactedImADu…

---

## [Is tier 3 worth it?](https://community.perplexity.ai/t/is-tier-3-worth-it/125)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 1\
**Last updated:** [May 25, 2025, 10:12pm UTC](https://community.perplexity.ai/t/is-tier-3-worth-it/125 "2025-05-25T22:12:07Z")

</div>

Hello. I’m an independent consultant. I’m considering throwing $500 into my account to get to tier-3 status, because I could really use the search\_domain\_filter option. However, $500 is a lot to me, so I’m hesitating. C…

---

## [Order of citations and images](https://community.perplexity.ai/t/order-of-citations-and-images/132)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 1\
**Last updated:** [May 16, 2025, 11:07pm UTC](https://community.perplexity.ai/t/order-of-citations-and-images/132 "2025-05-16T23:07:39Z")

</div>

Scattered through a response might be \[1\], \[2\], \[3\]… Citations are listed separate. Can I assume that \[1\] == citations\[0\], \[2\] == citations\[1\], etc.? Also, what do the images correspond to? Are they random?

---

## [\[BUG\] - Streaming Broken with Sonar Reasoning Pro](https://community.perplexity.ai/t/bug-streaming-broken-with-sonar-reasoning-pro/129)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 2\
**Last updated:** [May 16, 2025, 9:11pm UTC](https://community.perplexity.ai/t/bug-streaming-broken-with-sonar-reasoning-pro/129 "2025-05-16T21:11:15Z")

</div>

Description The new sonar-reasoning-pro model returns an internal server error when attempting to use streaming. Below is an example API call: import os from openai import OpenAI client = OpenAI(api\_key=os.environ.get("…

---

## [Request for Auto-Verification of Images in Perplexity API](https://community.perplexity.ai/t/request-for-auto-verification-of-images-in-perplexity-api/136)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 0\
**Last updated:** [May 15, 2025, 12:28am UTC](https://community.perplexity.ai/t/request-for-auto-verification-of-images-in-perplexity-api/136 "2025-05-15T00:28:20Z")

</div>

Request for Auto-Verification of Images in Perplexity API Dear Team Perplexity, I hope this message finds you well. As a verified user of the Perplexity API, I’ve noticed that the images provided in the API responses st…

---

## [Disable search in API](https://community.perplexity.ai/t/disable-search-in-api/135)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 1\
**Last updated:** [May 15, 2025, 12:28am UTC](https://community.perplexity.ai/t/disable-search-in-api/135 "2025-05-15T00:28:16Z")

</div>

How can I disable the sonar reasoning search function in the API? I mainly want to use the uncensored version of the Deepseek R1 model.

---

## [Can I disable the built-in citation for some requests?](https://community.perplexity.ai/t/can-i-disable-the-built-in-citation-for-some-requests/134)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 2\
**Last updated:** [May 15, 2025, 12:28am UTC](https://community.perplexity.ai/t/can-i-disable-the-built-in-citation-for-some-requests/134 "2025-05-15T00:28:09Z")

</div>

It’s unnecessary for my service to enable the citation feature all the time, so I’m wondering if it’s possible to disable it by a slight tweak?

---

## [API billing logic](https://community.perplexity.ai/t/api-billing-logic/131)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 0\
**Last updated:** [May 15, 2025, 12:27am UTC](https://community.perplexity.ai/t/api-billing-logic/131 "2025-05-15T00:27:51Z")

</div>

If i am using api to get response and if the api returns 5xx or other then success, will I be charged ?

---

## [API response is different to web response](https://community.perplexity.ai/t/api-response-is-different-to-web-response/130)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 1\
**Last updated:** [May 15, 2025, 12:27am UTC](https://community.perplexity.ai/t/api-response-is-different-to-web-response/130 "2025-05-15T00:27:47Z")

</div>

I love the answers for the web input, IE I ask what does the company at www.websitename.com do But when I ask this via the API, and use the sonar model. I get Unfortunately, the search results do not provide specific in…

---

## [Completions api is not giving back only json](https://community.perplexity.ai/t/completions-api-is-not-giving-back-only-json/127)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 8\
**Last updated:** [May 15, 2025, 12:27am UTC](https://community.perplexity.ai/t/completions-api-is-not-giving-back-only-json/127 "2025-05-15T00:27:20Z")

</div>

I am requesting a json, but get it back as a text: { "model": "sonar", "messages": \[ { "role": "system", "content": "Be precise and concise." }, { "role": "user", "content": "Tell…

---

## [Modify/Select sources to answer from](https://community.perplexity.ai/t/modify-select-sources-to-answer-from/124)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 2\
**Last updated:** [May 15, 2025, 12:26am UTC](https://community.perplexity.ai/t/modify-select-sources-to-answer-from/124 "2025-05-15T00:26:48Z")

</div>

Is there a way for selecting the sources. I am building a business specific chatbot using perplexity-api, but the sources are too generic. How can I get sources which are authentic/reputable For example: If I ask a que…

---

## [Not being able to generate images, I am pro user but I am not able to generate images ? can someone guide me?](https://community.perplexity.ai/t/not-being-able-to-generate-images-i-am-pro-user-but-i-am-not-able-to-generate-images-can-someone-guide-me/123)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 1\
**Last updated:** [May 15, 2025, 12:26am UTC](https://community.perplexity.ai/t/not-being-able-to-generate-images-i-am-pro-user-but-i-am-not-able-to-generate-images-can-someone-guide-me/123 "2025-05-15T00:26:39Z")

</div>

import requests import json import random from datetime import datetime def generate\_facebook\_post(api\_key, topic=“positivity”): “”“Generates post content and image using Perplexity AI”“” try: # Generate text post …

---

## [Where can i find the price of perplexity API CHAT models (not online)?](https://community.perplexity.ai/t/where-can-i-find-the-price-of-perplexity-api-chat-models-not-online/122)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 1\
**Last updated:** [May 15, 2025, 12:23am UTC](https://community.perplexity.ai/t/where-can-i-find-the-price-of-perplexity-api-chat-models-not-online/122 "2025-05-15T00:23:13Z")

</div>

I am still using llama 70b chat via perplexyty API because of the free included api credits in the perplexity subscription. But 1 euro per million tokens seems overpriced nowadays for this model. But I cannot find a new …

---

## [The API returns Citations not as a separate independent field, but in the body of the Content field. What's the problem?](https://community.perplexity.ai/t/the-api-returns-citations-not-as-a-separate-independent-field-but-in-the-body-of-the-content-field-whats-the-problem/121)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 0\
**Last updated:** [May 15, 2025, 12:23am UTC](https://community.perplexity.ai/t/the-api-returns-citations-not-as-a-separate-independent-field-but-in-the-body-of-the-content-field-whats-the-problem/121 "2025-05-15T00:23:06Z")

</div>

Previously, everything worked as in API Reference " “id”: “3c90c3cc-0d44-4b50-8888-8dd25736052a”, “model”: “sonar”, “object”: “chat.completion”, “created”: 1724369245, “citations”: \[ “Astro for kids: How many star…

---

## [Sonar-pro API problem](https://community.perplexity.ai/t/sonar-pro-api-problem/118)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 0\
**Last updated:** [May 15, 2025, 12:22am UTC](https://community.perplexity.ai/t/sonar-pro-api-problem/118 "2025-05-15T00:22:53Z")

</div>

When using the sonar-pro API, the cost is charged even though there is no result.

---

## [Is sonar-reasoning the same as deepseek-reasoner?](https://community.perplexity.ai/t/is-sonar-reasoning-the-same-as-deepseek-reasoner/117)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 0\
**Last updated:** [May 15, 2025, 12:22am UTC](https://community.perplexity.ai/t/is-sonar-reasoning-the-same-as-deepseek-reasoner/117 "2025-05-15T00:22:49Z")

</div>

I would like more information about your model offerings in your API. Is sonar-reasoning based on deepseek-reasoner? If it isn’t a verbatim instance, what has been changed?

---

## [Why don't I receive the same level of response using the API as I do using the official UI search?](https://community.perplexity.ai/t/why-dont-i-receive-the-same-level-of-response-using-the-api-as-i-do-using-the-official-ui-search/116)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 9\
**Last updated:** [May 15, 2025, 12:22am UTC](https://community.perplexity.ai/t/why-dont-i-receive-the-same-level-of-response-using-the-api-as-i-do-using-the-official-ui-search/116 "2025-05-15T00:22:44Z")

</div>

Hello, I’m starting to use the Perplexity API to integrate information query functionalities into an ERP. As I’m just beginning, I suspect I might be doing something wrong. The issue is that a simple question like “Is t…

---

## [Request for small sonar model](https://community.perplexity.ai/t/request-for-small-sonar-model/114)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 2\
**Last updated:** [May 15, 2025, 12:17am UTC](https://community.perplexity.ai/t/request-for-small-sonar-model/114 "2025-05-15T00:17:40Z")

</div>

We’re currently using the llama-3.1-sonar-small-128k-online model, which is set to be deprecated on 2025-02-22. We’re moving over to the new sonar model but noticing it is significantly slower than the legacy small model…

---

## [Search\_domain\_filter issues](https://community.perplexity.ai/t/search-domain-filter-issues/113)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 1\
**Last updated:** [May 15, 2025, 12:17am UTC](https://community.perplexity.ai/t/search-domain-filter-issues/113 "2025-05-15T00:17:31Z")

</div>

saw a q about this arg not working below, but want to flush it out. seeing: TypeError: create() got an unexpected keyword argument ‘search\_domain\_filter’ when using: response = client.chat.completions.create( mode…

---

## [How can I use new model: soner-pro through MCP with Claude?](https://community.perplexity.ai/t/how-can-i-use-new-model-soner-pro-through-mcp-with-claude/112)

<div class="topic-metadata">

**Author:** [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Replies:** 0\
**Last updated:** [May 15, 2025, 12:17am UTC](https://community.perplexity.ai/t/how-can-i-use-new-model-soner-pro-through-mcp-with-claude/112 "2025-05-15T00:17:24Z")

</div>

Hi all, I’ve been notified that there’s coming a new AI model and accordingly new documentations. I have updated my API key. My MCP config setting doesn’t have model description so that Perplexity still uses llama after …

[Previous page](https://community.perplexity.ai/c/bug-reports/10.md?page=3)

[Next page](https://community.perplexity.ai/c/bug-reports/10.md?page=5)
