# API very slow / returning 5xx errors

**URL:** <https://community.perplexity.ai/t/api-very-slow-returning-5xx-errors/55>\
**Category:** General\
**Created:** [May 15, 2025, 12:11am UTC](https://community.perplexity.ai/t/api-very-slow-returning-5xx-errors/55 "2025-05-15T00:11:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikvang](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Post date:** [May 15, 2025, 12:11am UTC](https://community.perplexity.ai/t/api-very-slow-returning-5xx-errors/55/1 "2025-05-15T00:11:12Z")

</div>

hi there,  
I am testing the perplexity API to see if I can use it in a new app.

It is taking around 47 seconds to return a response. Out of my last 6 tests I got 3 5xx errors and 3 200s.

1. is it normal to get that many 500 errors?
2. is this latency normal?

Not sure I will be able to use it with this kind of performance. Maybe its just a 1 off today?

Here are the details of my call:  
`Company Information: { "id": "e0b0e4d3-1ffb-402e-906a-3d6540216208", "model": "llama-3.1-sonar-huge-128k-online", "created": 1728991890, "usage": { "prompt_tokens": 128, "completion_tokens": 741, "total_tokens": 869 }, "object": "chat.completion", `

thanks,

---

<div class="post-metadata">

**Author:** ![vikvang](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Post date:** [May 15, 2025, 12:11am UTC](https://community.perplexity.ai/t/api-very-slow-returning-5xx-errors/55/2 "2025-05-15T00:11:14Z")

</div>

Also here are my parameters:

max\_tokens: 1000, // Adjust as needed  
temperature: 0.2,  
top\_p: 0.9,  
return\_citations: true,  
search\_domain\_filter: [“[https://fr.indeed.com/](https://fr.indeed.com/)”, “[https://www.glassdoor.fr/com/](https://www.glassdoor.fr/com/)”, “[https://www.linkedin.com/](https://www.linkedin.com/)”],  
return\_images: false,  
return\_related\_questions: false,  
search\_recency\_filter: “month”,  
top\_k: 0,  
stream: false,  
presence\_penalty: 0,  
frequency\_penalty: 1

---

<div class="post-metadata">

**Author:** ![vikvang](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Post date:** [May 15, 2025, 12:11am UTC](https://community.perplexity.ai/t/api-very-slow-returning-5xx-errors/55/3 "2025-05-15T00:11:16Z")

</div>

Hey, I recommend using sonar-large instead; it is much more stable.
