Usage
Estimate CO2e, electricity, and water from token buckets
Runs the exact same factor-resolution and emissions math path the worker uses before writing carbon_calculations. Accepts a model id plus token buckets and returns CO2e, electricity, and water estimates with the same metadata fields the worker persists.
post/api/v1/public/emissions-estimate
Request body
Example request
{
"model": "gpt-4o-mini",
"inputTokensUncached": 1000,
"outputTokens": 500
}Response
Emissions estimate