You can use a Worker to upload your image to Cloudflare Images.
Refer to the example below or refer to the Workers documentation for more information.
Upload from AI generated images
You can use an AI Worker to generate an image and then upload that image to store it in Cloudflare Images. For more information about using Workers AI to generate an image, refer to the SDXL-Lightning Model.