# Open AI API call is very slow

**URL:** <https://forum.bubble.io/t/open-ai-api-call-is-very-slow/371248>\
**Category:** Need help\
**Created:** [May 30, 2025, 1:31pm UTC](https://forum.bubble.io/t/open-ai-api-call-is-very-slow/371248 "2025-05-30T13:31:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tech16](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tech16/32/239890_2.png) [@tech16](https://forum.bubble.io/u/tech16)\
**Post date:** [May 30, 2025, 1:31pm UTC](https://forum.bubble.io/t/open-ai-api-call-is-very-slow/371248/1 "2025-05-30T13:31:05Z")

</div>

Hi,

I am making an API call to gpt-4.1-nano-2025-04-14 chat completion API. I pass it a prompt which is around 290 tokens and the output is around 600 tokens. This is taking around 10.5 seconds in bubble.  
Is it expected to take this long for Open AI API calls in bubble?

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/4/d4ee09d7e529343a606ec422f1aeb49ebc7434a8.png)

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [May 30, 2025, 1:34pm UTC](https://forum.bubble.io/t/open-ai-api-call-is-very-slow/371248/2 "2025-05-30T13:34:59Z")

</div>

The model has a [latency of 0.44](https://openrouter.ai/openai/gpt-4.1-nano) seconds at the moment, and 600 output tokens at [80 tokens per second](https://openrouter.ai/openai/gpt-4.1-nano) = 7.5 seconds.

So, 10 seconds is probably about right.

I’d just use Gemini 2.0 Flash if I were you - same pricing, faster, and better…

---

<div class="post-metadata">

**Author:** ![tech16](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tech16/32/239890_2.png) [@tech16](https://forum.bubble.io/u/tech16)\
**Post date:** [May 30, 2025, 2:13pm UTC](https://forum.bubble.io/t/open-ai-api-call-is-very-slow/371248/3 "2025-05-30T14:13:03Z")

</div>

Thanks, I will check with gemini and see

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [August 8, 2025, 1:31pm UTC](https://forum.bubble.io/t/open-ai-api-call-is-very-slow/371248/4 "2025-08-08T13:31:19Z")

</div>

Closed on August 8, 2025, 1:31pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
