Eden AI uses a pay-per-use credit system. Every API response includes a cost field showing the charge in USD for that request, so you always know exactly what you are spending.
Purchasing Credits
- Log in to the Eden AI dashboard.
- Navigate to the billing section.
- Choose the amount of credits to purchase.
- Complete the payment.
Credits are added to your account immediately and are shared across all your API tokens.
Auto-Refill
To avoid service interruptions, you can enable auto-refill:
- Go to the billing section in the dashboard.
- Enable auto-refill.
- Set a threshold — the minimum balance that triggers a top-up.
- Set a refill amount — how many credits to add when the threshold is reached.
When your balance drops below the threshold, credits are purchased automatically using your payment method on file.
Auto-refill is strongly recommended for production applications. A depleted balance causes API requests to fail with a 402 Payment Required error.
Checking Your Balance
You can check your current credit balance in the Eden AI dashboard or programmatically via the monitoring endpoint.
Understanding Costs
Every API response includes a cost field:
{
"results": { "..." : "..." },
"cost": 0.002
}
This is the amount in USD deducted from your balance for that request.
Insufficient Credits
If your balance reaches zero, API requests return a 402 Payment Required error:
{
"error": "Insufficient credits"
}
To resolve this, purchase more credits or enable auto-refill.