Skip to content

Kotlin Multiplatform sample that uses Gemini Generative AI APIs. Runs on Android, iOS, Desktop and Wasm based Compose for Web.

License

Notifications You must be signed in to change notification settings

khalid64927/GeminiKMP

 
 

Repository files navigation

Kotlin/Compose Multiplatform sample to demonstrate Gemini Generative AI APIs (text based queries for now). Uses Gemini REST APIs from common code using Ktor.

Running on

  • iOS
  • Android
  • Desktop
  • Web (Wasm)

Set your Gemini API key in local.properties

To do

  • Use Compose Multiplatform library to display markdown returned (waiting on one that supports Wasm based Compose for Web)
  • Allow uploading images and running queries on those.

Screenshots

iOS

Simulator Screenshot - iPhone 15 Pro - 2023-12-31 at 12 54 13

Android

Screenshot_20231231_125523

Wasm based Compose for Web

Screenshot 2023-12-31 at 13 01 02

Compose for Desktop

Screenshot 2023-12-31 at 14 34 28

About

Kotlin Multiplatform sample that uses Gemini Generative AI APIs. Runs on Android, iOS, Desktop and Wasm based Compose for Web.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 86.8%
  • Swift 8.7%
  • HTML 4.5%