# Generate image by passing image data

**URL:** <https://community.n8n.io/t/generate-image-by-passing-image-data/296446>\
**Category:** Questions\
**Created:** [May 21, 2026, 11:35am UTC](https://community.n8n.io/t/generate-image-by-passing-image-data/296446 "2026-05-21T11:35:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jing\_Yang](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jing_yang/32/62092_2.png) [@Jing\_Yang](https://community.n8n.io/u/Jing_Yang)\
**Post date:** [May 21, 2026, 11:35am UTC](https://community.n8n.io/t/generate-image-by-passing-image-data/296446/1 "2026-05-21T11:35:58Z")

</div>

i want to generate image with either gemini node or http request node. but i not only want to passing the prompt, i also want to passing the images where is generate before with the type of Binary? data? So that my new generated image will combine the image that i generate into the new image.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/0/b/0b666a43299b8d76320a6bdbe2c6dea3e239601c.png)

for more information, i am doing on n8n cloud, not host locally.

or maybe can suggest me any other way to send image data to generate image. Thank you very much. 🙂

---

<div class="post-metadata">

**Author:** ![tamy.santos](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tamy.santos/32/153776_2.png) [@tamy.santos](https://community.n8n.io/u/tamy.santos)\
**Post date:** [May 21, 2026, 12:18pm UTC](https://community.n8n.io/t/generate-image-by-passing-image-data/296446/3 "2026-05-21T12:18:58Z")

</div>

good morning, @Jing_Yang  
Use HTTP Request calling directly the provider’s API that supports image-to-image / image editing, sending the binary image converted to Base64 or multipart according to the provider’s documentation.

---

<div class="post-metadata">

**Author:** ![Jing\_Yang](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jing_yang/32/62092_2.png) [@Jing\_Yang](https://community.n8n.io/u/Jing_Yang)\
**Post date:** [May 21, 2026, 12:40pm UTC](https://community.n8n.io/t/generate-image-by-passing-image-data/296446/4 "2026-05-21T12:40:18Z")

</div>

then, do you have any suggestion of provider? and do you know how to convert binary into Base64?

---

<div class="post-metadata">

**Author:** ![tamy.santos](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tamy.santos/32/153776_2.png) [@tamy.santos](https://community.n8n.io/u/tamy.santos)\
**Post date:** [May 21, 2026, 12:40pm UTC](https://community.n8n.io/t/generate-image-by-passing-image-data/296446/5 "2026-05-21T12:40:46Z")

</div>

do you have access to claude? @Jing_Yang

---

<div class="post-metadata">

**Author:** ![tamy.santos](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tamy.santos/32/153776_2.png) [@tamy.santos](https://community.n8n.io/u/tamy.santos)\
**Post date:** [May 21, 2026, 12:45pm UTC](https://community.n8n.io/t/generate-image-by-passing-image-data/296446/6 "2026-05-21T12:45:23Z")

</div>

> [@Jing\_Yang](#):
>
> do you have any provider suggestions? and do you know how to convert binary to Base64?

@Jing_Yang  
to help:

> [@Encode Base64 from Twilio MMS Fails - Returns filesystem-v2 Instead of Actual Base64 String](https://community.n8n.io/t/153777):
>
> Hey everyone, I’m using n8n Cloud (v1.48.1) and running into an issue when trying to convert a Twilio MMS image into a base64 string. Goal When someone sends a photo to my Twilio MMS number, I want to: Download the image Convert it to a base64 string Use that base64 string in a downstream API (Google Vision, enrichment, AI, etc.) Current Flow Webhook receives MMS Download MMS Image node successfully saves the image (image shows as binary) Encode to Base64 node uses this code: const item …

> **[Extract From File | n8n Docs](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.extractfromfile/#extract-from-file)**
>
> A common pattern in n8n workflows is to receive a file, either from an HTTP Request node (for files you are fetching from a website), a Webhook Node (for files which are sent to your workflow from elsewhere), or from a local source. Data obtained in...

> **[String | n8n Docs](https://docs.n8n.io/data/expression-reference/string/#string)**
>
> Description: Converts plain text to a base64-encoded string | Documentation for n8n, a workflow automation platform.

---

<div class="post-metadata">

**Author:** ![WilsonT3D](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/wilsont3d/32/172632_2.png) [@WilsonT3D](https://community.n8n.io/u/WilsonT3D)\
**Post date:** [May 21, 2026, 4:43pm UTC](https://community.n8n.io/t/generate-image-by-passing-image-data/296446/7 "2026-05-21T16:43:00Z")

</div>

Hi @Jing_Yang ,

You may want to watch this [video](https://www.youtube.com/watch?v=3GyG6uKqmcg&t=360s) (starting from the 6th minute). I believe this is what you’re looking for.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [August 19, 2026, 4:43pm UTC](https://community.n8n.io/t/generate-image-by-passing-image-data/296446/8 "2026-08-19T16:43:30Z")

</div>

Closed on August 19, 2026, 4:43pm UTC

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