Skip to main content
Learn how to track your Eden AI API consumption and costs with the Management API usage endpoints. The dashboard shows the same data, plus your current credit balance, which is not exposed by the API. Use the endpoints below when you want to pull consumption into your own reporting, alerting or chargeback tooling.

Authentication

Usage endpoints belong to the Management API. They are called with a management key (mgmt-eden-…) that has the manage:read scope, not with an inference key:
Generate a management key from the dashboard (Account → Management Keys) or mint one with an issuer key. Calling these endpoints with an inference key (sk-eden-…) returns 401.

Endpoints

Key Concepts

Date window

Provide both or neither. Without them you get the last 7 days. The window may not exceed 366 days.

Step parameter

step is required and controls how the time series is bucketed:

Filtering Options

Narrow the data with any of these query parameters:

Monitor Usage

Get the last 7 days of usage, grouped by day, and total it per key:
Python
For a specific period, pass begin and end. Remember that end is exclusive: this returns one monthly bucket covering all of August 2026.
Python

Response Format

The organization and per-key endpoints return the same shape: a usage list with one entry per API key, whose data is keyed by period start date, then by feature:

Response Fields

Feature Naming Convention

Features follow the pattern {category}__{subfeature}:

Cost per Member

Add group_by=user to get one total per organization member over the window instead of a time series:
Python
Usage is attributed to a member through the member set on their API keys.

Usage of One Key

GET /v3/manage/keys/{key_id}/usage/ returns the time series of a single key. It takes the same begin, end, step, feature, subfeature, provider and phase parameters. The key_id is the id returned when the key was created or by the key list:
Python
A key that belongs to another organization returns 404.

Checking Your Credit Balance

The account credit balance is not exposed by the Management API. Check it in the Eden AI dashboard, or cap spending per key with a key budget so a runaway integration cannot drain the account.

Error Responses

401 with an inference key