Giter Site home page Giter Site logo

akashkobal / gemini-app-starter Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 1.41 MB

This repository outlines how you can use Android Studio to build an application that implements Generative AI using the Google AI SDK. It lays out the process in three steps. Before beginning, ensure that you are running the latest preview version of Android Studio.

Home Page: https://theakash.co.in

Kotlin 100.00%
android gemini gemini-ai gemini-pro gemini-android-app ai-chatbot akash akash-kobal android-application android-chat-application gemini-api gemini-app gemini-chat gemini-chatbot google-api google-gemini google-generative-ai kotlin-android

gemini-app-starter's Introduction

Build your first Generative AI app in Android Studio

This repository outlines how you can use Android Studio to build an application that implements Generative AI using the Google AI SDK. It lays out the process in three steps. Before beginning, ensure that you are running the latest preview version of Android Studio.

Step 1: Build on the New Project template for AI

Start Android Studio and open a new project using File > New Project. Select the new Gemini API starter template.

alt text
alt text

Step 2: Generate the API key

In the next step of the wizard, after you choose a project name and location, provide an API key for authentication to the Gemini API. If you don't have a Gemini API key, click the link provided in the wizard to navigate to Google AI Studio and request a new key. Once completed, copy your new API key back into the wizard. Click Finish.

alt text
alt text
alt text

Step 3: Start prototyping

Android Studio will automatically set up a project for you with a connection to the Gemini API, simplifying your workflow. Click Run to see the code in action in the Android Emulator. The app comes with a hard-coded prompt asking the model to "Summarize the following text for me"; you can edit or expand the prompt directly in the code to modify what it can do. You can learn more about creating prompts in the Google AI Studio documentation.

alt text
alt text
alt text

gemini-app-starter's People

Contributors

akashkobal avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.