/GeminiKMP

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

Primary LanguageKotlinApache License 2.0Apache-2.0

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 (gemini_api_key) in local.properties

Related posts:

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