Prerequisites
- A Modal Team or Enterprise workspace. Modal’s programmatic billing reports are not available on other plans.
- Permission in Modal to create a workspace token.
- Permission in Weave to manage data connections.
Setup
1
Create a Modal workspace token
In your Modal workspace settings, create a workspace token. Keep the token ID and token secret
available while you complete the next step. Weave needs both values and does not support a
billing-only token scope because Modal does not publish one.
2
Connect the workspace in Weave
In Weave, open Data → Compute → Modal compute, then enter the token ID and secret.
You can add an optional label such as “Model training”. Weave verifies workspace identity and
access to both daily reports and monthly summaries before saving the connection.
3
Wait for billing history
Weave queues the previous three months immediately. The normal collector runs every three hours
and refreshes recent complete UTC days. Modal can report usage late, so recent totals can change.
What’s tracked
- Exact metered cost by UTC day
- Modal workspace
- App or billed object and its description
- Environment name
- Resource-cost breakdowns returned by Modal
- Modal tag key/value pairs
- Monthly metered and billed totals, including adjustment categories returned by Modal
Isolating training workloads
Weave includes all Modal spend by default: training, inference, storage, and other billed objects. Use app, environment, or Modal tags to isolate training when your workspace already carries that metadata. For example, add a Modal tag such asworkload=training to training apps and select that
tag in the Modal compute card.
Weave does not guess whether a workload is training. A filtered metered view narrows the daily
report, but the monthly billed total remains workspace-wide and is labeled that way.
Metered versus billed cost
These values answer different questions:- Metered cost is granular usage before workspace-level credits, reservations, and other billing adjustments. It powers the time series and app, environment, resource, and tag breakdowns.
- Billed cost is Modal’s workspace-wide monthly summary after its adjustments. It appears only in the monthly billing table.
