Kotlin/Compose Multiplatform sample to demonstrate Gemini Generative AI APIs (text and image based queries). Uses Generative AI SDK.
Running on
- iOS
- Android
- Wear OS (contributed by https://github.com/yschimke)
- Desktop
- Web (Wasm)
Set your Gemini API key (gemini_api_key
) in local.properties
Related posts:
![Screenshot 2024-01-19 at 19 03 52](https://private-user-images.githubusercontent.com/6302/298171819-7435e8c4-7e1f-4851-91b5-52db90a39d46.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NTQ2MDUsIm5iZiI6MTcyNTU1NDMwNSwicGF0aCI6Ii82MzAyLzI5ODE3MTgxOS03NDM1ZThjNC03ZTFmLTQ4NTEtOTFiNS01MmRiOTBhMzlkNDYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDVUMTYzODI1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MmY3ZTE3ZDgzZjQ1NDlhNDE0MjFkNzIxZTZlZDU4Y2VjZjlkNWE4ODE0YTM5NzRmNjk2YTYzMGMwYTlhN2VkZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.gYPtKx1a5uSHPVc_CKGhAssAlaNrgGhOf5T9Ux9XKe8)
![Screenshot 2024-01-14 at 17 41 26](https://private-user-images.githubusercontent.com/6302/296612728-22176939-80a1-45df-878c-c75807f85a10.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NTQ2MDUsIm5iZiI6MTcyNTU1NDMwNSwicGF0aCI6Ii82MzAyLzI5NjYxMjcyOC0yMjE3NjkzOS04MGExLTQ1ZGYtODc4Yy1jNzU4MDdmODVhMTAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDVUMTYzODI1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWMyNDgyNGVlYjMxYTQzZTUwNGQxMmRkOWY4ODM4YzhmYzM4NTMxMDVmYmQ0NjhjYmIzMDJiZmZiZDViYWQxMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.ur6iPGX1PpKXLebuE7pREnnVuAfRo-L7NDnxMXLwNh8)
![Screenshot 2023-12-31 at 13 01 02](https://private-user-images.githubusercontent.com/6302/293506938-f128bf8f-499b-40e9-a4bd-0674aa0f9240.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NTQ2MDUsIm5iZiI6MTcyNTU1NDMwNSwicGF0aCI6Ii82MzAyLzI5MzUwNjkzOC1mMTI4YmY4Zi00OTliLTQwZTktYTRiZC0wNjc0YWEwZjkyNDAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJ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WFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.e_6Iqr2l7lwZtUKddSEH5R4wrmjfeMDfiuxKJsi3tQk)
- PeopleInSpace (https://github.com/joreilly/PeopleInSpace)
- GalwayBus (https://github.com/joreilly/GalwayBus)
- Confetti (https://github.com/joreilly/Confetti)
- BikeShare (https://github.com/joreilly/BikeShare)
- FantasyPremierLeague (https://github.com/joreilly/FantasyPremierLeague)
- ClimateTrace (https://github.com/joreilly/ClimateTraceKMP)
- GeminiKMP (https://github.com/joreilly/GeminiKMP)
- MortyComposeKMM (https://github.com/joreilly/MortyComposeKMM)
- StarWars (https://github.com/joreilly/StarWars)
- WordMasterKMP (https://github.com/joreilly/WordMasterKMP)
- Chip-8 (https://github.com/joreilly/chip-8)