Where can I find examples on how to use CreateImageRequest with the Node.js OpenAI package?

I just installed the openai package for Node.js into my back-end server app. Where can I find examples on how to use the CreateImageRequest call to generate images from a text prompt using Dalle-2?

Is there a “recipe” or “cookbook” web page or similar with examples on how to use the openai Node.js package?

Also, is there more extensive documentation than what is available here?:

One specific question I already have is if you ask for url format as the response format, how long is the url good for? I assume it’s not permanent and that you have to copy it over to your own storage area?