B4A Library 🚀Gemini Lib! 🧠

🚀 Discover Gemini Lib! 🧠

Welcome to the future of programming with Gemini Lib! This incredible library is crafted for bold developers who want to breathe life into their B4X projects (B4J, B4A, and B4i) with the power of Google's artificial intelligence.

With Gemini Lib, the might of Gemini is at your fingertips. It's as simple as a couple of lines of code! 😎

Spectacular Features:

  1. 🔄 Total Compatibility: Gemini Lib seamlessly fits into B4J, B4A, and B4i, giving you access to the most advanced AI tools in any project you choose.
  2. 🛠️ Easy Integration: No more technical headaches! Gemini Lib streamlines the integration of artificial intelligence into your B4X applications, so you can focus on what matters most: creating amazing experiences for your users!
  3. 🧠 Complete Functionality: From natural language, Gemini Lib unlocks all of Gemini's API capabilities for your applications to reach their full potential.
  4. ⚡ Optimal Performance: Designed to shine even in the most demanding projects, Gemini Lib maximizes available resources to ensure exceptional performance at all times.
Excited to get started? Getting your API key is the first step towards creating incredible applications! 🌟 Visit Visit this link to get your API key and unleash your creativity. to get your API key and unleash your creativity.

Please note: To acquire the library, registration is required before making the purchase.

Gemini Lib is more than just an artificial intelligence library. It's your ticket to take your B4X projects to the next level! 💪

Don't wait any longer! Join the AI revolution with Gemini Lib today! 🚀🧠✨

Download: https://b4xapp.com/item/germini-lib-

example:


Example code:
#Region  Project Attributes
    #ApplicationLabel: ChatBot
    #VersionCode: 1
    #VersionName: 1.0
    #SupportedOrientations: portrait
    #CanInstallToExternalStorage: True
#End Region

#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: False
#End Region

 #BridgeLogger: True

Sub Process_Globals

    Dim xui As XUI
 
End Sub

Sub Globals
 

Dim ia As Gemini_IA
 

End Sub

Sub Activity_Create(FirstTime As Boolean)
 
 
    ia.Initialize(Me,"ia")
    ia.ApiKey("AIzaxxxxxxxxxxxxxxxxx") 'your apikey
 
End Sub


Sub button_Click
ia.Consult_IA("Write a story about a magic backpack")
End sub

Private Sub ia_success(x As String, success As Boolean)
    If success = True Then

        Log(x)

    Else

    End If
End Sub
 

Attachments

  • example chat.zip
    388.2 KB · Views: 148
  • 1000252933.png
    1000252933.png
    205.9 KB · Views: 170
  • 1000252932.png
    1000252932.png
    231.3 KB · Views: 181
Last edited:

fernando1987

Active Member
Licensed User
🚀 Introducing Gemini Lib 4.0! 🧠

Step into the next era of programming with Gemini Lib 4.0! Designed for visionary developers, this cutting-edge library supercharges your B4X projects (B4J, B4A, and B4i) with the power of Google's advanced AI.

With Gemini Lib 4.0, you now have the ability to not only leverage text-based queries but also to upload images and PDF documents for analysis by Gemini! The possibilities are endless, and the integration is seamless—just a few lines of code are all it takes. 😎

This version introduces a whole new dimension to your AI-driven applications, making it easier than ever to extract insights and generate content from a variety of formats. Plus, the codebase has been further refined for better performance and usability.

Don’t miss out on the revolution! Join the AI-powered development world with Gemini Lib 4.0 today! 🚀🧠✨

Example Usage:
Example pdf:
#Region Project Attributes
    #MainFormWidth: 600
    #MainFormHeight: 600
#End Region

Sub Process_Globals
    Private fx As JFX
    Private MainForm As Form
    Private xui As XUI
    Private Button1 As B4XView
    Dim gemini As Gemini_IA
End Sub

Sub AppStart (Form1 As Form, Args() As String)
    MainForm = Form1
    MainForm.RootPane.LoadLayout("Layout1")
    MainForm.Show
End Sub

Sub Button1_Click
   
    gemini.Initialize(Me,"consult")
    gemini.ApiKey("AIzaxxxxxxxxxxxxxxxxxxxxxxxxx")
    gemini.temperature = 0
    gemini.HARM_CATEGORY_DANGEROUS_CONTENT = gemini.umbral.BLOCK_LOW_AND_ABOVE

    Dim s As String
    Dim f As FileChooser
    f.Initialize
    s = f.ShowOpen(MainForm)
    gemini.ConsultForPdf_IA("give me a summary of this document",s)

End Sub

Private Sub consult_success(x As String, success As Boolean)
Log(success)
    If success = True Then

        Log(x)

    Else

    End If
End Sub

Private Sub consult_error(error As String)
    Log(error)
End Sub

For existing users, log in to your user panel on our store using your credentials. In the "Recent Orders" section, find the option to download and access the latest Version 4.
 

fernando1987

Active Member
Licensed User
🚀 Introducing Gemini Lib 4.1! 🧠

The next era of programming just got even better! We’re excited to announce the release of Gemini Lib 4.1—your go-to library for supercharging B4X projects (B4J, B4A, and B4i) with the power of Google's advanced AI.

In this update, we've squashed bugs and optimized the code, ensuring a smoother and more reliable experience. With Gemini Lib 4.1, you still have all the incredible features from 4.0—like the ability to analyze images and PDF documents alongside text-based queries—but now with enhanced stability and performance.

Don’t miss out on this upgrade! Elevate your AI-powered applications to new heights with Gemini Lib 4.1. 🚀🧠✨

For existing users, log in to your user panel on our store using your credentials. In the "Recent Orders" section, find the option to download and access the latest Version 4.1
 
Top