My runpod api generation text to image. image generation is just use 1 sec but upload the generated image api call spend 4sec. How to reduce it? We have to provide image file to the user
I don't think you'll get around the upload time, but you could do some testing with lazy loading in a placeholder image / do a preview image streaming? / maybe can you send over a compressed version of the image vs, and in the background load in the higher quality image