To test and explore an on-device model prior to its full production release, the AICore app supports a "Developer Preview" mode that is available if you opt in through the Play Store. This lets you download preview models and test your prompts for early prototyping purposes.
Developer Preview mode also provides advanced settings such as bypassing quota limits to improve your overall development process.
Prerequisites
The AICore Developer Preview program is available for the devices that support the Prompt API.
Opt in to developer previews
To enroll in the AICore Developer Preview through the Play Store, follow these steps:
- Check that your device supports developer previews.
- Join the aicore-experimental Google group with the account you intend to use for testing.
Become a tester for the Android AICore testing program. It might take up to one hour before you see the Android AICore (Beta) app in the Play Store. Make sure to tap through to the app listing page to see the "(Beta)" label.
This will opt in all supported devices where the account is present.
On the Android AICore (Beta) Play Store listing page, tap Update if an update is available.
Once the update is complete, the AICore launcher icon
should appear.Upon launching the app, accept the terms and policies.
Note that pre-production models might be slower and less accurate. Using these models might impact system stability, storage usage, and device performance.
Once you've launched the app, download and test prompts with preview models.
Opt out of developer previews
To exit the AICore Developer Preview program, follow these steps:
- Go to the Android AICore (Beta) Play Store listing page. In the "App support" section, click Leave and confirm.
- Click Uninstall and confirm to uninstall the app.
- Click Update to restore the production version of AICore. Models will need to be re-downloaded to get AICore-powered features to work again.
Download and test prompts with preview models
To download a preview model, open the AICore app, select the model picker, and select a preview version of Gemini Nano to start the download. Your device probably already has a stable version of Gemini Nano downloaded and ready to use, so you can try the stable model while you wait.
After the model is downloaded, try inputting a text prompt. AICore processes the inference entirely on-device, streaming the response back to you in real-time. Be aware that because the model needs to be loaded into memory, the very first inference might take about a minute to account for model initialization. If you get a "BUSY" error for the initial inference, it's likely because another large model is currently being used and you should try again later.
The model's response includes the total inference time in milliseconds, so you can review its performance.
Bypass quota to facilitate testing
You might encounter a "BUSY" error when performing frequent testing within a short period of time. While this mechanism helps protect the device in production, it can be challenging for testing. As a workaround, go to Settings and toggle on Bypass quota limits to facilitate the development process. Note that this would apply to all apps on the device that use AICore, which might have system health implications.
Share feedback
To share feedback about your experience, open the AICore app and tap Settings > Send feedback.
Select the model your app uses
After testing different models using AICore, you can select the model that your app uses using the Prompt API. For more information, see Select a model.