You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: anthropic_usage_and_costs/README.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,24 +20,25 @@ You can also see your Anthropic costs in Datadog [Cloud Cost Management][6], all
20
20
21
21
To get started with the Anthropic integration in Datadog, follow the steps below:
22
22
23
-
### 1. Choose the right API key for your needs
23
+
### 1. Identify your Anthropic plan and the key type you'll use
24
24
25
-
This integration supports two types of Anthropic API keys. Pick the one that matches the data you want to ingest:
25
+
Your Anthropic organization is either a **Platform** plan or an **Enterprise** plan, and the plan determines which API key type you'll use to authenticate this integration:
26
26
27
-
|Key type|Data ingested | Best for|
27
+
|Anthropic plan|API key type | Data ingested|
28
28
| --- | --- | --- |
29
-
|**Admin API key**| Organization-wide usage and cost, broken down by model, workspace, API key, and service tier. | All Anthropic organizations that want org-level visibility into spend and token consumption. |
30
-
|**Analytics API key**(Enterprise) | Per-user usage and cost, broken down by user, product (API, Claude Code, Claude.ai), model, context window, inference geography, and speed. | Enterprise organizations that need user-level attribution of usage and spend, including chargeback and team-level reporting. |
29
+
|**Platform**|**Admin API key**| Organization-wide usage and cost, broken down by model, workspace, API key, and service tier. |
30
+
|**Enterprise**|**Analytics API key**| Per-user usage and cost, broken down by user, product (API, Claude Code, Claude.ai), model, context window, inference geography, and speed. Usage metrics are emitted in **1-hour buckets** once the hour has settled upstream, with a typical end-to-end latency of **1–3 hours**. Per-user cost data is available starting **January 1, 2026**. |
31
31
32
-
You can configure either key type — or one of each on separate accounts — depending on the level of granularity your teams require. Per-user cost data from the Analytics API is available starting **January 1, 2026**.
32
+
Each Anthropic organization issues only one of these key types based on its plan, so most customers will configure exactly one key. If your company operates more than one Anthropic organization (for example, a Platform org and an Enterprise org), configure each one as a separate Datadog account.
33
33
34
34
### 2. Generate your Anthropic API key
35
35
36
-
You will need either an [Admin API key][5] or an [Analytics API key][7] from Anthropic. Both are created from your Anthropic organization settings.
36
+
Follow the path that matches your Anthropic plan:
37
37
38
-
1. Navigate to your organization's settings in the Anthropic Console, or reach out to your Anthropic account admin.
39
-
2. Create a new **Admin API key** for org-wide reporting, or a new **Analytics API key** (with the `read:analytics` scope) for per-user reporting. Analytics keys are available on Enterprise plans and must be provisioned by your organization's **Primary Owner** at [claude.ai/analytics/api-keys][7].
40
-
3. Copy the API key to a secure location.
38
+
-**Platform plan** — Generate an [Admin API key][5] from your Anthropic organization's settings, or ask your Anthropic account admin to create one for you.
39
+
-**Enterprise plan** — Generate an Analytics API key (with the `read:analytics` scope) at [claude.ai/analytics/api-keys][7]. Analytics API keys must be provisioned by your organization's **Primary Owner**.
40
+
41
+
Copy the API key to a secure location once generated.
0 commit comments