Skip to content

Generative AI application that integrates Kotlin with Gemini API

Notifications You must be signed in to change notification settings

JhonatanIT/kotlin-gemini-api-generative-ai

Repository files navigation

Google Generative AI Sample for Android (Kotlin)

This Android sample app demonstrates how to use state-of-the-art generative AI models (like Gemini) to build AI-powered features and applications.

To try out this sample app, you need to use latest stable version of Android Studio. However, if you want to latest lint checks and AI productivity features in Android Studio use the latest preview version of Android Studio.

You can clone this repository or import the project from Android Studio following the steps here.

Screenshots

Screenshot

Requirements

  1. Follow the instructions on Google AI Studio setup page to obtain an API key.
  2. Add your API Key to the local.properties file in this format
apiKey=YOUR_API_KEY

Features

This sample showcases the following API capablilites:

  • Generate Text - demonstrates the Text feature from the SDK
  • Photo Reasoning - demonstrates the MultiModal feature from the SDK
  • Chat - demonstrates the Multi-turn Conversations feature from the SDK

Documentation

You can find the quick start documentation for the Android Generative AI API here.

About

Generative AI application that integrates Kotlin with Gemini API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages