Tutorial
The  EcoLogits library tracks the energy consumption and environmental impacts of generative AI models accessed through APIs and their official client libraries. 
It achieves this by patching the Python client libraries, ensuring that each API request is wrapped with an impact calculation function. This function computes the environmental impact based on several request features, such as the chosen model, the number of tokens generated, and the request's latency. The resulting data is then encapsulated in an Impacts object, which is added to the response, containing the environmental impacts for a specific request.
- 
Set up in 5 minutes 
 Install ecologitswithpipand get up and running in minutes.
- 
Environmental impacts 
 Understand what environmental impacts and phases are reported. 
- 
Supported providers 
 List of providers and tutorials on how to make requests. 
- 
Methodology 
 Understand how we estimate environmental impacts.