Failed AI generations

Lately I am having a reasonable number of AI generations fail to produce an image. The problem is compounded because MD deduct my credits in advance so not only do I not get my images but have to pay for the ones that don’t produce a result. Is there a way to charge only for the images that are generated? Seems only fair.