Usage
Estimate CO2e, electricity, and water from token buckets
Changed onRuns 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
- Base URLhttps://api.crbonfree.com
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"model": "gpt-4o-mini",
"inputTokensUncached": 1000,
"outputTokens": 500
}Response
Emissions estimate
Changes
- info
endpoint added
- info