# Automated image generation wit DALL-E OpenAI API

**URL:** <https://forum.knime.com/t/automated-image-generation-wit-dall-e-openai-api/78522>\
**Category:** KNIME Extensions\
**Tags:** image-processing\
**Created:** [April 15, 2024, 1:24pm UTC](https://forum.knime.com/t/automated-image-generation-wit-dall-e-openai-api/78522 "2024-04-15T13:24:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bei\_paul](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/e68b1a/32.png) [@bei\_paul](https://forum.knime.com/u/bei_paul)\
**Post date:** [April 15, 2024, 1:24pm UTC](https://forum.knime.com/t/automated-image-generation-wit-dall-e-openai-api/78522/1 "2024-04-15T13:24:05Z")

</div>

Hey, I use the OpenAI DALL E View node to generate images.  
In this node, I can only input a prompt for one image. Is it possible to generate many images with different prompts in an automatic way with flow variables?

---

<div class="post-metadata">

**Author:** ![thor\_landstrom](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor_landstrom/32/65984_2.png) [@thor\_landstrom](https://forum.knime.com/u/thor_landstrom)\
**Post date:** [April 23, 2024, 1:55pm UTC](https://forum.knime.com/t/automated-image-generation-wit-dall-e-openai-api/78522/2 "2024-04-23T13:55:15Z")

</div>

Hey @bei_paul,

Welcome to the Community!

Have you tried wrapping it in a loop? Specifically ‘[Table Row to Variable Loop Start](https://hub.knime.com/knime/extensions/org.knime.features.base/latest/org.knime.base.node.meta.looper.variable.start.LoopStartVariable3NodeFactory/)’ as you mention you want to pass prompts in with flow variables.

The node will go row by row and pass it in as a flow variable, which is what it sounds like you are looking for.

You can wrap your logic for generating an image in these two nodes:  
 ![Screenshot 2024-04-23 at 08.52.11](https://forum-cdn.knime.com/uploads/default/original/3X/3/9/398cc58d16abcc957532d4fbaaf9ac7029fab6e0.png)

Hope this helps,  
TL

---

<div class="post-metadata">

**Author:** ![bei\_paul](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/e68b1a/32.png) [@bei\_paul](https://forum.knime.com/u/bei_paul)\
**Post date:** [April 23, 2024, 3:18pm UTC](https://forum.knime.com/t/automated-image-generation-wit-dall-e-openai-api/78522/3 "2024-04-23T15:18:07Z")

</div>

Hey,  
Thank you very much! I will try this (🙂

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [April 30, 2024, 3:18pm UTC](https://forum.knime.com/t/automated-image-generation-wit-dall-e-openai-api/78522/4 "2024-04-30T15:18:33Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
