---
title: AI Costs
description: >-
  Gain unified visibility into AI spend across providers, normalize cost data,
  and attribute usage to users and teams.
breadcrumbs: Docs > Cloud Cost Management > AI Costs
---

# AI Costs

## Overview{% #overview %}

AI Costs in Cloud Cost Management gives FinOps and engineering teams a unified destination for analyzing AI spend across providers, including Amazon Bedrock, Anthropic, Google Gemini, OpenAI, and Vertex AI. View total AI spend alongside your existing cloud infrastructure costs, analyze it with normalized tags, track cost anomalies, and attribute usage to the specific users and API keys driving it.

## Prerequisites{% #prerequisites %}

To use AI Costs, you must have at least one of the following supported providers set up for [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management.md):

| AI provider    | Setup method                                                                                                                        |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Amazon Bedrock | [AWS integration](https://docs.datadoghq.com/cloud_cost_management/setup/aws.md)                                                    |
| Anthropic      | [SaaS integration](https://docs.datadoghq.com/cloud_cost_management/setup/saas_costs.md?tab=anthropic#configure-your-saas-accounts) |
| Google Gemini  | [Google Cloud integration](https://docs.datadoghq.com/cloud_cost_management/setup/google_cloud.md)                                  |
| OpenAI         | [SaaS integration](https://docs.datadoghq.com/cloud_cost_management/setup/saas_costs.md?tab=openai#configure-your-saas-accounts)    |
| Vertex AI      | [Google Cloud integration](https://docs.datadoghq.com/cloud_cost_management/setup/google_cloud.md)                                  |

## AI cost summary{% #ai-cost-summary %}

After connecting your AI providers, navigate to [**Cloud Cost** > **Summarize** > **AI**](https://app.datadoghq.com/cost/summarize/ai-costs) to view the AI cost summary page.

{% image
   source="https://docs.dd-static.net/images/cloud_cost/ai_costs/ccm-ai-costs-overview.20ea73b5f26ec1eff19ddc6d8b5d6fd7.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/cloud_cost/ai_costs/ccm-ai-costs-overview.20ea73b5f26ec1eff19ddc6d8b5d6fd7.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The AI cost summary dashboard, showing daily spend trends over a one-month period, a list of top spend drivers, and an anomaly graph." /%}

The AI cost summary page provides:

- **Total AI Cost**: Aggregated AI cost and cost change over the selected time frame.
- **Daily AI Cost**: Daily cost trends across the selected providers over the selected time frame. Use the **Filter to** dropdown to define which providers appear in the graph.
- **Top Cost Drivers**: The models, projects, services, and users generating the most spend.
- **Active AI Cost Anomalies**: Cost [anomalies](https://docs.datadoghq.com/cloud_cost_management/cost_changes/anomalies.md) surfaced proactively across all connected providers. Select an anomaly to open a side panel with more details and options for further action.
- **AI Cost Dashboards**: Out-of-the-box dashboard templates for each supported provider, combining cost data with usage signals such as token consumption, model distribution, and user analytics.

## Normalized AI tags{% #normalized-ai-tags %}

AI cost data from all supported providers is normalized to a consistent set of tags. Use these tags to filter, group, compare, and plan AI spend across dashboards, [monitors](https://docs.datadoghq.com/cloud_cost_management/cost_changes/monitors.md), [budgets](https://docs.datadoghq.com/cloud_cost_management/planning/budgets.md), [forecasts](https://docs.datadoghq.com/cloud_cost_management/planning/forecasting.md), and other Datadog tools. Use [Cloud Cost Explorer](https://app.datadoghq.com/cost/explorer) to query and compare spend across providers without writing per-provider logic.

The following tags are available for all supported AI providers:

| Tag name     | Tag description                                                                                                                                                                                             |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `providername`    | The AI provider.                                                                                                                                                                                            |
| `model`           | The AI model identifier (for example, `claude-opus-4-6`, `gpt-4.1`).                                                                                                                                        |
| `model_name`      | The human-readable model name (for example, `Claude Opus 4.6`).                                                                                                                                             |
| `token_direction` | Whether tokens are being consumed (input) or generated (output) within a service or application.                                                                                                            |
| `token_category`  | The specific category of tokens consumed, such as input tokens, output tokens, or tokens related to caching and search operations (for example, `cached input`, `cache write`, `standard input`, `output`). |
| `project`         | The project, workspace, or environment the AI costs belong to.                                                                                                                                              |

## Attribute AI spend to sources{% #attribute-ai-spend-to-sources %}

[Out-of-the-box (OOTB) allocation rules](https://docs.datadoghq.com/cloud_cost_management/allocation/custom_allocation_rules.md?tab=even) use Datadog observability data to attribute AI costs to the users, API keys, and other sources that generated them. OOTB allocation rules require no configuration and are available for Anthropic and OpenAI.

The following tags are available through OOTB allocation rules:

{% tab title="Anthropic" %}

- `api_key_id`
- `api_key_name`
- `context_window`
- `model`
- `model_id`
- `org_id`
- `org_name`
- `service_tier`
- `user_email`
- `user_id`
- `user_name`
- `workspace_id`
- `workspace_name`

{% /tab %}

{% tab title="OpenAI" %}

- `account_id`
- `account_name`
- `api_key_id`
- `batch`
- `endpoint`
- `model`
- `org_id`
- `project_id`
- `project_name`
- `user_email`
- `user_id`

{% /tab %}

Configure [Tag Pipelines](https://docs.datadoghq.com/cloud_cost_management/allocation/tag_pipelines.md) to map OOTB tags (such as `user_email`) to teams, services, or business units for aggregate reporting:

{% image
   source="https://docs.dd-static.net/images/cloud_cost/ai_costs/ccm-tag-pipeline-ai-costs.dadd5dc5df518f514f310efb69172a0c.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/cloud_cost/ai_costs/ccm-tag-pipeline-ai-costs.dadd5dc5df518f514f310efb69172a0c.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The Tag Pipelines Rule Setup page, showing user_email values mapped to team values through an existing reference table, and additional tag mapping options." /%}

After mapping, attributed spend appears in provider-specific dashboards and [Cost Reports](https://docs.datadoghq.com/cloud_cost_management/reporting.md):

{% image
   source="https://docs.dd-static.net/images/cloud_cost/ai_costs/ccm-anthropic-ai-cost-reporting.ff6fa9c8c8472419433157278660c5b9.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/cloud_cost/ai_costs/ccm-anthropic-ai-cost-reporting.ff6fa9c8c8472419433157278660c5b9.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="A provider-specific dashboard with a stacked bar graph showing daily provider spend attributed by team and model name, and a summary list of the spend attributions." /%}

## Further reading{% #further-reading %}

- [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management.md)
- [SaaS Cost Integrations](https://docs.datadoghq.com/cloud_cost_management/setup/saas_costs.md)
- [Custom Allocation Rules](https://docs.datadoghq.com/cloud_cost_management/allocation/custom_allocation_rules.md)
- [Tag Pipelines](https://docs.datadoghq.com/cloud_cost_management/allocation/tag_pipelines.md)
- [Reporting](https://docs.datadoghq.com/cloud_cost_management/reporting.md)
- [Cloud Cost Monitors](https://docs.datadoghq.com/cloud_cost_management/cost_changes/monitors.md)
- [Budgets](https://docs.datadoghq.com/cloud_cost_management/planning/budgets.md)
- [Forecasting](https://docs.datadoghq.com/cloud_cost_management/planning/forecasting.md)
