android-developers.googleblog.com Open in urlscan Pro
2a00:1450:4001:831::2001  Public Scan

Submitted URL: https://notifications.google.com/g/p/ANiao5oU9Z_ZoZmlvG2FZUfG10AzXed3Y3kBGTp-AunHADRnq3BeMA3xNGVZYIddNNCDe0IfH6Ck8zWyYbECFu0lYmgr...
Effective URL: https://android-developers.googleblog.com/2023/12/leverage-generative-ai-in-your-android-apps.html?utm_source=email&utm_medium=newsletter&...
Submission: On October 31 via api from RU — Scanned from DE

Form analysis 2 forms found in the DOM

/search

<form action="/search" class="searchbox">
  <input autocomplete="off" name="q" placeholder="Search blog" title="Search blog" type="text" value="">
</form>

/search

<form action="/search" class="searchbox">
  <input autocomplete="off" name="q" placeholder="Search blog" title="Search blog" type="text" value="">
</form>

Text Content

☰
Android Developers Blog
The latest Android and Google Play news for app and game developers.
🔍


Android Developers →
Jetpack Kotlin Docs News
Platform Android Studio Google Play Jetpack Kotlin Docs News




Platform Android Studio Google Play Jetpack Kotlin Docs News More
|


13 December 2023


LEVERAGE GEMINI IN YOUR ANDROID APPS

--------------------------------------------------------------------------------

Share this post LinkedIn Twitter Facebook Email Copy link
Link copied to clipboard
Posted by Dave Burke, VP of Engineering

Last week we unveiled our most capable foundation model, Gemini. Gemini is
multimodal – it can accept both text and image inputs. We introduced a way for
Android developers to leverage our smallest model Gemini Nano, on-device. This
is available on select devices through AICore, a system service that handles
model management, runtimes, safety features and more, simplifying the work for
developers. And today, we're introducing new ways for Android developers to
access the Gemini Pro model – which runs off-device, in Google's data centers.


APP DEVELOPMENT WITH GEMINI PRO

Gemini Pro is accessible via the Gemini API, and it’s our best model for scaling
across a wide range of text and image reasoning tasks. To simplify integrating
Gemini Pro, you can use the Google AI SDK, a client SDK for Android. This SDK
enables direct integration from Android apps and removes the need for developers
to build and manage their own backend infrastructure, reducing development costs
and improving velocity.

Google AI Studio provides a streamlined way for developers to integrate the
Gemini Pro model, craft prompts, create API keys, and effortlessly transform
ideas into AI apps. Once you have developed your prompt in Google AI Studio, you
can simply click on the “Get code” action to generate a Kotlin code snippet, and
start integrating Gemini today using the Google AI SDK for Android.


Generate Kotlin code for the Gemini API in Google AI Studio

We are also making it easier for developers to use the Gemini API directly in
the latest preview version of Android Studio. We’re introducing a new project
template for developers to get started with the Google AI SDK for Android right
away. You’ll benefit from Android Studio’s enhanced code completion and lint
checkers, helping with API keys and security.


New Project template for AI in Android Studio

To leverage the new template in Android Studio, start a new project through File
> New > New Project and pick the Gemini API starter template. This template
provides a pre-configured project with the necessary code to use the Gemini API.
After choosing a project name and location, you will be prompted to generate an
API key in Google AI Studio, and asked to enter it in Android Studio. Android
Studio will automatically set up the project for you with the Gemini API
connection, simplifying your workflow.

Alternatively, you can import the generative AI code sample and set it up in
Android Studio through File > New > Import Sample, and searching for "Generative
AI Sample".


Generative AI sample app



Get started building AI-powered features and Android apps using Gemini Pro.





--------------------------------------------------------------------------------

#GenerativeAI AI announcement beginner Explore GeminiPro
Newer post Older post


GOOGLE DEVELOPERS BLOG

Google Developers Blog


CONNECT

Android Developers

Google Play



SUBSCRIBE


FEED


NEWSLETTER

Privacy
|
License
|
Brand guidelines

Get news and tips by email
Diese Website verwendet Cookies von Google, um Dienste anzubieten und Zugriffe
zu analysieren. Deine IP-Adresse und dein User-Agent werden zusammen mit
Messwerten zur Leistung und Sicherheit für Google freigegeben. So können
Nutzungsstatistiken generiert, Missbrauchsfälle erkannt und behoben und die
Qualität des Dienstes gewährleistet werden.Weitere InformationenOk