🎯 The Problem

Large AI models consume massive amounts of energy. A single ChatGPT query can use 10x more energy than a Google search. Many prompts contain unnecessary words that increase computational load without adding value. As AI usage grows exponentially, so does its environmental impact.

💡 The Solution

Green Prompts Optimizer uses a custom-trained T5 transformer model to intelligently reduce prompt length while preserving meaning. By removing filler words and optimizing sentence structure, it can reduce token count by 30-50% on average, directly translating to energy savings.

🔬 How It Was Built

Data Collection — Created a dataset of 127 prompt pairs across different domains: coding, writing, and analysis.

Model Training — Fine-tuned Google's T5-small model using PyTorch and Hugging Face Transformers.

Energy Measurement — Integrated Zeus library to measure actual energy consumption during optimization.

Web Deployment — Built with GitHub Pages as the frontend, calling the Hugging Face Inference API directly.

🛠️ Technology Stack

🤖 T5 Transformer
🔥 PyTorch
🤗 Hugging Face
📊 Zeus Energy
🌐 GitHub Pages
⚡ Vanilla JS

👨‍💻 About the Developer

Hi, I'm Srinesh Toranala, a high school student interested in AI and environmental sustainability. This project was developed as part of my ISM (Independent Study Mentorship) Original Work for 2025-2026. I wanted to combine my interests in machine learning and climate action to create something that makes a real difference.

Through this project, I learned about transformer architectures, energy-efficient computing, and full-stack development. Most importantly, I discovered how technology can be a force for positive environmental change.

🔌 Chrome Extension

Optimize prompts directly in your browser. Works on ChatGPT, Claude, and other AI platforms.

⚡ One-Click OptimizationOptimize any prompt with a single click, right inside the chat interface.
🌐 Platform IntegrationWorks on ChatGPT, Claude, Gemini, and more.
📊 Real-Time StatsTrack your energy savings instantly as you optimize.
  1. Read instructions on the Install Chrome Extension page
  2. Open Chrome and go to chrome://extensions/
  3. Enable "Developer mode" in the top-right corner
  4. Click "Load unpacked" and select the chrome-extension folder
  5. Start optimizing prompts across all your favorite AI platforms
💡 Tip: Pin the extension to your toolbar for quick access. Click the puzzle icon in Chrome and pin "Green Prompts Optimizer".

🌍 Join the Movement

Every optimized prompt helps reduce AI's carbon footprint

Try the Optimizer →