# Userapi multiple image generation?

**URL:** <https://community.make.com/t/userapi-multiple-image-generation/75110>\
**Category:** Questions\
**Tags:** api, webhooks\
**Created:** [March 14, 2025, 7:53am UTC](https://community.make.com/t/userapi-multiple-image-generation/75110 "2025-03-14T07:53:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhkim.withbaily](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@dhkim.withbaily](https://community.make.com/u/dhkim.withbaily)\
**Post date:** [March 14, 2025, 7:53am UTC](https://community.make.com/t/userapi-multiple-image-generation/75110/1 "2025-03-14T07:53:37Z")

</div>

Hi, I’ve learned how to generate images using UserApi and webhooks in three scenarios from YouTube.

1. User API
2. Webhook → UserApi
3. Webhook → HTTP → ~~~

My Goal: generate multiple images.

However, when given multiple prompts, I am unable to plan a scenario using iterator or repeator.  
I could not find any source in goole or [make.com](http://make.com) community.

Could you give me some hints?

Thank you! 😊

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [March 14, 2025, 1:08pm UTC](https://community.make.com/t/userapi-multiple-image-generation/75110/2 "2025-03-14T13:08:45Z")

</div>

Welcome to the Make community!

To do this, you can try using the Userapi.AI - API layer to Midjourney “ **Imagine** ” module —

> Asks Midjourney to create an image by a specified prompt

For more information, see [https://www.make.com/en/integrations/userapi-ai](https://www.make.com/en/integrations/userapi-ai), and [https://www.make.com/en/help/app/userapi-ai](https://www.make.com/en/help/app/userapi-ai) in the help centre.

For more information, do view these similar questions previously asked by other community members, which may answer your question:

- [UserAPI.ai - How to Parse Upscale (U1) Action](https://community.make.com/t/userapi-ai-how-to-parse-upscale-u1-action/46075)
- [Userapi.AI - API layer to Midjourney](https://community.make.com/t/userapi-ai-api-layer-to-midjourney/34755)

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

**Author:** ![dhkim.withbaily](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@dhkim.withbaily](https://community.make.com/u/dhkim.withbaily)\
**Post date:** [March 16, 2025, 11:51pm UTC](https://community.make.com/t/userapi-multiple-image-generation/75110/3 "2025-03-16T23:51:16Z")

</div>

Yes, i have used the userapi.ai imagine and upscale module to generate an image, and it works well for only one image generation.

However, i am stuck in making several images at once by using an array of prompts.

Can i get some more hints? I have read the previous questioned asked but did not help.

Thank You.

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [March 17, 2025, 2:21am UTC](https://community.make.com/t/userapi-multiple-image-generation/75110/4 "2025-03-17T02:21:50Z")

</div>

> [@dhkim.withbaily](#):
>
> array of prompts

## “Looping” Through Array Items

When you see an ARRAY, think ITERATOR module.

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/3/23a694ffc3939712667b383fd1b497de5d8afecb.png)

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/b/bb0162b13bbd34dbfbb41c5c399be413a9b592ec.png)

Then,

## Combining Bundles Using Aggregators

Every result (item/record) from trigger/iterator/list/search/match modules will output a bundle. This can result in multiple bundles, which then trigger multiple operations in future modules (one operation per bundle). To “combine” multiple bundles into a single variable, you’ll need to use an aggregator of some sort.

[Aggregators](https://www.make.com/en/help/modules/aggregator.html) are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the [**Array aggregator**](https://www.make.com/en/help/tools/flow-control.html#array-aggregator) module. The next popular aggregator is the [**Text Aggregator**](https://www.make.com/en/help/tools/tools.html#text-aggregator) which is very flexible and can apply to many use-cases like building of JSON, CSV, HTML.

You can find out more about the other types of aggregator modules here:

- [Array aggregator](https://www.make.com/en/help/tools/flow-control.html#array-aggregator)
- [Text aggregator](https://www.make.com/en/help/tools/tools.html#text-aggregator)
- [Numeric aggregator](https://www.make.com/en/help/tools/tools.html#numeric-aggregator)
- [Table aggregator](https://www.make.com/en/help/tools/tools.html#table-aggregator)
- [JSON aggregator](https://www.make.com/en/help/tools/json.html#aggregate-to-json)
- [CSV aggregator](https://www.make.com/en/help/apps/file-and-document-management/csv.html#create-csv)
- [Archive (ZIP) aggregator](https://www.make.com/en/help/apps/built-in-apps/archive.html#create-an-archive-973677)
- _other app-specific aggregators_

## Mapping a Specific Structure Into a Complex Field

The **Array Aggregator** module is very powerful because it allows you to build a **complex array of collections** for a later module’s field to map multiple items (collections) to it.

This is done using the “ **Target structure type** ” field in an Array Aggregator module.

Here is an example:

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/e/bea4ecffec9daf39ca9cba77c0b2a40d160e7292.png)

As you can see, the “Map” toggle on complex fields are used when you have an array. You can easily build an array variable to map to a future module’s field, by using an Array Aggregator module and select the “Target Structure Type” as the future module’s field you have mapped the array into.

## Example

Here is an example of how your scenario could look:  
[![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/6/d/6d9029f238d0e4e1f6da77dca8ba425d5739aac9.png)](https://samliew.com/make-expert?Referrer=Make)

This is just an example. Your final solution may or may not look like this depending on your requirements and actual input data.

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

**Author:** ![dhkim.withbaily](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@dhkim.withbaily](https://community.make.com/u/dhkim.withbaily)\
**Post date:** [March 17, 2025, 6:20am UTC](https://community.make.com/t/userapi-multiple-image-generation/75110/5 "2025-03-17T06:20:20Z")

</div>

Thank you for the answer!

But as you see, using userAPI needs a webhook in an another scenario.  
Becase it is not the official api of Midjourney, it needs a webhook to receive a signal when generation of midjourney ends.

my version of creating image using userapi is these 3 steps.

 ![스크린샷 2025-03-17 오후 3.08.17](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/3/e37986da9e778c51b4ff7b558aa2178e380d0f18.png)  
 ![스크린샷 2025-03-17 오후 3.08.30](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/9/0/908d15e858faa9e2ecb8f4b9b8bf03cb797666ce.png)  
 ![스크린샷 2025-03-17 오후 3.08.43](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/8/186007ad04102bb6428e30f36bddecad18adba06.png)

However, I cannot create a scenario where a signal is sent, and the next scenario starts only after the last generation of the User API iteration is completed, because each generation sends a webhook.

thank you.

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [March 17, 2025, 6:30am UTC](https://community.make.com/t/userapi-multiple-image-generation/75110/6 "2025-03-17T06:30:03Z")

</div>

You could probably add a query string to the last call if the Bundle Order Position = Total Number of Bundles.

 ![Screenshot_2025-03-17_140349](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/2/7270bf660112d37dd30d09ad8a6ad0ddcc46631b.png)

 ![Screenshot_2025-03-17_140349 (2)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/e/2e8a11013c8ff566b19607d1295a365677440684.png)

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

**Author:** ![dhkim.withbaily](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@dhkim.withbaily](https://community.make.com/u/dhkim.withbaily)\
**Post date:** [March 18, 2025, 6:28am UTC](https://community.make.com/t/userapi-multiple-image-generation/75110/7 "2025-03-18T06:28:15Z")

</div>

Thank you very much for the hints!! i believe i’m getting closer to my goal.

 ![스크린샷 2025-03-18 오후 3.07.08](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/c/3c783ad4bd06e65004af59770efdde185a1ebd04.png)  
is this what you have meant??  
i tried to parse a parameter called temp.

this userapi generates multiple images , but i could not receive any query string at my webhook.  
It just worked as usual.

 ![스크린샷 2025-03-18 오후 3.27.05](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/7/77521709f27c83c463a7978ef950d65f0567ceee.png)

how can i parse a parameter to an another scenario like you??  
and moreover, i want all the hash of images made to be sent to an another scenario but i think there isn’t a way to do it. am i right??

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [June 16, 2025, 5:42am UTC](https://community.make.com/t/userapi-multiple-image-generation/75110/8 "2025-06-16T05:42:31Z")

</div>


