How to export and upload your data
Each service needs a specific export from your cloud. Find your service below, follow the steps for each item that applies to the clouds you use, and upload the files with the secure links we send you. Almost everything runs in your browser, in AWS CloudShell or Google Cloud Shell, with nothing to install.
Quick start
- 1. Choose your service. Find its card below.
- 2. Use the matching guide. Follow only the export or access steps that apply.
- 3. Upload with the emailed link. Use the ready-to-run command we send after kickoff.
Find your service
Each card lists what that service needs, for the clouds and platforms you use, and links to the steps. Required: the service cannot start without it. Export, or grant access: required, but granting read access replaces the export. Optional: improves the result.
Cloud and AI Invoice Reconciliation
- RequiredYour agreements: discounts, private pricing, commitments, AI order forms, support plan, tax exemptions
- RequiredEach month: your invoice register, the AWS invoice list, and the OpenAI and Anthropic reports
- RequiredIf you use AWS: Cost and Usage Report, the last 2 full months to start, then each month
- Export, or grant accessIf you use Google Cloud: detailed billing export, same schedule (or read access to the dataset)
Cloud and AI Invoice Back Audit
- RequiredYour agreements: discounts, private pricing, commitments, AI order forms, support plan, tax exemptions
- RequiredYour invoice register, the AWS invoice lists and the OpenAI and Anthropic reports, for the last 12 months
- RequiredIf you use AWS: Cost and Usage Report, the last 12 full months
- Export, or grant accessIf you use Google Cloud: detailed billing export, the last 12 full months (or read access to the dataset)
BigQuery Cost Audit
- Export, or grant accessIf you use BigQuery: 30 days of job, storage and table history
- Export, or grant accessIf you use BigQuery editions: reservations, assignments and commitments
- OptionalThe BigQuery lines of your billing export, last 3 full months
BigQuery Cost Guardrails Setup
- Export, or grant access90 days of job history, storage and table layout, for each region you use
- Export, or grant accessYour current settings: quotas, scheduled queries, table options, budgets, dbt limits
- OptionalIf you use BigQuery editions: reservations and commitments
- OptionalThe BigQuery lines of your billing export, for the before and after check
BigQuery Slot Management
- Export, or grant access30 to 90 days of job history and per-minute slot usage
- Export, or grant accessReservations, assignments and commitments from the administration project
- OptionalThe BigQuery lines of your billing export, last 3 full months
Portfolio Cloud Cost Optimization
- RequiredFrom each portfolio company: 3 to 12 months of billing data, plus revenue and EBITDA
- OptionalCompanies on AWS: Cost and Usage Report (the best form of the billing data)
- OptionalCompanies on Google Cloud: detailed billing export (the best form of the billing data)
- OptionalEach company's discount, private pricing or data platform contracts
Before you start
Upload and security checklist
- After kickoff we email you one secure upload link per file, from info@finitizer.com, together with a ready-to-run command. Each link works for 7 days, accepts one file, and can only upload: nobody can read or list anything through it. If an email claiming to be from us asks for a password or a cloud access key, do not reply: we never ask for either.
- Zip anything that is more than one file. A Cost and Usage Report, for example, is many files; send it as one zip.
- AWS CloudShell (the >_ icon in the AWS console) and Google Cloud Shell (the >_ icon in the Google Cloud console) run in your browser and already have the AWS CLI or gcloud, zip and curl. CloudShell has about 1 GB of space and Cloud Shell about 5 GB; for larger exports use a computer with the same tools.
- Words in CAPITALS in the commands, such as YOUR-BUCKET or region-YOUR-REGION, are placeholders: replace them with your own values before running.
- No billing history yet? If you have to turn an export on today, it only holds data from today. Tell us the date: we agree with you whether to start on what there is or wait until enough months have built up.
AWS: Cost and Usage Report (CUR)
The line-by-line record of everything your AWS organization was billed, with the discounts and commitments applied. Run these steps from the management (payer) account.
About 15 minutes if you already have a report.
Check whether you already have a report
In the AWS console, open Billing and Cost Management, then Data Exports. If you see an export of type "Standard data export" (CUR 2.0) or "Legacy CUR export", note its S3 bucket, its path prefix and its name, and skip to step 3.
If you have none, create one
In Data Exports choose Create. Pick "Standard data export", give it a name, choose the CUR 2.0 table, tick "Include resource IDs", set time granularity to Hourly, choose Parquet, set file versioning to "Overwrite existing data export file", choose an S3 bucket you own, and create it. AWS starts delivering within 24 hours, from the current month only. You can ask AWS Support whether earlier months can be backfilled; tell us the date either way.
Download the last three full months
Open AWS CloudShell and run the commands below with your bucket, prefix and export name. CUR 2.0 keeps each month in a folder named BILLING_PERIOD=YYYY-MM; the first command lists them, and the loop works out the last three full months for you. Older reports use folders such as 20260701-20260801 or year=2026/month=7: sync those folders the same way. If your export keeps several deliveries per month (versioning "Create new data export file"), that is fine; tell us and we use only the latest one. For a portfolio review or a pre-acquisition review, change seq 1 3 to seq 1 12.
AWS CloudShellScroll horizontally to read the full command.
aws s3 ls s3://YOUR-BUCKET/YOUR-PREFIX/YOUR-EXPORT-NAME/data/ mkdir -p aws-cur for i in $(seq 1 3); do m=$(date -d "$(date +%Y-%m-01) -$i month" +%Y-%m) aws s3 sync "s3://YOUR-BUCKET/YOUR-PREFIX/YOUR-EXPORT-NAME/data/BILLING_PERIOD=$m/" "aws-cur/BILLING_PERIOD=$m/" done du -sh aws-curZip it
One file, ready for the upload link.
AWS CloudShellScroll horizontally to read the full command.
zip -r aws-cur.zip aws-curUpload it
Run the upload command from our email in the same folder. See "Uploading a file" below.
Google Cloud: detailed billing export
Cloud Billing writes every charge, with credits and committed use discounts, to a BigQuery table. We need the detailed usage cost table, not the standard one.
About 15 minutes if the export is already on.
Check that the detailed export is on
In the Google Cloud console open Billing, choose your billing account, then Billing export and the BigQuery export tab. "Detailed usage cost" should say Enabled, with a project and a dataset. Note both. The table inside that dataset is named gcp_billing_export_resource_v1_ followed by your billing account ID.
If it is off, turn it on
Under "Detailed usage cost" choose Edit settings, pick a project and a dataset (create one called billing_export with location US if you have none) and save. Data starts arriving within a day, and Google does not backfill earlier months, so turn it on as early as you can and tell us the date.
Make sure you have a bucket
The export is written to a Cloud Storage bucket in the same location as the dataset (for example US). If you do not have one, create it in Cloud Shell.
Cloud Shell (only if you need a bucket)Scroll horizontally to read the full command.
gcloud storage buckets create gs://YOUR-BUCKET --location=US --uniform-bucket-level-accessRun the export query
In BigQuery, open a new query tab, paste this, replace the names, and run it. It exports the last three full invoice months, so the totals match your invoices; change the 3 to 12 for a portfolio review or to 1 for training. For the BigQuery services, add one more line at the end, AND service.description LIKE 'BigQuery%', to send only the BigQuery lines. The query reads the billing table once; for most companies that costs less than a dollar.
BigQuery consoleScroll horizontally to read the full command.
EXPORT DATA OPTIONS ( uri = 'gs://YOUR-BUCKET/finitizer/billing/billing-*.parquet', format = 'PARQUET', overwrite = true) AS SELECT * FROM `YOUR-PROJECT.YOUR-DATASET.gcp_billing_export_resource_v1_XXXXXX_XXXXXX_XXXXXX` WHERE invoice.month IN UNNEST(ARRAY( SELECT FORMAT_DATE('%Y%m', DATE_SUB(DATE_TRUNC(CURRENT_DATE(), MONTH), INTERVAL m MONTH)) FROM UNNEST(GENERATE_ARRAY(1, 3)) AS m))Download, zip and tidy up
Back in Cloud Shell. The last command deletes the export from your bucket once the zip is made.
Cloud ShellScroll horizontally to read the full command.
gcloud storage cp -r gs://YOUR-BUCKET/finitizer/billing ./gcp-billing zip -r gcp-billing.zip gcp-billing gcloud storage rm -r gs://YOUR-BUCKET/finitizer/billingUpload it
Run the upload command from our email in Cloud Shell. See "Uploading a file" below.
Another way
Prefer not to export at all? Grant our reader identity, which we send you at kickoff, read access to the billing dataset only: in BigQuery, open the dataset, choose Sharing, then Permissions, Add principal, paste the identity, choose the role BigQuery Data Viewer and save. We then read it in place, now and every month, and nothing has to be uploaded.
BigQuery: job, storage and slot history
Metadata about your queries and tables, read from INFORMATION_SCHEMA. No table data is included. Only needed if you export instead of granting us read access.
About 20 minutes.
Note your projects and region
List the projects in scope and the region your datasets live in, written the way BigQuery writes it: region-us, region-eu or region-us-central1, for example. Use it wherever the queries say region-YOUR-REGION. You need a Cloud Storage bucket in the same location (see the billing export steps above for how to create one).
Export 30 days of jobs for each project
Run this once per project in the BigQuery console: paste the whole block and click Run once (BigQuery cannot export INFORMATION_SCHEMA directly, so it copies the jobs into a temporary table first). It includes the query text and who ran each job, which we use only to attribute cost and to rewrite your most expensive queries. To leave the text out, replace the last column, query, with TO_HEX(SHA256(query)) AS query_hash; we can still group repeated queries but cannot rewrite them. For BigQuery Slot Management and BigQuery Cost Guardrails, change INTERVAL 30 DAY to INTERVAL 90 DAY.
BigQuery console, once per projectScroll horizontally to read the full command.
CREATE TEMP TABLE jobs AS SELECT creation_time, start_time, end_time, project_id, user_email, job_id, job_type, statement_type, priority, state, reservation_id, total_bytes_processed, total_bytes_billed, total_slot_ms, cache_hit, labels, query FROM `YOUR-PROJECT`.`region-YOUR-REGION`.INFORMATION_SCHEMA.JOBS_BY_PROJECT WHERE creation_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 30 DAY); EXPORT DATA OPTIONS ( uri = 'gs://YOUR-BUCKET/finitizer/bq/jobs-YOUR-PROJECT-*.parquet', format = 'PARQUET', overwrite = true) AS SELECT * FROM jobs;Export storage and table layout for each project
One more block per project: storage by table (for cold tables and the storage billing model), and which columns tables are partitioned or clustered on. BigQuery cannot export its INFORMATION_SCHEMA views directly, so each block copies the view into a temporary table and exports that: paste the whole block and click Run once.
BigQuery console, once per projectScroll horizontally to read the full command.
CREATE TEMP TABLE table_storage AS SELECT * FROM `YOUR-PROJECT`.`region-YOUR-REGION`.INFORMATION_SCHEMA.TABLE_STORAGE; CREATE TEMP TABLE layout AS SELECT table_catalog, table_schema, table_name, column_name, is_partitioning_column, clustering_ordinal_position FROM `YOUR-PROJECT`.`region-YOUR-REGION`.INFORMATION_SCHEMA.COLUMNS WHERE is_partitioning_column = 'YES' OR clustering_ordinal_position IS NOT NULL; EXPORT DATA OPTIONS ( uri = 'gs://YOUR-BUCKET/finitizer/bq/storage-YOUR-PROJECT-*.parquet', format = 'PARQUET', overwrite = true) AS SELECT * FROM table_storage; EXPORT DATA OPTIONS ( uri = 'gs://YOUR-BUCKET/finitizer/bq/layout-YOUR-PROJECT-*.parquet', format = 'PARQUET', overwrite = true) AS SELECT * FROM layout;For BigQuery Slot Management: per-minute slot usage
Once per project, 90 days of slot usage summed by minute, which is what reservations are sized from. Skip this for the cost audit. BigQuery cannot export its INFORMATION_SCHEMA views directly, so each block copies the view into a temporary table and exports that: paste the whole block and click Run once.
BigQuery console, once per projectScroll horizontally to read the full command.
CREATE TEMP TABLE slots AS SELECT TIMESTAMP_TRUNC(period_start, MINUTE) AS minute, project_id, reservation_id, job_type, SUM(period_slot_ms) / 60000 AS avg_slots, COUNT(DISTINCT job_id) AS jobs FROM `YOUR-PROJECT`.`region-YOUR-REGION`.INFORMATION_SCHEMA.JOBS_TIMELINE_BY_PROJECT WHERE job_creation_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 90 DAY) GROUP BY minute, project_id, reservation_id, job_type; EXPORT DATA OPTIONS ( uri = 'gs://YOUR-BUCKET/finitizer/bq/slots-YOUR-PROJECT-*.parquet', format = 'PARQUET', overwrite = true) AS SELECT * FROM slots;Download, zip and upload
In Cloud Shell, then run the upload command from our email.
Cloud ShellScroll horizontally to read the full command.
gcloud storage cp -r gs://YOUR-BUCKET/finitizer/bq ./bq-history zip -r bq-history.zip bq-history gcloud storage rm -r gs://YOUR-BUCKET/finitizer/bq
Another way
Quicker: grant our reader identity BigQuery Resource Viewer and BigQuery Metadata Viewer on each project in scope (and, if you use editions, BigQuery Resource Viewer on the reservation administration project). These roles read; they cannot change anything. We then collect all of this ourselves and nothing has to be uploaded.
BigQuery: your current guardrail settings
What already limits or watches your BigQuery spend, so we size new guardrails around it instead of on top of it. Only needed if you export instead of granting us read access; send it together with the job history above.
About 15 minutes.
Note your daily query quotas
In the Google Cloud console, for each project in scope, open IAM and admin, then Quotas and system limits. Filter on "Query usage per day" (the BigQuery API quota for the project, and the one per user). Note the value of each, or take a screenshot; "Unlimited" is an answer too.
List your scheduled queries
In Cloud Shell, once per project. Use the location of your datasets, written in lower case, for example us, eu or us-central1.
Cloud Shell, once per projectScroll horizontally to read the full command.
mkdir -p guardrails bq ls --transfer_config --transfer_location=YOUR-LOCATION --project_id=YOUR-PROJECT \ --format=prettyjson > guardrails/scheduled-YOUR-PROJECT.jsonExport the table options
Which tables already require a partition filter or expire their partitions. Run in the BigQuery console, once per project. BigQuery cannot export its INFORMATION_SCHEMA views directly, so each block copies the view into a temporary table and exports that: paste the whole block and click Run once.
BigQuery console, once per projectScroll horizontally to read the full command.
CREATE TEMP TABLE table_options AS SELECT table_catalog, table_schema, table_name, option_name, option_value FROM `YOUR-PROJECT`.`region-YOUR-REGION`.INFORMATION_SCHEMA.TABLE_OPTIONS WHERE option_name IN ('require_partition_filter', 'partition_expiration_days', 'expiration_timestamp'); EXPORT DATA OPTIONS ( uri = 'gs://YOUR-BUCKET/finitizer/guardrails/options-YOUR-PROJECT-*.parquet', format = 'PARQUET', overwrite = true) AS SELECT * FROM table_options;List your budgets
Needs permission to view budgets on the billing account. Your billing account ID is on the Billing overview page.
Cloud ShellScroll horizontally to read the full command.
gcloud billing budgets list --billing-account=XXXXXX-XXXXXX-XXXXXX --format=json > guardrails/budgets.jsonTell us about dbt and BI tools
If you use dbt, copy the maximum_bytes_billed line, if any, from each target in profiles.yml. List the BI tools that query BigQuery (Looker, Looker Studio, Tableau, Metabase, and so on) and whether each connects as a service account or as each user. A reply to our email is fine.
Download, zip and upload
In Cloud Shell, then run the upload command from our email.
Cloud ShellScroll horizontally to read the full command.
gcloud storage cp -r gs://YOUR-BUCKET/finitizer/guardrails ./guardrails zip -r guardrails.zip guardrails gcloud storage rm -r gs://YOUR-BUCKET/finitizer/guardrails
Another way
Quicker: grant our reader identity BigQuery Resource Viewer, BigQuery Metadata Viewer and Service Usage Viewer on each project in scope. We then read the quotas, scheduled queries and table options ourselves; send only the budgets list and your dbt limits.
BigQuery: reservations, assignments and commitments
Your current capacity setup, read from the reservation administration project: the project where your reservations and commitments live. Only if you use BigQuery editions, and only if you export instead of granting access.
About 10 minutes.
Export the four views
Run this in the BigQuery console in the administration project, with your project name and region: paste the whole block and click Run once (BigQuery cannot export INFORMATION_SCHEMA directly, so it copies each view into a temporary table first). If a view has no rows (you hold no commitments, for example), that is fine.
BigQuery console, administration projectScroll horizontally to read the full command.
CREATE TEMP TABLE res_timeline AS SELECT * FROM `ADMIN-PROJECT`.`region-YOUR-REGION`.INFORMATION_SCHEMA.RESERVATIONS_TIMELINE WHERE period_start >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 90 DAY); CREATE TEMP TABLE res_reservations AS SELECT * FROM `ADMIN-PROJECT`.`region-YOUR-REGION`.INFORMATION_SCHEMA.RESERVATIONS; CREATE TEMP TABLE res_assignments AS SELECT * FROM `ADMIN-PROJECT`.`region-YOUR-REGION`.INFORMATION_SCHEMA.ASSIGNMENTS; CREATE TEMP TABLE res_commitments AS SELECT * FROM `ADMIN-PROJECT`.`region-YOUR-REGION`.INFORMATION_SCHEMA.CAPACITY_COMMITMENTS; EXPORT DATA OPTIONS ( uri = 'gs://YOUR-BUCKET/finitizer/res/timeline-*.parquet', format = 'PARQUET', overwrite = true) AS SELECT * FROM res_timeline; EXPORT DATA OPTIONS ( uri = 'gs://YOUR-BUCKET/finitizer/res/reservations-*.parquet', format = 'PARQUET', overwrite = true) AS SELECT * FROM res_reservations; EXPORT DATA OPTIONS ( uri = 'gs://YOUR-BUCKET/finitizer/res/assignments-*.parquet', format = 'PARQUET', overwrite = true) AS SELECT * FROM res_assignments; EXPORT DATA OPTIONS ( uri = 'gs://YOUR-BUCKET/finitizer/res/commitments-*.parquet', format = 'PARQUET', overwrite = true) AS SELECT * FROM res_commitments;Download, zip and upload
In Cloud Shell, then run the upload command from our email.
Cloud ShellScroll horizontally to read the full command.
gcloud storage cp -r gs://YOUR-BUCKET/finitizer/res ./bq-reservations zip -r bq-reservations.zip bq-reservations gcloud storage rm -r gs://YOUR-BUCKET/finitizer/res
Another way
Quicker: grant our reader identity BigQuery Resource Viewer on the administration project. It reads reservations and commitments and cannot change or buy anything.
Startup credits: balances, expiry dates and burn
Two things: the credit grants you hold, which you copy in once, and how fast you use them, which comes from your billing. Small files, a few kilobytes each.
About 20 minutes the first time.
List every credit grant
Copy this template into a spreadsheet or text file and replace the example lines with yours, one line per grant. If you connect our read-only AWS role, leave AWS out: it reads AWS balances and expiry dates for you. You find the figures on each provider's credits page: in AWS, Billing and Cost Management, then Credits; in Google Cloud, Billing, then Credits (a Google partner-model credit for Claude and other Model Garden models is listed separately: give it its own line); at OpenAI and Anthropic, the billing page of your organization. Amounts in the currency the credit is in, as the provider shows it: a Google Cloud account billed in Canadian dollars holds CAD credits, while AWS credits are in USD. Dates as YYYY-MM-DD. Save it as credits.csv.
credits.csvScroll horizontally to read the full command.
provider,program,original_amount,balance,currency,expiry_date,covers AWS,AWS Activate,100000,64000,USD,2027-06-30,most AWS services Google Cloud,Google for Startups Cloud Program,200000,151000,USD,2027-03-31,Google Cloud and Gemini Google Cloud,Partner model credit,10000,7400,USD,2027-03-31,partner models in Vertex AI OpenAI,Startup credits,2500,900,USD,2026-12-31,API usageAWS: credit burn by month
Only if you have not connected our read-only role, which reads balances, expiry dates and burn for you. In the AWS console open Billing and Cost Management, then Cost Explorer. Set the date range to the last 12 months, granularity to Monthly, group by Service, and under Filters set Charge type to include only Credit. Download the CSV. Then remove the Charge type filter and download a second CSV: your usage before credits.
Google Cloud: credit burn by month
Only if you have not given our reader identity access to the billing export dataset. In BigQuery, run this against your standard billing export table (gcp_billing_export_v1_ followed by your billing account ID). It returns a few hundred rows: choose Save results, then CSV, and save it as gcp-credits.csv.
BigQuery consoleScroll horizontally to read the full command.
SELECT invoice.month AS month, service.description AS service, ROUND(SUM(cost), 2) AS cost_before_credits, ROUND(SUM((SELECT SUM(c.amount) FROM UNNEST(credits) AS c WHERE c.type = 'PROMOTION')), 2) AS promotional_credits, ROUND(SUM((SELECT SUM(c.amount) FROM UNNEST(credits) AS c)), 2) AS all_credits FROM `YOUR-PROJECT.YOUR-DATASET.gcp_billing_export_v1_XXXXXX_XXXXXX_XXXXXX` WHERE invoice.month >= FORMAT_DATE('%Y%m', DATE_SUB(CURRENT_DATE(), INTERVAL 12 MONTH)) GROUP BY month, service ORDER BY month, cost_before_credits DESCAI providers: a monthly usage export
For OpenAI, Anthropic or another AI provider whose credits you want tracked: download the usage or cost report for the last few months as CSV from its usage page. If it offers no export, the balance in credits.csv is enough; the forecast then uses the change from one month to the next.
Send the files
Reply to our setup email with the files attached, or use the upload link we send you. Each month after, the digest asks only for what cannot be read automatically.
Another way
Better: connect our read-only AWS billing role (one CloudFormation stack in your management account, set up with one of our engineers on a short call; it reads credits and Cost Explorer and nothing else) and grant our reader identity BigQuery Data Viewer on your Google Cloud billing export dataset. Your spend is then checked every day for charges your credits do not cover, without any export, and you only update credits.csv when a new grant arrives or, for AI providers, once a month.
Invoice reconciliation: invoices and AI provider reports
Each month: the invoices accounts payable received, the AWS invoice list and the OpenAI and Anthropic usage and cost reports. Your billing exports and agreements come through the guides above. Small files, a few hundred kilobytes.
About 30 minutes the first time, 10 minutes a month after.
Your invoice register
The cloud and AI invoices accounts payable received for the month, one line each, from your AP system or typed in. Include Marketplace sellers billed through AWS or Google Cloud. For the look-back in month one, include every month we agreed to check. Save it as invoices.csv.
invoices.csvScroll horizontally to read the full command.
provider,invoice_id,issuer,month,issue_date,total,tax aws,EUS1234567,"Amazon Web Services, Inc.",2026-09,2026-10-03,87390.00,0 gcp,5123456789,Google LLC,2026-09,2026-10-02,52460.00,0 openai,INV-ABC123,"OpenAI, L.L.C.",2026-09,2026-10-01,8088.00,50.00AWS: the invoice list
From the management (payer) account, in AWS CloudShell. It lists every AWS invoice and credit memo for last month with its number and totals, read-only. Replace the account ID. For the look-back, run it once per month with a different value of $i (1 for last month, 2 for the month before, and so on).
AWS CloudShellScroll horizontally to read the full command.
i=1 first=$(date -d "$(date +%Y-%m-01) -$i month" +%Y-%m-01) aws invoicing list-invoice-summaries --region us-east-1 \ --selector ResourceType=ACCOUNT_ID,Value=YOUR-PAYER-ACCOUNT-ID \ --filter "BillingPeriod={Month=$(date -d $first +%-m),Year=$(date -d $first +%Y)}" \ > aws-invoices-$(date -d $first +%Y-%m).jsonOpenAI: usage and cost for last month
Run by someone on your team with an OpenAI admin key (Settings, Organization, Admin keys; a read-only key is enough). The key stays with you: never send it to us. Run it in AWS CloudShell, Google Cloud Shell or a Linux terminal (the date commands are the Linux kind).
Terminal, with your key in OPENAI_ADMIN_KEYScroll horizontally to read the full command.
START=$(date -u -d "$(date +%Y-%m-01) -1 month" +%s); END=$(date -u -d "$(date +%Y-%m-01)" +%s) curl -sg "https://api.openai.com/v1/organization/costs?start_time=$START&end_time=$END&bucket_width=1d&limit=31&group_by[]=line_item&group_by[]=project_id" \ -H "Authorization: Bearer $OPENAI_ADMIN_KEY" > openai-costs.json curl -sg "https://api.openai.com/v1/organization/usage/completions?start_time=$START&end_time=$END&bucket_width=1d&limit=31&group_by[]=model&group_by[]=project_id&group_by[]=service_tier&group_by[]=batch" \ -H "Authorization: Bearer $OPENAI_ADMIN_KEY" > openai-usage.jsonAnthropic: usage and cost for last month
Run by someone on your team with an Anthropic admin key (Console, Settings, Admin keys). Anthropic admin keys can change settings as well as read, which is exactly why the key stays with you: never send it to us.
Terminal, with your key in ANTHROPIC_ADMIN_KEYScroll horizontally to read the full command.
FROM=$(date -u -d "$(date +%Y-%m-01) -1 month" +%Y-%m-%dT00:00:00Z); TO=$(date -u +%Y-%m-01T00:00:00Z) curl -sg "https://api.anthropic.com/v1/organizations/cost_report?starting_at=$FROM&ending_at=$TO&group_by[]=workspace_id&group_by[]=description&limit=31" \ -H "x-api-key: $ANTHROPIC_ADMIN_KEY" -H "anthropic-version: 2023-06-01" > anthropic-cost.json curl -sg "https://api.anthropic.com/v1/organizations/usage_report/messages?starting_at=$FROM&ending_at=$TO&bucket_width=1d&limit=31&group_by[]=model&group_by[]=service_tier&group_by[]=context_window&group_by[]=workspace_id" \ -H "x-api-key: $ANTHROPIC_ADMIN_KEY" -H "anthropic-version: 2023-06-01" > anthropic-usage.jsonFor the Back Audit: 12 months
Run the AWS invoice list once for each of the last 12 months (i=1 to i=12). For OpenAI and Anthropic, change "-1 month" to "-12 month" in the first line. For OpenAI, also change limit=31 to limit=180 in each address. For Anthropic, keep limit=31 (its daily maximum) and follow "has_more" as below until the last page, about 12 pages for a year.
If a report says "has_more": true
Large organizations can get more than one page. Run the same command again with &page= and the value of "next_page" from the first file added to the end of the address, and save the result under a new name, for example openai-costs-2.json. Send every page.
Zip and upload
One zip for the month, then run the upload command from our email. On Windows without these tools, send the files by replying to our email instead.
TerminalScroll horizontally to read the full command.
zip billops-$(date -d "$(date +%Y-%m-01) -1 month" +%Y-%m).zip invoices.csv *.json
Another way
No admin key for an AI provider? Download the usage and cost CSVs from its console (OpenAI: Usage; Anthropic: Console, Usage and Cost) for the month and send those instead; the check is then by model and month rather than by day.
Private equity portfolio: what each company sends
Each portfolio company sends its own data, through its own upload links, so no company sees another's. The fund only needs to tell us who to contact at each company and the exit multiple to use.
About 2 hours per company.
Billing data, 3 to 12 months
Best: the AWS Cost and Usage Report or the Google Cloud detailed billing export, produced with the steps above (change seq 1 3 to seq 1 12 in the AWS loop, and the 3 to 12 in the Google Cloud query). A company without an export can send 12 monthly cloud invoices and a monthly cost report by service and by account instead (AWS Cost Explorer grouped by Service and then by Linked account, monthly, as CSV; or the Google Cloud Billing reports page grouped by service and then by project, as CSV).
Revenue and EBITDA
Each company's monthly revenue and EBITDA for the same period, so we can show cloud cost as a share of revenue and the effect of savings on EBITDA. If the fund prefers to supply these figures, the company can skip this step.
Contracts, if any
Any enterprise discount or private pricing agreement, Google Cloud commit, Marketplace contract, or Snowflake or Databricks contract, so savings are priced at the rates the company actually pays.
For a Company Value Plan: read-only access
The company deploys our read-only role with one of our engineers on a short call, the same setup as the Cloud Cost Audit. Nothing to do for the Portfolio Estimate.
Buying a new company?
Before close, ask the target for the same billing data and contracts in the data room, and give us access to that folder or upload the files with our links. Read-only access waits until signing allows it.
Training: a sample of your billing data
The labs run on your own numbers. One recent month is enough, and you can mask it.
About 15 minutes.
Export one month
Follow the AWS or Google Cloud steps above for a single month: on AWS change seq 1 3 to seq 1 1; on Google Cloud change the 3 in the query to 1.
For the AI and LLM module
A recent month of usage from your AI provider: most provider consoles (Anthropic, OpenAI, Amazon Bedrock, Vertex AI) offer a usage or cost download as CSV on their usage or billing page. The AI lines of your cloud bill also work.
Mask it if you like
Account names, project names and tags can be replaced with placeholders; the labs need the shape of your spend, not who owns it. If you cannot share any billing data, tell us: the labs then use a realistic sample estate.
Upload it
Zip it and run the upload command from our email.
Discount, private pricing and credit terms
Optional for most services, where it means savings are priced at the rates you actually pay. Required for Invoice Reconciliation, where every check compares your bill with these terms.
A few minutes.
Send the documents
The summary or rate schedule of any AWS Enterprise Discount Program or private pricing agreement, Google Cloud discount or commit agreement, and active credits. For Invoice Reconciliation, also every amendment, Marketplace private offers, AI provider order forms, your support plan, tax exemption certificates and any open billing case with a promised credit. A PDF is fine. Use a separate upload link from the billing data; ask us for one, or attach it to a reply to our email if you prefer.
Uploading a file
Each upload link from our email comes with a ready-to-run command. Run it in the folder that holds the file.
AWS CloudShell, Google Cloud Shell, macOS or Linux
Scroll horizontally to read the full command.
curl -X PUT -H "Content-Type: application/octet-stream" --upload-file aws-cur.zip "THE-LINK-FROM-OUR-EMAIL"Windows (PowerShell): note curl.exe
Scroll horizontally to read the full command.
curl.exe -X PUT -H "Content-Type: application/octet-stream" --upload-file aws-cur.zip "THE-LINK-FROM-OUR-EMAIL"When it finishes, curl prints a short reply that includes "size": followed by the number of bytes. That means the file arrived. Reply to our email to let us know.
If something goes wrong
- The reply says the upload ID is invalid, or 404
- The link expired (after 7 days) or was already used. Ask us for a new one.
- The upload stopped part way
- Ask us for a new link and run it again; the partial file is discarded.
- Windows says a parameter cannot be found
- You ran curl instead of curl.exe in PowerShell. Use curl.exe, exactly as in the Windows command.
- CloudShell runs out of space
- AWS CloudShell has about 1 GB. Run the same commands on a computer with the AWS CLI, or export fewer months and send them in two files.
- An export query fails with a location error
- The bucket must be in the same location as the data. Create a bucket with the same location as the dataset, or change region-YOUR-REGION to the region your datasets use.
- Your laptop blocks command-line tools
- Run everything in AWS CloudShell or Google Cloud Shell, which run in the browser, or book a short call and we will walk through it with you.
How your data is protected
- Every customer gets a separate storage bucket in Finitizer's Google Cloud environment in the US, encrypted at rest and in transit, with public access blocked.
- Upload links can only write. Nobody, including someone who intercepts a link, can read, list or download anything through it.
- Files are used only for your engagement and deleted on the schedule in the retention table for your service (for most services, automatically 90 days after upload), or sooner on request. Deletion is immediate and final.
- We sign your NDA before any data is shared. Query text and user names in BigQuery history are used only to attribute cost.
Stuck on a step?
Email info@finitizer.com with the step and what you see, or book a short call and one of our FinOps Engineers will walk through it with you.
Book an introductory call