Extension Icon


Interact with OpenAI GPT AI
AvatarMarko Simic
46,001 Installs




A Raycast extension that lets you interact with OpenAI GPT.

Warning: Please comply with the OpenAI Usage Policy while using this extension.

To use this extension, you must have an OpenAI API account, obtain your API key, and add it during the extension configuration screen.

You can find your API key in "View API keys" under your profile settings.

The interface of the extension follows the interface of the OpenAI Playground.


Send Prompt: send entered prompt to GPT.

Copy Answer to Clipboard: copy the last answer from GPT to the system's clipboard.

Load an Example: load an example of GPT usage into your prompt. Examples are taken from the OpenAI website.

Check Examples on OpenAI Website: open a browser and go to OpenAI Example Page.

Change API Key: open Raycast extension preference where you can change the API key.


You can set different parameters for the AI model:

AI Model: type of the model you want to use. gpt-4-0125-preview is the most powerful one for now, but gpt-3.5-turbo-0125 is cheaper, faster, and almost as capable.

Temperature: controls randomness of the AI model. The lower it is, the less random (and "creative") the results will be.

Maximum Tokens: limit for the number of tokens the AI model will generate in the response. You can see a live preview of how many tokens your prompt has underneath the Prompt box.

Top P: controls response diversity and is similar in effect to the Temperature parameter.

Frequency Penalty: controls how repetitive responses can get. Increasing the parameter lowers the chance of repetition.

Probability Penalty: controls how novel responses can get. Increasing the parameter raises the chance for novel answers.

Supported AI Models

  1. gpt-4-0125-preview
  2. gpt-3.5-turbo-0125
  3. gpt-4-1106-preview
  4. gpt-3.5-turbo-1106
  5. gpt-4
  6. gpt-3.5-turbo
  7. babbage-002
  8. davinci-002

Token Count

OpenAI API charges based on the number of total tokens, i.e., the number of tokens you submit in the prompt plus the number of tokens you got in response. Current prices are listed on Open AI Pricing page.

Tokens represent the length of your prompt. For English text, 1 token is approximately 4 characters or 0.75 words. As a point of reference, the collected works of Shakespeare are about 900,000 words or 1.2M tokens.

Extension dynamically calculates the number of tokens your prompt has based on open source GPT3 Encoder library. After the answer has been received, the Prompt token count is updated directly with the token usage from the OpenAI API response and represents an accurate count of tokens OpenAI is charging you.


All preferences properties list that can be customize through Raycast Settings > Extensions > Query OpenAI GPT

openAiApiKeyOpenAI API KeystringtrueemptyYour personal OpenAI API key
openAiBasePathOpenAI Base PathstringfalseemptyCustom API basepath