#Do Image URLs generated expire - Signature not valid in the specified time frame

8 messages · Page 1 of 1 (latest)

nova stone
#

First off - so excited there's an API. I'm about to post what I started building here.

I have noticed though that it seems like all the image links I get back expire after some time frame. Is this the expected behavior?

I know I can also opt to get the images as base64, is the suggested action to take on my side to store the images somewhere on my own and not rely on the OpenAI generated links?

Here's an example of a link that is expired:
https://oaidalleapiprodscus.blob.core.windows.net/private/org-5ufByZxNCt9b4LLdjUJ1JOCj/user-KiEDPvr6bByg29MuSpKsx5TU/img-RQjyVkNougVr90JGeZuZcfx5.png?st=2022-11-05T14%3A41%3A06Z&se=2022-11-05T16%3A41%3A06Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2022-11-05T12%3A40%3A11Z&ske=2022-11-06T12%3A40%3A11Z&sks=b&skv=2021-08-06&sig=rm9rA/OdrMXyR0h5VVGwPOyC%2BSu74zW0KNvkDKhkojM%3D

narrow zealot
#

Yes they expire in an hour

#

Yes you’d want to store them if you need to access them later

nova stone
#

Thanks @narrow zealot - do you work for the OpenAI Team? For what it's worth I think this would be a quite important thing to highlight in the docs

#

I think a message to the effect of :

"OpenAI will only store your API generated images for 1 hour. You should store them somewhere for long-term access if you application requires the ability to access them past that 1st hour"

#

Just added another feature to the list now 🙂 Store the images in S3

#

I can see now you have the OpenAI Team tag

narrow zealot
#

Each image can be returned as either a URL or Base64 data, using the response_format parameter. URLs will expire after an hour.