OpenRouter returned a billing error:
Error: Insufficient credits. Please add funds.
Or your payment failed. Here is how to fix it.
Fix 1: Check credit balance
# Check balance
curl https://openrouter.ai/api/v1/auth/key \
-H "Authorization: Bearer $OPENROUTER_API_KEY"
Fix 2: Add credits
- Go to openrouter.ai/credits
- Click βAdd Creditsβ
- Enter amount ($5-20 recommended)
- Complete payment
Fix 3: Fix payment method
If payment fails:
- Check card details are correct
- Ensure card is not expired
- Check if card is blocked for international payments
- Try a different card
Fix 4: Use free tier
Some models are free:
# Free models available
model = "meta-llama/llama-3-8b:free"
model = "mistralai/mistral-7b:free"
# Free tier limits apply
Fix 5: Check usage
See where credits went:
# Check usage history
curl https://openrouter.ai/api/v1/activity \
-H "Authorization: Bearer $OPENROUTER_API_KEY"
Fix 6: Set spending limits
Prevent surprise charges:
// In your code
{
"model": "anthropic/claude-sonnet-5",
"max_tokens": 1000,
"metadata": {
"user_id": "my-app",
"limit": "10.00"
}
}
Still not working?
- Contact support β support@openrouter.ai
- Check email β Payment confirmation may have issues
- Try PayPal β Alternative payment method
- Use free models β While resolving billing
FAQ
How do I add credits to OpenRouter?
Go to openrouter.ai/credits, click βAdd Creditsβ, enter an amount ($5-20 recommended), and complete payment. Credits are used as you make API calls.
Why did my payment fail?
Common causes: card declined, expired card, international payment restrictions, or insufficient funds. Try a different card or PayPal. Contact support if issues persist.
Can I use OpenRouter without adding credits?
Yes. Some models are free (with :free suffix). The free tier has lower limits but works for testing and light use. See our Best Free AI APIs guide for details.
Related: OpenRouter Complete Guide Β· OpenRouter Rate Limit Fix Β· AI API Pricing Compared 2026 Β· Best Free AI APIs 2026