insufficient_balance — not enough LMC
What happened
The order was not created and no funds were held. Body: {"success": false, "message": "…", "reason": "insufficient_balance"}.
Why
Payment is made in advance: LMC is held on the balance when the order is created, not when generation finishes. That is why the shortfall shows up right away: the available LMC is less than the amount to hold for this order.
What to do right now
Top up the balance in your account. The public API does not process payments: top-ups, transfers, and subscription purchases are available only in your account. You can also make the order smaller: split the text into parts and send them as you top up.
Which request to send next
After topping up, send the same POST /orders unchanged. GET /subscriptions shows the remaining quota, and GET /usage shows usage against limits.
Where to go next
This page for AI
API version 1.0.0