docs/deepinfra.md
DeepInfra is API-only. CodexBar uses DeepInfra's documented billing endpoints and does not send model prompts or account data to any other service.
You can instead set DEEPINFRA_API_KEY or DEEPINFRA_TOKEN in CodexBar's environment. DEEPINFRA_API_KEY takes precedence when both are present.
CodexBar sends the key as a bearer token to:
GET https://api.deepinfra.com/payment/checklist?compute_owed=true for prepaid balance, recent spend, spending limit, and suspension state.GET https://api.deepinfra.com/payment/usage?from=current for current-month spend.DeepInfra represents prepaid funds as a negative stripe_balance; CodexBar converts that to a positive “available” amount. A positive value is shown as money owed.
401: DeepInfra rejected the API key. Remove the saved token, create a new API key, and enter it without a Bearer prefix.403: The key is valid but cannot access DeepInfra billing data.CodexBar never logs the API key or raw billing response.