![](https://private-user-images.githubusercontent.com/32610660/319626253-26b50324-7b22-4eef-920c-176f44694bf5.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MzMzNDYsIm5iZiI6MTcyNDczMzA0NiwicGF0aCI6Ii8zMjYxMDY2MC8zMTk2MjYyNTMtMjZiNTAzMjQtN2IyMi00ZWVmLTkyMGMtMTc2ZjQ0Njk0YmY1LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI3VDA0MzA0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ4NzlhNTZjZjhmMWNlZGZjMzFjZGIwYjFkYzE1M2MwMDUyZWFmMDIwMjI5Zjk0ZThhZWUxNzhhODZkNjNjOTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.BbbZuub2U3XuSyoj2687VmJKsn7L0UW0fdwITvbyBBE)
App Appearance | Add Image | Ask with Multi-Modal or Just Text | Generating Result | Result |
---|---|---|---|---|
Before calling the Gemini API, you need to set up your API key. To use the Gemini API, you'll need an API key. If you don't already have one, create a key in Google AI Studio here.
It's strongly recommended that you do not check an API key into your version control system. Instead, you should store it in a local.properties
file (which is located in your project's root directory, but excluded from version control), and then use the Secrets Gradle plugin for Android to read your API key as a Build Configuration variable.