# Issue Using OpenAI image-generation API

**URL:** <https://forum.bubble.io/t/issue-using-openai-image-generation-api/369103>\
**Category:** APIs\
**Created:** [May 9, 2025, 12:02pm UTC](https://forum.bubble.io/t/issue-using-openai-image-generation-api/369103 "2025-05-09T12:02:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![julianalert](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@julianalert](https://forum.bubble.io/u/julianalert)\
**Post date:** [May 9, 2025, 12:02pm UTC](https://forum.bubble.io/t/issue-using-openai-image-generation-api/369103/1 "2025-05-09T12:02:39Z")

</div>

Hi everyone,

I want to use the [OpenAI Image generation API](https://platform.openai.com/docs/guides/image-generation?image-generation-model=gpt-image-1) in bubble. Basic calls to generate images are ok.

Now I want to use this one:

 ![Screenshot 2025-05-09 at 12.58.13](https://us1.discourse-cdn.com/bubble/original/3X/8/9/89cb9fd6fc90dabdd9e7e0ad8a404003543cf2cd.png)

My goal is to send 4 images to generate 1 image, following OpenAI API docs.  
And ChatGPT tells me it’s impossible to do that in Bubble.

Is it true? Is there a turn around?

What’s the way to accomplish that?

Thank you very much for your time.

---

<div class="post-metadata">

**Author:** ![julianalert](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@julianalert](https://forum.bubble.io/u/julianalert)\
**Post date:** [May 10, 2025, 8:13am UTC](https://forum.bubble.io/t/issue-using-openai-image-generation-api/369103/2 "2025-05-10T08:13:50Z")

</div>

I still didn’t find the way to do that 😬 that’s frustrating. Am I missing something obvious here?

---

<div class="post-metadata">

**Author:** ![finnoliver](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/finnoliver/32/247781_2.png) [@finnoliver](https://forum.bubble.io/u/finnoliver)\
**Post date:** [May 10, 2025, 10:39am UTC](https://forum.bubble.io/t/issue-using-openai-image-generation-api/369103/3 "2025-05-10T10:39:56Z")

</div>

Bubble might not handle multiple images with open ai, so it’s best to merge them outside first, then send that in.

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [May 10, 2025, 12:50pm UTC](https://forum.bubble.io/t/issue-using-openai-image-generation-api/369103/4 "2025-05-10T12:50:34Z")

</div>

Just copy the example as curl and import by curl to create call in bubble api connector.

---

<div class="post-metadata">

**Author:** ![julianalert](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@julianalert](https://forum.bubble.io/u/julianalert)\
**Post date:** [May 10, 2025, 3:16pm UTC](https://forum.bubble.io/t/issue-using-openai-image-generation-api/369103/5 "2025-05-10T15:16:21Z")

</div>

ok so this limitation is real. I’ll have to build it through n8n. well, what a bummer. thanks for the info!

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [May 10, 2025, 5:07pm UTC](https://forum.bubble.io/t/issue-using-openai-image-generation-api/369103/6 "2025-05-10T17:07:16Z")

</div>

I do not believe this issue is real…I think the issue is not forming the call properly…perhaps trying to copy and paste the curl response would work if tried, or just put into the currently empty `[]` a number so `image[]` is not just used multiple times, you use instead `image [0], image [1]` etc…at least that is how I send multiple images for other api providers

---

<div class="post-metadata">

**Author:** ![julianalert](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@julianalert](https://forum.bubble.io/u/julianalert)\
**Post date:** [May 10, 2025, 7:29pm UTC](https://forum.bubble.io/t/issue-using-openai-image-generation-api/369103/7 "2025-05-10T19:29:23Z")

</div>

EDIT: i stopped working on that for a few days, tried again the solution above and it finally worked. Thank you veyr much @boston85719

* * *

i tried to do that (sending image[0], image [1] etc… but it didn’t work.

When you send multiple images for other api providers, you send them individually through 4 inputs or inside only 1 input? OpenAI Api accepts only 1 inputs of 4 images, can’t send 4 images individually

---

<div class="post-metadata">

**Author:** ![lucas.casadevito](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@lucas.casadevito](https://forum.bubble.io/u/lucas.casadevito)\
**Post date:** [May 19, 2025, 9:33pm UTC](https://forum.bubble.io/t/issue-using-openai-image-generation-api/369103/8 "2025-05-19T21:33:53Z")

</div>

Hey, could you post a screenshot of your API connector showing how you solved it? Working on the same thing and wondering how you set up image [0], image [1], etc… Thanks!
