API operations

Troubleshoot insufficient credits and failed holds

Compare available credit with the quote before retrying.

Read your available balance

Check available_usd and held_usd. Existing jobs may reserve part of your balance while processing.

Compare the exact quote

Check the quoted charge and your max_price_usd. A changed model, duration, or quantity can change the required hold.

Act on the error code

If a job already has an ID, poll that job or look up its record before submitting again. Check the wallet for enabled top-up options.

Example request

curl "https://api.apimodel.store/v1/balance" \
  -H "Authorization: Bearer $MODELPORT_API_KEY"

Related guides and tools

Sources