An API inference is characterized by a set of input parameters sent to a base model, possibly fine-tuned, running on cloud or proprietary hardware, powered by energy from a grid region, at a particular time, and generating outputs like text, images, audio, and video. The Scope3 AI API uses this information to model the energy use, CO2, and water impact of an inference.
Here’s a simple example of a text generation inference. To try this, POST it to the API endpoint https://aiapi.scope3.com/v1/impact
or use our live API reference. You’ll need an API key which you can get when you sign up for Scope3 AI.
You can also use the Google Sheets Integration to play with the API, or the Python SDK.
Models may not accept all of these inputs, but the API is aware of:
Example for image generation:
Example for audio processing:
A base model can be specified in three ways. To see the list of models, you can query the List Model API.
Not supported yet
Example of a chat completion:
Example of text-to-image generation:
Example of speech-to-text:
Example of text-to-video generation:
The API returns impact metrics for each inference:
Here’s a complete example showing multiple inferences:
TODO: Add error handling
Common error codes:
401
: Unauthorized - Invalid or missing API key403
: Forbidden - API key doesn’t have access to requested resource406
: Not acceptable - Invalid request format415
: Unsupported media type429
: Too many requests - Rate limit exceededAn API inference is characterized by a set of input parameters sent to a base model, possibly fine-tuned, running on cloud or proprietary hardware, powered by energy from a grid region, at a particular time, and generating outputs like text, images, audio, and video. The Scope3 AI API uses this information to model the energy use, CO2, and water impact of an inference.
Here’s a simple example of a text generation inference. To try this, POST it to the API endpoint https://aiapi.scope3.com/v1/impact
or use our live API reference. You’ll need an API key which you can get when you sign up for Scope3 AI.
You can also use the Google Sheets Integration to play with the API, or the Python SDK.
Models may not accept all of these inputs, but the API is aware of:
Example for image generation:
Example for audio processing:
A base model can be specified in three ways. To see the list of models, you can query the List Model API.
Not supported yet
Example of a chat completion:
Example of text-to-image generation:
Example of speech-to-text:
Example of text-to-video generation:
The API returns impact metrics for each inference:
Here’s a complete example showing multiple inferences:
TODO: Add error handling
Common error codes:
401
: Unauthorized - Invalid or missing API key403
: Forbidden - API key doesn’t have access to requested resource406
: Not acceptable - Invalid request format415
: Unsupported media type429
: Too many requests - Rate limit exceeded