insufficient_credits
The workspace's credits do not cover the action. error.refusal says how short they are.
What it means
The workspace's credits do not cover the action. error.refusal says how short they are.
How to fix it
Add credits, then try again.
Where it comes from
402 insufficient_credits from 2 endpoints:
The error body carries this code in error.code. Branch on the code, not on message. See the errors guide.