1. What was announced
Better Data Center Project just published a breakdown of how Anthropic’s compute will be powered in 2028: 87 % of the energy will come from natural gas and 11 % from coal. In other words, the majority of the AI inference and training power that fuels Claude‑3 and its successors will still be sourced from fossil fuels for the next few years.
2. Why it matters
As AI engineers we often focus on latency, cost, and model quality, but the carbon footprint of our workloads is becoming a first‑class metric. The numbers above translate to roughly 1 kg CO₂ per kWh for the mix Anthropic is using, which is higher than the average grid mix in many EU countries.
- Regulatory pressure – Europe’s upcoming ESG reporting rules will require you to disclose the carbon intensity of the services you consume.
- Customer expectations – Enterprises are demanding carbon‑aware SLAs. Your SaaS product could lose contracts if you can’t prove you’re minimizing emissions.
- Cost optimization – In many regions, carbon‑intensive power is also the most expensive. Aligning workloads with cleaner, cheaper grid periods can shave dollars off your bill.
3. How to use it
The good news is you don’t have to wait for Anthropic to switch its own power source. You can make your own request pipeline carbon‑aware. Below is a practical recipe using the open‑source Carbon Aware SDK and Anthropic’s Python client.
# pip install anthropic carbon-aware-sdk
from anthropic import Anthropic
from carbon_aware import CarbonAwareClient, Location
import os, datetime
# 1️⃣ Initialise the SDK – pick a location that matches your data‑center
location = Location(region="us-east-1") # change to your region
ca = CarbonAwareClient()
# 2️⃣ Ask the SDK for the lowest‑carbon window in the next 24h
now = datetime.datetime.utcnow()
window = ca.get_optimal_time_range(
location=location,
start=now,
end=now + datetime.timedelta(hours=24),
duration_minutes=30, # we need a 30‑min slot for the batch job
)
print(f"Best window: {window.start} – {window.end} (intensity {window.intensity:.2f} gCO₂eq/kWh)")
# 3️⃣ Schedule your inference job to run in that window (example using cron)
cron_expression = f"{window.start.minute} {window.start.hour} * * *"
# write the cron line to a file or use a scheduler like Airflow/Prefect
# 4️⃣ When the window opens, fire the Anthropic request
client = Anthropic(api_key=os.getenv("ANTHROPIC_API_KEY"))
response = client.completions.create(
model="claude-3-opus-20240229",
max_tokens=512,
prompt="Explain the carbon impact of large language models in plain English."
)
print(response.completion)
Command‑line version (for quick experiments)
# Install the tools
pip install anthropic carbon-aware-sdk schedule
# Run a one‑off job that only executes when the grid intensity < 200 gCO₂eq/kWh
python - <<'PY'
import os, datetime
from anthropic import Anthropic
from carbon_aware import CarbonAwareClient, Location
ca = CarbonAwareClient()
loc = Location(region="us-west-2")
now = datetime.datetime.utcnow()
window = ca.get_optimal_time_range(loc, now, now+datetime.timedelta(hours=12), 15)
if window.intensity < 200:
client = Anthropic(api_key=os.getenv('ANTHROPIC_API_KEY'))
resp = client.completions.create(model='claude-3-sonnet-20240229', max_tokens=256,
prompt='Summarize the latest AI carbon‑footprint report.')
print(resp.completion)
else:
print('Current grid too dirty, skipping run.')
PY
What this does:
- Queries the public carbon‑intensity API for your region.
- Picks the cleanest 30‑minute window in the next day.
- Schedules the inference request to run only in that window, reducing the effective carbon cost of the same model call.
You can integrate this pattern into your CI/CD pipelines, batch inference jobs, or even real‑time services by falling back to a cheaper, greener model when the grid is dirty.
4. My take
Seeing that 87 % of Anthropic’s power still comes from gas is a wake‑up call. As someone who builds AI infra for Griffin AI Tech, I’ve been pushing for carbon‑aware orchestration for the past year. The reality is that most cloud providers expose only cost and performance metrics; carbon data is still a silo.
What helped us was:
- Embedding carbon checks at the orchestration layer (Kubernetes custom scheduler that reads the Carbon Aware SDK).
- Offering customers a “green mode” flag that automatically delays non‑critical inference until the grid is cleaner.
- Negotiating with our CSP for renewable‑energy credits tied to specific workloads – a financial offset that shows up in our ESG reports.
If you’re building a SaaS that relies heavily on LLM calls, consider exposing a green‑mode toggle to your users. It’s a low‑friction way to differentiate your product and future‑proof it against stricter carbon regulations.
Finally, keep an eye on Anthropic’s own roadmap. They’ve hinted at a “green compute pledge” for 2030. Until then, the onus is on us to make the most of the cleanest electricity we can access. The code snippets above are a starting point – adapt them to your stack, measure the impact, and iterate. The planet (and your balance sheet) will thank you.
Feel free to drop a comment or DM if you want to see a deeper dive into Kubernetes‑level carbon scheduling or a ready‑to‑run Terraform module that provisions the needed resources.
Top comments (0)