🤔️ Need to execute tasks in bulk?

GIF Demo

👍️️️️️️ Try GPT for Sheets!

  • 📄 Create product descriptions at once
  • 💼 Generate leads and enrich data
  • 🔗️️️️️️ Scrapping sites
  • 🌎 Google Search
  • 🔍 Programmatic SEO & bulk page generation
  • 📣 AI-powered social media post generator
  • 📈 Extract top-ranked competitor keywords
  • 🤖 Support Perplexity, Claude, Mistral, Gemini, OpenRoute

How to set up OpenAI, Claude, Gemini, Perplexity and Mistral API keys - GPT for Google Sheets

Before you have started

  1. Install GPT for Sheets Add-On
  2. Upgrade subscription to Pro User plan
  3. Create a new sheet document or make sure you OWNER of the current one
  4. Launch the Add-On: Extensions > GPT for Sheets, Docs, Slides, Forms > Launch
  5. Please click on the ‘Refresh Account’ button located: Extensions > GPT for Sheets, Docs, Slides, Forms > Refresh Account Refresh Account
  6. If you already have an API key for the desired AI model (OpenAI, Claude, Mistral, Perplexity, Gemini), please click on ‘Set Up API Key’ and paste your API key Refresh Account The actual cost of using OpenAI will be VERY LOW, as it was designed to bypass the rate limits of GPT.
  7. If you don’t have an API key, please follow these instructions on how to obtain one
  8. Ensure you have at least $1 in your OpenAI billing account. The actual cost of using OpenAI will be VERY LOW, as it was designed TO BYPASS THE RATE LIMITS OF GPT. If your account is new, you will initially have access to the Free Tier with relatively small limits. It is recommended to add at least $5 to your account to upgrade to Tier 1, which offers higher rate limits and access to GPT-4o: Billing for OpenAI Account
  9. Copy and paste examples from the sidebar into any cell: Extensions > Add-On > Launch.
  10. Please use the buttons ‘Replace All GPTs’ or ‘Replace Selected GPTs’ when you are satisfied with the results. Google Sheets refreshes formulas periodically, and if you refresh the page, you may lose your changes.
  11. When you’re satisfied with the results, don’t forget to click on the ‘Replace All/Selected GPTs’ buttons. This will replace the functions with their outputs, preventing them from recalculating when the sheet is refreshed or after a certain time (specific to Google Sheets)
  12. RECOMMENDATION: The best way to ensure optimal performance with Google Add-Ons is by using a separated Google Chrome Profile for your single gmail account! (sometimes, Google API does not work well with multiple accounts in the same Chrome profile) This helps bypass any potential issues that may arise from compatibility with other browsers. If you encounter any errors while using or launching, please check these pages before reaching out to support:

Important!

If you encounter the message: “Authorization is required to perform this action.”

  1. Use a personal Gmail account: If you use a company email (workspace), it may have restrictions on using add-ons. You might need to ask your company’s email administrator to configure settings to allow the installation of add-ons. Therefore, it’s recommended to use a personal account. If you need to transfer your subscription, please contact support via chat or email at yaroslav91@gmail.com.
  2. If you use a personal account and still gets this issue, just re-install the add-on
  3. Use the Google account in a separated Google Chrome Profile - usually it requires if you use multiple Google Accounts (Google Issue)

  4. create-profile.png

If you encounter the message: “You exceeded your current quota, please check your plan and billing details”

RECOMMENDATION:

  • Optimal performance with Google Add-Ons is by using the Google Chrome browser.
  • If you use multiple accounts in the same Google Chrome Profile, please create a separated Google Chrome Profile for this account. (Google sometime unstable with multi-accounts cookies)
  • If you use company email - sometime company emails have restrictions with installation add-ons. It could require asking admin of the company email to configure for allowing installation add-ons or USE a PERSONAL ACCOUNT. (if needed to move subscription, please write to support chat or email — yaroslav91@gmail.com)

If you use multiple accounts in the same Chrome browser - Please create a separate Chrome Profile for this one account. Sometime Google API see you as another account.

Instructions - How to set up OpenAI API keys

Create an OpenAI API key to gain access to the ChatGPT API and other OpenAI APIs. This key allows OpenAI to track your usage and generate accurate billing.

1. Log in or sign up to the OpenAI platform

sign-up-openai.png

2. Click on Create new secret key. Ensure you have at least $1 in your OpenAI billing account. The actual cost of using OpenAI will be low, as it was designed to bypass the rate limits of GPT

generate-api-key.png

3. Copy your key to your clipboard

created-api-key.png

4. Open a spreadsheet with installed add-on and Launch the sidebar Extensions > GPT for Docs, Sheets, Forms, Slides > Launch

5. Please make sure that you have removed all other add-ons that provides GPT functions, to dont have conflicts

6. At this step you should have subscription to Pro User plan

created-api-key.png

7. Click on ‘Refresh account’: Extensions > GPT for Sheets, Docs, Slides, Forms > Refresh Account

refresh-account.png

8. Click on ‘Set Up OpenAI Key’: Extensions > GPT for Sheets, Docs, Slides, Forms > Refresh Account

refresh-account.png

9. Paste your OpenAI API key where indicated, and click ‘Check’ button

check-and-save-api-key.png

10. Click on ‘Save’ button

11. Type a simple formula in a cell and get a response from GPT

=GPT(“Write a title for coffee shop”)

!!! After subscribing or changing your plan, please click on the ‘Refresh Account’ button located: Extensions > GPT for Sheets, Docs, Slides, Forms > Refresh Account

refresh-account.png

Important!

IMPORTANT-GPT-for-Sheets

After getting a final result, please click on ‘Replace All GPTs’ or ‘Replace Selected’ button to replace the formula with the result. If to don’t do this - Google Sheets re-execution all formulas on refreshing page and every 1–2 minutes. (could affect your credits on Open AI or Internal credits, depends on plan)

Comparison Rate Limits for Free Tier and Tier 1

Free Tier

tier-0.png

Tier 1

tier-1.png

Troubleshooting

You exceeded your current quota, please check your plan and billing details
Exception: “The model gpt-4-0125-preview does not exist or you do not have access to it

OpenAI transitioned to prepaid plans starting March 25, 2024. Please review your OpenAI API Key account here: Billing for OpenAI Account

It happens due to of your tier in Open AI, please increase your tier in OpenAI and the model will appear for your account.

  1. If you have Free Tier - Please fill in your account at least for 5$ to have Tier 1 Rate Limits
  2. To check your tier please follow this link: Check your Tier
  3. Recreate the API Key and try to use GPT, Claude, Mistral, Gemini for Sheets with the new (recreated) API Key
ScriptError: Authorisation is required to perform that action

Reason

You use a company email account, you need to use a personal email or ask admin to allow execution addons You used multiple Google accounts in the same Chrome session

Solution #1

  1. Use Personal Email

Solution #2

  1. Create a new Chrome profile
  2. Create a new spreadsheet
  3. Try a GPT function again

Solution #3

  • Clean up cookies in your browser
  • Login again in Google account
  • Uninstall and Install again the add-on

Solution #4

  • Ask admin of the workspace account to allow execution add-ons

Other possible issues could be found here: Troubleshooting

You’ve configured your OpenAI API key within GPT for Sheets and Docs. Now, any user granted Editor access to this spreadsheet can utilize GPT functions using this API key

How to create Mistral API keys

1. Please create an account https://console.mistral.ai/

2. Go to https://console.mistral.ai/api-keys/ and create an api key

3. Here is the pricing page for the Mistral api keys: https://docs.mistral.ai/platform/pricing/

How to create Claude (Anthropic) api key

1. Please follow this official page https://docs.anthropic.com/claude/reference/getting-started-with-the-api

2. If you have already account, check your keys here: https://console.anthropic.com/settings/keys

How to create Perplexity AI api key

1. Please follow this official page https://docs.perplexity.ai/docs/getting-started

2. If you have already account, check your keys here: https://www.perplexity.ai/settings/api

3. Generate API Key, copy it

4. Go to the GPT for Sheets and click on Set Up Open AI keys. Scroll down and insert the key

5. Click on ‘Check’ button to validate it. After that click on ‘Save’ button

6. Now you can use Perplexity AI with function =PERPLEXITY(‘what are top youtube videos for today’)

How to create Gemini API keys

You can create your api key at this page: https://aistudio.google.com/app/apikey