VertexAI-KMP-Sample

Introduction: Compose Multiplatform sample that uses the Firebase Vertex AI SDKs
More: Author   ReportBugs   
Tags:

kotlin-version

Compose/Kotlin Multiplatform sample that makes use of the Firebase AI Logic SDK. The iOS and Android clients share the same Compose UI code but delegate to platform specific Swift and Kotlin code to invoke the respective SDKs. Currently generates markdown text, configured json or images (using Imagegen 3)

The project uses the following multiplatform dependencies

Setup

This project talks to Firebase AI Logic, so you need to connect it to your own Firebase project. The Firebase config files are not committed — add your own:

  • Android: place google-services.json in the androidApp/ directory.
  • iOS: place GoogleService-Info.plist in the iosApp/ directory.

Then enable Firebase AI Logic (Gemini Developer API backend) for your Firebase project in the Firebase console. No API key is set in code — the app authenticates through your Firebase project via those config files.

Related posts

Screenshots

Screenshot 2025-08-09 at 15 49 21

Full set of Kotlin Multiplatform/Compose/SwiftUI samples

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools
AI Daily Digest