How to set up your API key

Pre-requisites

Set up your API key in Google Sheets

💡
You only need to do the setup once. You DO NOT need to do it on all spreadsheets.
⚠️
You must be the creator of the spreadsheet you set up your API key on.
  • Click Extensions > GPT for Sheets and Docs > Set API Key
notion image
  • Paste your secret key where indicated, save the changes
  • You can now try typing =GPT("say hi") in a cell and get a response from GPT.

If you get a Script Error, it means you are likely using multiple Google accounts in the same Chrome session. Please follow these steps to fix it:

  1. Follow this procedure to create a dedicated Chrome profile
  2. Create a new spreadsheet
  3. Set up your API key in this new spreadsheet
  4. Try typing =GPT("say hi") in a cell. It should work now.
  5. If it doesn’t please send a support request.

Set up your API key in Google Docs

💡
You only need to do the setup once. You DO NOT need to do it on all documents.
  • Click Extensions > GPT for Sheets and Docs > Set API Key
notion image
  • Paste your secret key where indicated, save the changes
  • You can now launch the sidebar (Extensions > GPT for Sheets and Docs > Launch sidebar) and start using GPT from Google Docs

If you get an error, it means you are likely using multiple Google accounts in the same Chrome session. Please follow these steps to fix it:

  1. Follow this procedure to create a dedicated Chrome profile
  2. Create a new document
  3. Set up your API key in this new document
  4. If it doesn’t please send a support request.

Next step