Refunds when something fails
When a job fails, its credits come back to you automatically. The tile or the block says so. That includes a job the provider rejected and one that took too long and was given up on.
Deleting a finished picture or video does not return its credits.
Writing steps are charged even if the text comes back unchanged, because the model still did the work. When that happens, the screen tells you how many came back unchanged.
A result you don't like is not refunded. Nothing in the studio can judge whether a take is good, so render one block and look at it before you render forty.
if a job timed out, the provider may still have finished it and charged for it. Check before trying again.