Background removal and handling the 423 response

raymondcamden
raymondcamden Member Posts: 11

I'm used to Cloudinary taking a few seconds to respond on the first request to a transformed image, but in testing background removal, I'm seeing that the default is to return 423 on the first response? If I wanted to programatically download the result, is the expectation to make 2 requests?

Tagged:

Answers

  • raymondcamden
    raymondcamden Member Posts: 11

    Hmm, so two requests doesn't do it. Now going to test - request once, sleep 5 seconds, try again.

  • raymondcamden
    raymondcamden Member Posts: 11

    That seemed to work, but, I feel like there must be a better way to do this. When I tested the Gen AI expand feature, it worked as I expected (slow first request). Is there a better way to programatically handle this?