How to access image taken by thunkable Camera by ChatGPT

I am trying to create an app, that can take a picture and generate image information through ChatGPT.
Below is the detailed information:


I can create a picture but when click “Generate text”, it showed:
"It seems like you’ve pasted a blob URL, which is typically a reference to a temporary file or resource created in a web application, in this case from Thunkable. Unfortunately, I can’t access or open blob URLs directly. If you need help with something specific from a Thunkable project or any other platform, you might consider downloading the relevant content and describing it, or providing more context or information about the problem or question you have.:

I think the main issue is ChatGPT cannot access the image.

Can someone help out? Thanks

You can’t use the built-in OpenAI blocks to upload images. You’ll need to use the OpenAI API with the Thunkable Web API blocks to do that.

Hello @alex2013.niuhl54uc
If you want to get information about an image you could use the “description of image from” block

I tried but the result is some strange, and sometime it can not offer description.

Thank you for your response. This is my first time to use thunkable to connect API. Can you offer me details about how to set request and where should I put API key. Thanks a lot

It’s not easy but there are some examples in this topic: Open Ai source ChatGPT API undefined response

It took me many hours to figure out how to do what I wanted to do for my chat bot: Chat AI & Image Generator (aka Synthi)

Thanks so much. I checked open AI API Docs guide (https://platform.openai.com/docs/guides/vision) and I think below code maybe very helpful for me. Unfortunately I am thunkable beginner and do not know how to transfer this code into thunkable block language. I am wondering do you have time to help me out? Thanks a lot.

I’m unfortunately not able to take on any new consulting clients right now. There may be other people who you can hire or who can offer advice about this. But as I said, it’s complicated. I don’t recommend starting with the OpenAI API until you’re pretty comfortable with Thunkable and have made a few lengthy projects.

OK, Thanks. Do not mind.