Anyone have an example Using chatGPT to generate an image and passing to MCP tool?

Hi there, wondering if anyone has an example of using chatGPT to generate an image and then call a MCP tool with a publicly available URL, pretty please? (using Open AI App SDK)

eg “Generate me and image of fried eggs and update the recipe”.

I do see api `window.openai.getFileDownloadUrl({ fileId })` but can’t seem to get that working.

chatGPT seems to tell me this is possible, but struggling to get it to work . I have tried base64 urls as an alternative too, but seemed to get stuck with that too.

See tool call - image url is relative , not public `/mct/data…`

1 Like