Gpt-image-1 is realy slow

Hey,

I’m using the gpt-image-1 API in a Next.js app to generate a new image by swapping the subject of an uploaded source image with that of a reference image (along with a product title and description). Each request takes 30–60 seconds, which is too slow for my needs.

Environment

  • API: gpt-image-1 i
  • Region: europe
  • Next.js 14 on Node.js 20

Question

  • Can this be made faster, and if so, how?

Changing your application will not make it faster. It is a model limitation.

The best you can do is use streaming (with partial_images), to generate previews to entertain the users while they wait, but the overall time will be the same.

Thank you, I’ll try to reduce the perceived loading time this way!