Creating images with nano banana pro via HTTP Module

:bullseye: What is your goal?

  1. In first step I want to create images with nano banana pro with an API call (HTTP module)

  2. In the second step I want to add an image to the nano banana prompt to adapt the style of the attached image.

:thinking: What is the problem & what have you tried?

it creates the image but I can not transform the data.

I can not transform the data to upload it in google drive. I got this error:

[
    {
        "BildCode": null
    }
]

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

Hey @Pascal_Deutschlander :waving_hand:

Looks like your API call is actually working! I can see the base64 image data coming back in your output under inlineData.data.

The issue is your mapping path. Try:

{{2.data.candidates[1].content.parts[2].inlineData.data}}

Looks like the image is in parts[2] based on your output structure.

Google Drive won’t take raw base64 directly. You’ll need to convert it to binary first. Either use {{base64decode(yourVariable)}} or run it through a buffer module before hitting Google Drive.

Hope this helps!