Dynamically send images to open AI API - wrong JSON as response

Good point. If you can point me in the right direction how to find the full payload I will provide it.

From the bubble server logs I can find the following.

Unsuccessful run with just using the arbitrary text:

Unsuccessful run with using the arbitrary text and trying to make it JSON safe:

Content example of the arbitrary text:

In this case I just wanted to get the first image record. It has a JSON stored in a text field:

Getting the first image is an example. I tried various dynamic versions.

I used the solution from jmalmeida to get rid of the quotation marks as stated in this post: