Before you begin
SetMILLWORK_API_URL and MILLWORK_API_KEY as shown in
Make your first API call.
1
Export the receipts
2
Check the file
jq exits without an error. wc shows how many
receipt records were saved.3
Store the file safely
Receipts do not contain prompts or model output. They do contain business
details such as the model, the provider, usage, cost, and run IDs. Store
them as you store other business records.
What a receipt says about cost
A receipt’scost and totals.usd record model usage. The platform fee
Millwork charges when it accepts a live run is its own line,
totals.platform_fee_usd; it is 0 for a test run, and 0 when Millwork
returned the fee because the run failed before any model attempt. The
dashboard’s Usage & spend page shows your Millwork charges. See
Model access and billing.