[HTML payload içeriği buraya]
29.1 C
Jakarta
Tuesday, May 12, 2026

Unlock Customized On-Gadget Gemini Nano Experiences


Immediate API helps you to create customized prompts and set non-compulsory era parameters with only a few strains of code:

Technology.getClient().generateContent(
   generateContentRequest(
       ImagePart(bitmapImage),
       TextPart("Categorize this picture as one of many following: automotive, bike, bike, scooter, different. Return solely the class because the response."),
   ) {
       // Elective parameters
       temperature = 0.2f
       topK = 10
       candidateCount = 1
       maxOutputTokens = 10
   },
)

For extra detailed examples of implementing Immediate API, take a look at the official documentation and pattern on Github.


Gemini Nano, efficiency, and prototyping


Immediate API at the moment performs greatest on the Pixel 10 gadget collection, which runs the most recent model of Gemini Nano (nano-v3). This model of Gemini Nano is constructed on the identical structure as Gemma 3n, the mannequin we first shared with the open mannequin neighborhood at I/O.


The shared basis between Gemma 3n and nano-v3 allows builders to extra simply prototype options. For these with no Pixel 10 gadget, you can begin experimenting with prompts immediately by prototyping with Gemma 3n domestically or accessing it on-line via Google AI Studio.


For the total listing of units that assist GenAI APIs, consult with our gadget assist documentation.


Study extra

Begin implementing Immediate API in your Android apps immediately with steerage from our official documentation and the pattern on Github.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles