Account

Pricing

upstream meters usage by the compute-second: you pay for the time sandboxes are running, measured against the CPU and memory their template provides.

Private beta. Pricing is shared with invited teams.

What is metered#

vCPU-seconds and memory GiB-seconds while a sandbox is running. A sandbox's CPU and memory come from its template.

Track your usage#

python
usage = client.usage()
print(usage.total_sessions)
print(usage.total_vcpu_seconds)

Or call GetUsage with a time range:

bash
$ curl https://api.upstream.build/upstream.platform.v1.Platform/GetUsage \
    -H "Authorization: Bearer $UPSTREAM_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"since": "2026-10-01T00:00:00Z"}'

The response includes total sessions, vCPU-seconds, GiB-seconds and running time over the range.