# Track Amazon Bedrock and Azure OpenAI costs

Amazon Bedrock and Azure OpenAI costs arrive inside the AWS and Azure bills, not as a separate AI invoice. Read the cost data from a CUR 2.0 export or Azure Cost Management, keep only the Bedrock or Azure OpenAI lines, then split that billed total by customer and feature using per-request data from your app or Bedrock invocation logs.

**Key takeaways**

- Bedrock cost is in the AWS Cost and Usage Report; Azure OpenAI cost is in Azure Cost Management.
- CUR 2.0 gives Bedrock cost by model through the usage type, but never by tenant or customer.
- Bedrock invocation logs or your own request data supply the per-tenant key for splitting the billed total.
- Leave tax lines out so the AI line compares month to month.

Published 2026-09-24, updated 2026-11-29, by AI Spendbook. Web page: https://www.aispendbook.com/blog/track-bedrock-azure-openai-costs

Teams that run models through their cloud provider get one convenience and one problem. The convenience: AI spend lands on an invoice procurement already pays. The problem: it lands mixed in with compute, storage and networking, with no customer or feature on any line.

## Where do Bedrock and Azure OpenAI costs show up on the cloud bill?

|  | Amazon Bedrock | Azure OpenAI |
| --- | --- | --- |
| Billed cost | AWS Cost and Usage Report (legacy CUR or CUR 2.0), or Cost Explorer by usage type | Azure Cost Management Query API, or a scheduled export of actual cost details |
| How to recognise AI lines | The Bedrock service lines; the model name is in the usage type | Azure OpenAI and Foundry Models meters |
| Request-level usage | Bedrock model invocation logs (model, tokens, caller ARN, request metadata) | Azure Monitor token metrics per deployment (no customer) |
| What the bill does not carry | Customer, feature or prompt | Customer, feature or prompt |
| Where customer and feature come from | Your app's request data | Your app's request data |

## How do you pull Bedrock and Azure OpenAI lines out of the cloud bill?

1. **Export the cost data monthly.** Both clouds can write it to storage on a schedule as CSV.
2. **Keep only the AI lines.** Filter to Bedrock, or to Azure OpenAI and Foundry Models, and leave tax lines out so the AI line is comparable month to month.
3. **Normalise currency.** Exports in other currencies need a stated rate, or the total quietly mixes units.
4. **Tag requests in your app.** Model, customer and feature on each call let you split the billed total. Token counts alone are not enough for finance; they are only the key for the split. See [AI cost per customer](https://www.aispendbook.com/blog/ai-cost-per-customer).
5. **Close the month on the billed total.** Request-level estimates explain the bill, they never replace it. See [billed vs estimated AI spend](https://www.aispendbook.com/blog/billed-vs-estimated-ai-spend).

## How do you split Bedrock cost by model and tenant from CUR 2.0?

CUR 2.0 gives Bedrock cost per day, account and usage type. The usage type names the model and the token kind, so cost by model comes straight from the report. It carries no tenant. For cost per tenant you need a second source with one row per call: Bedrock model invocation logging writes the model, token counts, the caller's IAM role ARN and any request metadata you attach to each call (for example a tenant or feature tag) to S3 or CloudWatch Logs. Price those calls as an estimate, use each tenant's share of estimated cost that day as the key, and split the CUR billed total by it. If tenants run in separate AWS accounts, the account ID on the CUR line is already the tenant.

| Source | Gives you | Ledger |
| --- | --- | --- |
| CUR 2.0 (gzip CSV in S3) | Billed Bedrock cost by day, account and usage type (model) | Billed |
| Cost Explorer | Daily Bedrock cost by usage type, without setting up an export; AWS charges per API request | Billed |
| Bedrock invocation logs | Model, tokens, caller ARN and request metadata per call | Estimate, used as the split key |

*Request bodies in invocation logs can contain prompts; AI Spendbook's connector never stores them.*

### Worked example: Bedrock cost per tenant

Illustrative numbers. CUR 2.0 shows $1,200 of Bedrock cost for one day on one Claude usage type. Invocation logs for that day, priced at list rates, give tenant A $600, tenant B $300 and $100 of calls with no tenant tag, an estimate of $1,000. The shares are 60%, 30% and 10%, so the billed $1,200 splits into tenant A $720, tenant B $360 and $120 unattributed. Report the $120 as its own line; it usually means a background job or a service that does not pass the tenant tag.

## What are common mistakes when tracking Bedrock and Azure OpenAI costs?

- **Keeping tax lines in the AI line.** Tax makes month-to-month comparison noisy; report it separately.
- **Counting Claude on Bedrock as Anthropic spend.** It is billed by AWS. Keep the provider as Bedrock and the model maker as a detail, or the same usage appears twice once the Anthropic bill is connected.
- **Missing Marketplace lines.** Some Bedrock models sold through AWS Marketplace bill under another product code and do not appear under the Bedrock service.
- **Treating provisioned throughput as usage.** Azure PTU reservations and Bedrock provisioned throughput are purchases; track their use against what was bought.

When tenants already run in separate AWS accounts or Azure subscriptions, skip the invocation logs: the account or subscription on each bill line is the tenant, and the billed cost needs no split.

## What if you also use OpenAI or Anthropic directly?

Many teams use Claude on Bedrock and the Anthropic API, or GPT models on Azure and on OpenAI. Put all of it in one ledger, by provider and route, so a model switch between routes shows up as a shift and not as new spend. See [tracking AI spend across OpenAI, Anthropic and Gemini](https://www.aispendbook.com/blog/track-ai-spend-openai-anthropic-gemini).

## How does AI Spendbook read Bedrock and Azure OpenAI costs?

AI Spendbook reads the cloud bills through separate connectors: the [AWS Cost and Usage Report](https://www.aispendbook.com/integrations/aws-cur) (CUR 2.0 in gzip CSV; Parquet and legacy CUR are not read), [AWS Cost Explorer](https://www.aispendbook.com/integrations/aws-cost-explorer), [Bedrock invocation logs](https://www.aispendbook.com/integrations/aws-bedrock-logs), and [Azure Cost Management](https://www.aispendbook.com/integrations/azure-cost-management) or its scheduled export, each with read-only access. You can also upload the [AWS and Azure billing exports](https://www.aispendbook.com/docs/cloud-billing-exports) with no cloud credentials at all. It keeps only the Bedrock or Azure OpenAI and Foundry Models lines and leaves tax out; Azure rows not billed in USD are skipped with a warning. These connectors are built from AWS and Microsoft public documentation and tested with recorded responses, not yet against a live account. The result sits in the same ledger as Anthropic, OpenAI and Gemini, ready for the [month-end close](https://www.aispendbook.com/blog/close-ai-spend) and [margin per customer](https://www.aispendbook.com/blog/ai-cost-per-customer).

## Frequently asked questions

### Can AWS cost allocation tags split Bedrock cost per customer?

Only if each customer has its own tagged resource or account. Calls from a shared application role land on the same line, so per-customer cost needs per-call data such as invocation logs or your app's request records.

### How long after the day does Bedrock cost appear in CUR?

The AWS Cost and Usage Report is refreshed several times a day and recent days can still change, so treat the last few days as provisional and close the month on a report read after the month has settled.

### Is Azure OpenAI provisioned throughput billed as usage or as a commitment?

PTU reservation purchases appear as a purchase in Azure Cost Management, not as daily token usage. Record the reservation as a commitment and track its use separately from pay-as-you-go tokens.
