curl --request GET \
--url https://{host}/v2/workspaces/slug:llm-gateway/webhooks/v1/models/regions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:llm-gateway/webhooks/v1/models/regions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:llm-gateway/webhooks/v1/models/regions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"regions": [
{
"id": "world",
"label": {
"fr": "<string>",
"en": "<string>"
},
"emission_factor": 123
}
],
"default": "<string>",
"suggested": "<string>",
"source": "<string>"
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"status": 123,
"retryAfter": 123,
"provider": "<string>",
"model": "<string>",
"provider_error_type": "<string>"
}List carbon-footprint regions
Regions a model can declare in region (each with its grid emission
factor, kg CO2eq/kWh), plus the region suggested for model_id from
the provider configuration: the provider’s carbon_region, else the
Bedrock AWS region mapped to its carbon region. suggested and
source are null without model_id or when nothing can be inferred.
curl --request GET \
--url https://{host}/v2/workspaces/slug:llm-gateway/webhooks/v1/models/regions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:llm-gateway/webhooks/v1/models/regions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:llm-gateway/webhooks/v1/models/regions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"regions": [
{
"id": "world",
"label": {
"fr": "<string>",
"en": "<string>"
},
"emission_factor": 123
}
],
"default": "<string>",
"suggested": "<string>",
"source": "<string>"
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"status": 123,
"retryAfter": 123,
"provider": "<string>",
"model": "<string>",
"provider_error_type": "<string>"
}Authorizations
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Query Parameters
Model id to suggest a region for.
256Response
Regions and suggestion.
Region the footprint uses when neither the model nor its provider entry gives one (world).
Suggested region id for model_id.
Where the suggestion comes from — provider, or bedrock:<aws region>.
Was this page helpful?