BoaviztAPI
v0.1.2Environmental footprint of cloud instances, servers, GPUs and devices, via BoaviztAPI.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_impact_criteria List impact criteria
List BoaviztAPI's impact criteria with their code, unit and meaning, e.g. gwp (climate change, kgCO2eq), adp (abiotic resources, kgSbeq) or pe (primary energy, MJ). Use it to explain a code that appears in a result, or to choose `criteria` for the estimate tools; it estimates nothing. `query` filters on code, unit or description words such as 'water'. Read-only; the list comes from BoaviztAPI and is cached for a day.
| Parameter | Type | Description |
|---|---|---|
query | Optional filter on code or description, e.g. 'water'. |
search_catalog Search the BoaviztAPI catalog
Find the exact names BoaviztAPI knows, before estimating. Use it whenever an estimate needs a name you are unsure of: a GPU or CPU model, a cloud instance type (needs `provider`), a cloud region, a server or device archetype (needs `device_type`), or a country. Results are exact upstream strings, including upstream typos such as 'platfom_gpucompute_high', best matches first and capped by `limit`; `total_matches` says how many exist. To see what one item contains, use describe_catalog_item instead. Read-only; lists are cached for a day.…
| Parameter | Type | Description |
|---|---|---|
kind * | string | What to search. |
device_type | Required for device_archetype. | |
limit | integer | Maximum names to return. |
provider | Cloud provider; required for cloud_instance, optional for cloud_region. | |
query | Words to match, e.g. 'h100', 'm5.x', 'germ'. |
describe_catalog_item Describe a catalog item
Show what a named catalog item contains: a cloud instance's vCPUs, memory and host platform; a server or device archetype's default parts and usage; or a GPU's or CPU's specifications. Use it to explain or check the assumptions behind an estimate, or to choose between similar items; it does not estimate impacts. `name` is resolved to the exact upstream name, and an ambiguous name returns the candidates (use search_catalog to find names). `provider` is required for cloud_instance and `device_type` for device_archetype. Read-only; cached f…
| Parameter | Type | Description |
|---|---|---|
kind * | string | What kind of item. |
name * | string | Name as found with search_catalog. |
device_type | Required for device_archetype. | |
provider | Required for cloud_instance. |
estimate_cloud_instance Estimate a cloud instance
Estimate the environmental footprint of one cloud VM: its share of the host server's manufacturing (embedded) and the electricity it uses (use), per impact criterion, with units, min-max ranges and warnings. Use it for a single instance; use compare_estimates to rank several and estimate_server for physical servers. Give either `region` (the provider's region, which fixes the electricity mix) or `usage_location` (a country), not both; with neither, a wide European default is used. `duration_hours` sets the period (8760 = one year); omit…
| Parameter | Type | Description |
|---|---|---|
instance_type * | string | Instance type, e.g. 'm5.xlarge'. |
provider * | string | Cloud provider, e.g. 'aws'. |
criteria | Impact criteria codes; default gwp, adp, pe. See list_impact_criteria. 'all' is not accepted. | |
detail | string | 'breakdown' adds per-component impacts and all assumptions. |
duration_hours | Period assessed in hours (8760 = 1 year, 730 = 1 month). Omit for the whole hardware lifetime. | |
load_percent | Average CPU load in percent. | |
region | Provider region such as 'eu-west-3'; exclusive with usage_location. | |
usage_location | Where the electricity comes from: country name or 3-letter code ('Germany', 'DEU'), 'WOR' for world or 'EEE' for Europe. |
estimate_server Estimate a server
Estimate the environmental footprint of an on-premise server, optionally with GPUs: manufacturing (embedded) and electricity (use) impacts per criterion, with units, ranges and warnings. Use it for physical servers; use estimate_cloud_instance for cloud VMs and estimate_component for one part on its own. Any part you leave out (CPU, RAM, disks, GPU, power supply, case) comes from `archetype` (default 'platform_compute_medium'), and the result lists which ones. The default lifetime is 4 years (35040 h); a `duration_hours` longer than the…
| Parameter | Type | Description |
|---|---|---|
archetype | Server archetype for anything not given (default 'platform_compute_medium'); see search_catalog. | |
avg_power_w | Average power in watts. | |
cpu | CPUs, e.g. {name: 'Xeon Gold 6134', units: 2}. | |
criteria | Impact criteria codes; default gwp, adp, pe. See list_impact_criteria. 'all' is not accepted. | |
detail | string | 'breakdown' adds per-component impacts and all assumptions. |
disks | Disks, e.g. [{type: 'ssd', units: 2, capacity_gb: 960}]. | |
duration_hours | Period assessed in hours (8760 = 1 year, 730 = 1 month). Omit for the whole hardware lifetime. | |
gpu | GPUs, e.g. {name: 'A100 SXM4 80GB', units: 8}. | |
gpu_load_percent | Average GPU load in percent. | |
lifetime_hours | Hardware lifetime in hours. | |
load_percent | Average CPU load in percent. | |
ram | RAM modules, e.g. [{units: 12, capacity_gb: 32}]. | |
server_type | Form factor; defaults to the archetype's (rack). | |
usage_location | Where the electricity comes from: country name or 3-letter code ('Germany', 'DEU'), 'WOR' for world or 'EEE' for Europe. | |
use_time_ratio | Share of time the device is in use, 0 to 1. |
estimate_component Estimate a component
Estimate the environmental footprint of one kind of component (gpu, cpu, ram, ssd or hdd), `units` of it: manufacturing (embedded) and electricity (use) impacts per criterion, with units, ranges and warnings. Use it for parts on their own, such as eight H100 GPUs. A GPU alone excludes its host server: for a whole machine use estimate_server with a `gpu` block. `name` and `tdp_w` apply to gpu and cpu, `capacity_gb` to ram, ssd and hdd; other combinations are an error. Names are resolved to BoaviztAPI's model names and an ambiguous one (su…
| Parameter | Type | Description |
|---|---|---|
component * | string | Component type. |
avg_power_w | Average power in watts. | |
capacity_gb | Capacity in GB (ram, ssd, hdd). | |
criteria | Impact criteria codes; default gwp, adp, pe. See list_impact_criteria. 'all' is not accepted. | |
detail | string | 'breakdown' adds per-component impacts and all assumptions. |
duration_hours | Period assessed in hours (8760 = 1 year, 730 = 1 month). Omit for the whole hardware lifetime. | |
lifetime_hours | Hardware lifetime in hours. | |
load_percent | Average CPU load in percent. | |
name | Model name for gpu or cpu, e.g. 'H100 SXM'. | |
tdp_w | TDP in watts (gpu, cpu). | |
units | integer | How many. |
usage_location | Where the electricity comes from: country name or 3-letter code ('Germany', 'DEU'), 'WOR' for world or 'EEE' for Europe. |
estimate_device Estimate an end-user device
Estimate the environmental footprint of an end-user device: laptop, desktop, smartphone, tablet, television, box, vr_headset, vr_controller, monitor, usb_stick, external_ssd, external_hdd or iot_device. Returns manufacturing (embedded) and electricity (use) impacts per criterion, with units, ranges and warnings. Use it for devices people use, not servers or cloud (see estimate_server and estimate_cloud_instance). Without `archetype` the device type's default profile is used, except for iot_device, which needs one; list them with…
| Parameter | Type | Description |
|---|---|---|
device_type * | string | Kind of device. |
archetype | Device archetype, e.g. 'laptop-pro'; required for iot_device. See search_catalog(kind='device_archetype'). | |
avg_power_w | Average power in watts. | |
criteria | Impact criteria codes; default gwp, adp, pe. See list_impact_criteria. 'all' is not accepted. | |
detail | string | 'breakdown' adds per-component impacts and all assumptions. |
duration_hours | Period assessed in hours (8760 = 1 year, 730 = 1 month). Omit for the whole hardware lifetime. | |
lifetime_hours | Hardware lifetime in hours. | |
usage_location | Where the electricity comes from: country name or 3-letter code ('Germany', 'DEU'), 'WOR' for world or 'EEE' for Europe. | |
use_time_ratio | Share of time the device is in use, 0 to 1. |
compare_estimates Compare estimates
Compare 2 to 5 options (cloud instances, servers, components or devices) over one common period and rank them per criterion, with each total, the difference from the first option, and whether the uncertainty ranges overlap. Use it whenever the question is which option is greener or how options differ; use the single estimate tools for one item. Each item has a `label`, a `kind`, and `params` holding the matching estimate tool's inputs (without duration_hours, criteria or detail). `duration_hours` is required so items with different lifet…
| Parameter | Type | Description |
|---|---|---|
duration_hours * | number | Common period in hours for every option (8760 = 1 year), so options with different lifetimes compare fairly. |
items * | array | 2 to 5 options. |
criteria | Impact criteria codes; default gwp, adp, pe. See list_impact_criteria. 'all' is not accepted. |