Sending multiple dynamic image URL via API

Hello, I’m having trouble sending dynamic image URLs via API to ChatGPT vision to extract text.

I have image uploaders, and images are saved into database, after uploaded by user without login.

I need to send those images to ChatGPT Vision for text extraction, bud i cannot find a proper way to extract those images URLs and add them as dynamic values to JSON body.

I have this JSON body setup:

{
“model”: “gpt-4o”,
“messages”: [
{
“role”: “system”,
“content”: “You are a helpful assistant that extracts text from images.”
},
{
“role”: “user”,
“content”: [
{
“type”: “text”,
“text”: “Extract the text from the following images:”
},
{
“type”: “image_url”,
“image_url”: {
“url”: “<File1_url>”
}
},
{
“type”: “image_url”,
“image_url”: {
“url”: “<File2_url>”
}
},
{
“type”: “image_url”,
“image_url”: {
“url”: “<File3_url>”
}
},
{
“type”: “image_url”,
“image_url”: {
“url”: “<File4_url>”
}
},
{
“type”: “image_url”,
“image_url”: {
“url”: “<File5_url>”
}
},
{
“type”: “image_url”,
“image_url”: {
“url”: “<File6_url>”
}
},
{
“type”: “image_url”,
“image_url”: {
“url”: “<File7_url>”
}
},
{
“type”: “image_url”,
“image_url”: {
“url”: “<File8_url>”
}
}
]
}
],
“max_tokens”: 300
}

With this JSON body i can’t initialize call because of invalid image.

But i don’t know how to insert those dynamic values (image URLs), uploaded by user, into dynamic values from database.

Can anyone please help me with that?

Thank you very much.

Screenshot the workflow and api connector call





Put a demo image links into the api connector value and initiate the call and screenshot the result of the output

I’ve put in 8 images URL - all the same and it works.


Clearly I am not capable of scraping images URL from database :frowning:

In the image value in the workflow add https before the image link it will look like this https:current page’s image

I’ve tryed this:


But i get nothing :frowning:

I also dont know what to put in here:
image
Maybe problem is here.

Only use https: not https://

It’s dointg the same thing:


Initialize call doesnt work either:

Maybe I’m doing something wrong sending parameters or setting type of content for the pages, IDK. Maybe i need to hire a more experinced bubble dev for resolving my issues…