Issue with OpenAI Images API returning only b64_json

Hi,

I’m using Make’s HTTP module to call the OpenAI Images API at https://api.openai.com/v1/images/generations.

  • When I don’t set response_format, the API response only includes b64_json.

  • When I explicitly set "response_format": "url", the module throws unknown parameter: response_format.

  • According to OpenAI’s documentation, response_format: "url" should be valid and return a URL instead of base64.

Can someone confirm if the HTTP module is compatible with the current OpenAI Images API? and how to properly get the URL output instead of base64? I’ve gone down the base64 route and this hasnt been successful either.

Thanks y’all

After rechecking the openai docs I have been able to get a URL response from dall-e-3 instead of the gpt-image-1 response which apparently only bring back the base64 string.

response_format

string or null

Optional

Defaults to url

The format in which generated images with dall-e-2 and dall-e-3 are returned. Must be one of url or b64_json. URLs are only valid for 60 minutes after the image has been generated. This parameter isn’t supported for gpt-image-1 which will always return base64-encoded images.”

We can consider this post closed :vulcan_salute:

1 Like

Hello @Shiningwarren :waving_hand:

Thank you very much for stopping by and sharing the solution! I believe other Makers will appreciate it! :slight_smile: