AI Models

With Alpha, you can also integrate state-of-the-art AI models like Gemini, OpenAI and Claude in whatever you've been building with us.

How Alpha builders feel building AI builder tools with an AI builder called Alpha

Building a simple AI PDF analyser tool using Alpha

The below approach essentially stores your AI model's API key in the frontend, which may not be ideal at certain situations. We're working on a better way to deal with this.

1. Prompt in Alpha

We're using Alpha and starting out with the following prompt:

Build me an AI PDF analyser tool "PDFAnalyse" in which users can upload any kind of PDF, and the tool analyses and gives a strong summary of the uploaded PDF

Have an upload functionality where user can upload the PDF. When we submit this form, it should make an AI call to Gemini (use the model name - gemini-2.5-flash-preview-05-20). Pass the PDF files directly to Gemini.

The final result should be a summarised version of the PDF

Make sure you type in the model name (in this case, gemini-2.5-flash-preview-05-20). Also in certain cases dealing with PDFs and documents, clearly add another prompt to directly pass the PDF to Gemini since it can sometime start parsing which can cause unnecessary additional iterations

Choosing React + Tailwind

2. Copy-paste your AI API Key to Alpha

Now you simply need to integrate your API Key. In the above case, we're just gonna head to Google AI Studio and get our API Key and paste it in the env file (your_gemini_api_key_here) in the "Code" section. For security purposes can't show you the API key.

3. And...you're done!

There can be situations where you'll need to re-run the terminal after putting the Gemini API key. make sure you go to Dualite Terminal below do Ctrl + C (on Mac) to kill the server and redo yarn and then yarn run dev step-by-step

Last updated