How to Add ChatGPT/Gemini in Android Keyboard

In this guide, we will show you an interesting method through which you can add AI models like ChatGPT and Gemini to your Android device’s keyboard. For now, the only two ways to access these AIs are either via their dedicated app or through their websites. However, having this option embedded in the keyboard will definitely save some time and effort. And that’s not all. All the responses are in real-time.

Moreover, you can even instruct the AI agent to take on the role of a specific worker and then respond accordingly. For instance, if you usually use AI for asking food-related questions, then you can tell them to be a chef so that their responses would be more tailored towards food. Moreover, you can easily configure your API provider and switch between the various available options in just a single tap. So, without any further ado, let’s show you how this can be carried out.

  • How to Add ChatGPT/Gemini in Android Keyboard STEP 1: Install KeyboardGPT STEP 2: Add API Key ChatGPT API Key STEP 3: Prompts/Commands in KeyboardGPT STEP 4: How to Use KeyboardGPT Supported Keyboards

How to Add ChatGPT/Gemini in Android Keyboard

add chatgpt gemini android keyboard - 1

Before you proceed with the below steps, there’s one thing on which we would like to draw your attention to- the device needs to be rooted before you can carry out this tweak. Now, simply rooting your device just for this process isn’t something we would advise because the caveats would easily outweigh the benefits involved. But if you are ready to step into the rooted environment, then let’s get started.

STEP 1: Install KeyboardGPT

  1. To begin with, root your device via Magisk / KernelSU / APatch .
  2. Then, install the LSPosed Framework on your Android device.
  3. Now, download & install KeyboardGPT from its GitHub page.
  4. Then open LSPosed, go to Modules, and enable KeyboardGPT.
  5. Likewise also check the keyword that you’ll be using for the AI.
  6. Finally, restart your device and refer to the usage steps below.

NOTE: On some devices, GBoard might be a system app and hence it might not be shown by default in the KeyboardGPT under LSPosed. So tap on the overflow icon > select Hide > uncheck System > all system apps will now be shown, including Gboard- so select it.

STEP 2: Add API Key

Open any editable text in your keyboard [such as Search GIF], type in any random word, and hit Enter. This will bring up the pop-up from wherein you need to choose the desired AI agent. Here’s how it can be done across Gemini and ChatGPT:

How to Add ChatGPT Gemini in Android Keyboard - 2 How to Add ChatGPT Gemini in Android Keyboard - 3

Gemini API Key

  1. Head over to Google AI Studio API key page .
  2. Then click on Create API key at the top right.
  3. Now, click on Create API Key in New Project.
  4. You’ll now get an API key. Copy it from there.
  5. Then, paste the key in the module’s API field.
  6. Next, type ‘any one’ of the URLs in Base URL: https://generativelanguage.googleapis.com https://generativelanguage.googleapis.com/v1beta/ https://generativelanguage.googleapis.com/v1beta/openai/
  7. Finally, tap on OK and test out your AI model.

ChatGPT API Key

  1. Head over to the OpenAI API Key page .
  2. After that, click Create New Secret Key.
  3. Type in your name and choose a project.
  4. Set Permission as All > Create secret key.
  5. You’ll now get an API key. Click on Copy.
  6. Paste the key in the module’s API section.
  7. Finally, tap on OK and test the AI model!

STEP 3: Prompts/Commands in KeyboardGPT

The following are the available prompts/commands/parameters:

  • ?? to configure your API provider (api key, language model…)
  • ? your prompt to submit a normal prompt
  • !! to configure custom AI prompts
  • !p your prompt to submit a custom prompt where p is the prefix you chose
  • !s anything to do a web search

Let’s now try to understand what each of them means:

  • ?? It will bring up the menu from which you can choose the desired AI agent, like ChatGPT, Gemini, etc.
  • ? prompt Type in your prompt after a question mark, and the AI will respond to it. In other words, all your prompts should start with a question mark, such as ? Is Mac better than Windows.
  • !! Customize your AI agent. For instance, if you usually ask math math-related query to AI, then hit !! > Hit Enter > Tap on New Command > Give it any name of your choice under Prefix [Let’s say mathematician] > Add your command under Tweak Message [such as: You’re a Mathematician. All your answers should revolve around Maths only.] Finally, hit OK.
  • !prefix prompt Use this if you want the answers from AI in the manner you trained them above. For example, in our case, we have instructed them to be a mathematician. So if I want them to answer, keeping their profession in mind, then the syntax will be as follows: !mathematician What’s the probability that it will rain today? On the other hand, if you want to answer it as a general AI, then you should use just the question mark, as shown in the second command above [? What’s the probability that it will rain today.]
  • !s prompt Use this if you want the results in the Google web search instead of the normal test field, which we were getting till now.

STEP 4: How to Use KeyboardGPT

Simply open any editable text in your keyboard [such as Translate, Search GIF, etc], type your preferred commands as explained above, and hit Enter. That’s it.

How to Add ChatGPT Gemini in Android Keyboard - 4 How to Add ChatGPT Gemini in Android Keyboard - 5

Supported Keyboards

KeyboardGPT supports the following four keyboards, for now:

  • Gboard

  • Swiftkey

  • Fleksy

  • Samsung Keyboard

  • Create your own Game using ChatGPT 4o in less than 5 Minutes!

  • How to Launch ChatGPT Voice Mode from device’s lock screen!

  • Cannot Buy ChatGPT Plus via Apple Pay on iPhone [workaround]

  • Use ChatGPT with YouTube: Summarize and Transcribe Videos

Google preferred - 6 Google preferred - 7

(Cancel Reply)

Δ