Free API Key Gemini: AI Formulas in Google Sheets and Excel
Free API Key Gemini offers a keyless GET endpoint that allows spreadsheet users to call an AI model directly from a cell. This service uses the open-weight free-ai model, providing a simple alternative to complex Google Cloud configurations for basic text tasks.
Why Spreadsheet Users Seek a Gemini Key
Users often encounter a wall when trying to add AI to formulas: they need a Google key, a billing project, and a script to hold the secret. While Google offers built-in Gemini features for Workspace apps, these do not provide a reusable API key for external use. The free tier has rate limits that fill quickly with large sheets, often requiring paid billing for heavy use.
To use the Gemini API from Apps Script, you must generate a key in Google AI Studio and store it securely. Restricting the key in the Cloud console ensures it only works for the Gemini API. However, managing these secrets in shared files can be risky, leading users to seek simpler, keyless alternatives for routine text processing tasks.
Understanding the free-ai Model
Free API Key Gemini serves an independent open-weight model named free-ai, which has approximately 9 billion parameters. It is not a Google, Anthropic, OpenAI, DeepSeek, Groq, or NVIDIA product, nor is it a replacement for their official services. The model is fine-tuned to refuse prompts less frequently than commercial assistants, making it suitable for straightforward labeling and extraction.
While Gemini models are larger and stronger for hard reasoning and multimodal input, free-ai handles short labeling, rewriting, translation, and extraction tasks well. It is an OpenAI-compatible API that requires no registration. Users can send requests via a plain GET URL, receiving plain text answers without needing to manage complex authentication tokens or project quotas.
A ready prompt for ChatGPT, Claude or Cursor: paste it, describe your task, done.
Implementing AI Formulas in Sheets and Excel
You can fetch a plain text answer by placing a GET URL directly into a cell. In Google Sheets, use =IMPORTDATA("https://api.freeapikeygemini.com/ask?q="&ENCODEURL(A2)) to process the prompt in cell A2. In Excel for Windows, the WEBSERVICE function combined with ENCODEURL works similarly. This allows you to turn a column of data into a prompt for immediate AI processing.
Note that IMPORTDATA treats commas as column breaks, which may truncate longer answers. For more robust handling of text, you can use a small Apps Script function. This approach avoids the limitations of cell-based formulas and provides a cleaner way to manage requests and responses within your spreadsheet environment without external dependencies.
Quotas and Refresh Behavior
The service limits requests to one per second per IP address. Import functions in Sheets refresh on their own schedule and when the sheet is reopened, while Excel may recalculate on edits. Each refresh counts as a new request against the daily quota, so large sheets can exhaust limits quickly if not managed carefully.
Once a column of answers looks correct, it is advisable to copy the data and paste values only. This prevents continuous recalculation and unnecessary API calls. The endpoint returns plain text with no service level agreement, so it is best suited for testing prompts or handling low-volume, non-critical text processing tasks in your daily workflow.
Frequently asked questions
What is Free API Key Gemini?
Free API Key Gemini is an independent, keyless, OpenAI-compatible API that serves the free-ai open-weight model. It requires no registration and limits requests to one per second per IP. It is not made by Google, Anthropic, OpenAI, DeepSeek, Groq, or NVIDIA, nor is it a replacement for their official services.
What is the free-ai model?
free-ai is an independent open-weight model of about 9B parameters, fine-tuned to refuse far less than commercial assistants. It is not Gemini or any other Google model and has no connection to Google. It handles short labeling, rewriting, translation and extraction tasks well, though it is smaller than Gemini models.
How do I use AI in Google Sheets without a key?
You can use the formula =IMPORTDATA("https://api.freeapikeygemini.com/ask?q="&ENCODEURL(A2)) to fetch a plain text answer for the prompt in cell A2. This uses a plain GET URL, so no API key is needed in the sheet. The formula treats the cell content as a prompt and returns the model's response directly.
Does this work in Excel?
Yes, in Excel for Windows, you can use the WEBSERVICE function with ENCODEURL to achieve the same result. This allows you to call the endpoint directly from a cell, similar to the Google Sheets method. It provides a simple way to integrate AI responses into your Excel workflow without additional plugins.
Why do AI cells keep recalculating?
Import functions in Sheets refresh on their own schedule and when the sheet is reopened. Excel may recalculate on edits. Each refresh is a new request against the daily quota. Once a column of answers looks right, copy it and paste values only to stop further requests and save your quota.
What are the limitations of the free tier?
Google's free tier has rate limits that differ by model and can change. A spreadsheet recalculating hundreds of rows can reach those limits quickly. Free API Key Gemini limits requests to one per second per IP. For heavy use, you may need to manage refreshes carefully or use Apps Script for better control over request timing.
Is this a replacement for Gemini?
No, free-ai is not a replacement for Gemini or other commercial models. Gemini models are larger and stronger on hard reasoning and multimodal input. Free API Key Gemini is best for simple text tasks like labeling or extraction, whereas Gemini is better for complex analysis. They serve different use cases.
How do I get a Gemini API key for Apps Script?
Sign in to Google AI Studio, create or select a Cloud project and generate an API key there. In Apps Script, store it in Script Properties rather than in a cell or in the code itself. Call the API with UrlFetchApp. Restrict the key in the Cloud console so it only works for the Gemini API.