# Cloud & GPU billing

AWS CUR, Cost Explorer and Bedrock logs, Azure Cost Management and Azure OpenAI metrics, GPU clouds and measured GPU utilisation.

AI Spendbook documentation, Billing sources. Web page: https://www.aispendbook.com/docs/cloud-billing-exports

Amazon Bedrock and Azure OpenAI cost can be read directly from AWS and Azure, or uploaded as a billing export file. GPU clouds add infrastructure cost, and three connections measure GPU utilisation. Each connector has its own page with its setup steps.

## AWS

| Connector | How data arrives | What it reads |
| --- | --- | --- |
| [AWS CUR 2.0](https://www.aispendbook.com/integrations/aws-cur) | Direct read from S3 with an IAM role or access key | Billed Bedrock and SageMaker cost by day, account and usage type; optional EC2 and EKS GPU cost. |
| [AWS Cost Explorer](https://www.aispendbook.com/integrations/aws-cost-explorer) | Direct read with an IAM role or access key | Daily billed Bedrock and SageMaker cost by usage type. AWS charges per request. |
| [Bedrock invocation logs](https://www.aispendbook.com/integrations/aws-bedrock-logs) | Direct read from S3 or CloudWatch Logs | Model and tokens per call with the caller's IAM identity: telemetry priced at the Bedrock on-demand price for Amazon Nova, Titan, Cohere Embed and Meta Llama (us-east-1), and at Anthropic's list price for Claude, unless you set a Bedrock contract rate; never a bill. |
| [Amazon Bedrock (billing export)](https://www.aispendbook.com/integrations/aws-bedrock) | File upload | A legacy CUR or CUR 2.0 CSV. Only Bedrock rows are kept; tax lines are left out. |

## Azure

| Connector | How data arrives | What it reads |
| --- | --- | --- |
| [Azure Cost Management](https://www.aispendbook.com/integrations/azure-cost-management) | Direct read with an Entra app | Billed Azure OpenAI and Foundry Models cost by day, meter and charge type. |
| [Azure Cost Management export](https://www.aispendbook.com/integrations/azure-cost-export) | Direct read from your storage account | The CSV files of a scheduled actual-cost export. |
| [Azure OpenAI token metrics](https://www.aispendbook.com/integrations/azure-openai-metrics) | Direct read from Azure Monitor | Daily prompt and completion tokens per deployment, priced by us as an estimate. |
| [Azure OpenAI (export file)](https://www.aispendbook.com/integrations/azure-openai) | File upload | A Cost Management export of actual cost details as CSV. |

## GPU clouds and utilisation

| Connector | How data arrives | What it reads |
| --- | --- | --- |
| [RunPod](https://www.aispendbook.com/integrations/runpod) | Direct read with an API key | Daily bill by category as infrastructure cost. No model or token detail. |
| [Crusoe Cloud](https://www.aispendbook.com/integrations/crusoe) | Direct read with an API key | Daily spend by project and resource type as infrastructure cost. |
| [Lambda](https://www.aispendbook.com/integrations/lambda) | File upload (daily CSV) | No billing API. Upload date and amount in USD. |
| [CoreWeave](https://www.aispendbook.com/integrations/coreweave) | PDF invoice (upload or forward), or a daily CSV | Its FOCUS export has quantities only, no cost. The invoice amount before tax is spread over the service period. USD invoices only. |
| [Modal](https://www.aispendbook.com/integrations/modal) | File upload (daily CSV) | Cost only through its SDK and CLI (modal billing report --csv). |
| [NVIDIA DCGM (Prometheus)](https://www.aispendbook.com/integrations/prometheus-dcgm) | Direct read from your Prometheus, or push from inside your network | Measured GPU utilisation per day and label. No cost. |
| [Kubecost](https://www.aispendbook.com/integrations/kubecost) | Direct read from the Allocation API, or push from inside your network | Measured GPU utilisation per namespace, deployment or label. No cost. |
| [OpenCost](https://www.aispendbook.com/integrations/opencost) | Direct read from the Allocation API, or push from inside your network | Measured GPU utilisation per namespace, controller or label. No cost. |

Infrastructure cost lines land on a deployment on the [Infrastructure](https://www.aispendbook.com/docs/infrastructure) page when its cost line source matches what the connector writes (for example `eks:<cluster>`, `runpod` or `crusoe:<project id>`). A deployment with a utilisation key gets a measured idle share instead of the modelled one. The Google connector can also write GKE and Compute Engine GPU cost (see [Google Gemini](https://www.aispendbook.com/docs/google-gemini)).

## Family limits

- AWS CUR: Parquet and legacy CUR are not read by the direct connector; each sync reads whole billing periods. Bedrock models sold through AWS Marketplace are not recognised.
- Bill lines carry no customer or feature. For attribution, also send request telemetry with provider `aws_bedrock` or `azure_openai`.
- Azure rows not billed in USD are skipped with a warning. PTU reservation purchases are kept on their purchase day; record a commitment for them under Credits.
- Connectors write a day only after the provider's settle delay; a later correction to a written day is not picked up.
- DCGM busy share means a kernel was running, not how fully the GPU was used.
- Pulls refuse private addresses. For a Prometheus, Kubecost or OpenCost endpoint inside your network, set the connection's delivery to push: a forwarder you run posts the endpoint's own JSON to `POST /api/v1/ingest/push/<connection id>` with an ingestion key. A push connection stores no credential and never calls your endpoint.
- Amazon Nova, Titan, Cohere Embed and Meta Llama on Bedrock are priced from the AWS price list for us-east-1 on demand; other regions, batch and provisioned throughput need a contract rate. Claude on Bedrock and Gemini on Vertex AI use the model maker's list price unless a contract rate is set; regional uplifts are not modelled. Vertex AI text embeddings are priced per 1,000 tokens; if your bill counts characters, add a contract rate. Nova Multimodal Embeddings image, audio and video inputs are not priced.
- Role ARN connections need the platform's own AWS principal to be configured; until then use an access key. None of these connectors has been run against a live account.
