Note: These are admin/dashboard endpoints typically used by the Eden AI dashboard or custom admin interfaces. For standard API usage authentication, see the API Keys guide.
Overview
The Cost Monitoring API provides two key endpoints to help you track and manage your Eden AI spending:- Monitor Consumptions - Get detailed usage and cost breakdowns by date, provider, and feature
- Check Credits - Retrieve your current account credit balance
Endpoints
Monitor Consumptions
Check Current Credits
Key Concepts
Step Parameter
Thestep parameter controls how data is aggregated:
| Step Value | Aggregation Period | Use Case |
|---|---|---|
| 1 | Daily | Detailed daily analysis |
| 2 | Weekly | Weekly trends |
| 3 | Monthly | Monthly reports |
| 4 | Yearly | Annual summaries |
Filtering Options
Filter your cost data by adding any of these query parameters:| Parameter | Description | Example |
|---|---|---|
provider | Specific AI provider | openai, anthropic |
subfeature | Specific feature | chat, ocr, text_to_speech |
token | Specific API token | prod_token_123 |
workflow_id | Specific workflow execution | |
rag_project_id | Specific RAG project |
Check Your Current Credits
Python
Monitor Usage
Get your last 30 days of usage, grouped by day:Python
Response Format
The monitoring endpoint returns data structured by token, date, and feature:Response Fields
| Field | Type | Description |
|---|---|---|
token | string | API token identifier |
data | object | Date-keyed usage data |
total_cost | number | Total cost for this feature on this date |
details | integer | Number of API calls made |
cost_per_provider | object | Cost breakdown by provider |
Feature Naming Convention
Features follow the pattern{category}__{subfeature}:
| Key | Description |
|---|---|
text__chat | LLM chat completions |
text__generation | Text generation |
text__embeddings | Text embeddings |
image__explicit_content | Image moderation |
image__question_answer | Image Q&A |
ocr__ocr | OCR text extraction |
audio__text_to_speech | Text-to-speech |