Yum News Yum News

Technology  ·  Artificial Intelligence  ·  Developer Insights

Breaking
Gemini Task Automation Guide: India UK Japan Apps ✦   How to Set Up ChatGPT Wallet for Agent Purchases ✦   How to Set Up and Use Gemini Live on Apple CarPlay ✦   How to Set Up Gemini Live on Apple CarPlay ✦   How to Use the Gemini Decisions API for Fast Choices ✦   How to Use Gemini Task Automation on Pixel Phones   ✦   Gemini 3.8 Live launches with native audio dialogue  ✦  Android September Drop adds Find Hub memory  ✦  ML Kit now supports Gemini Nano on-device inference
Set Thinking Levels for Android Apps in AI Studio
ai-toolsandroidtutorialsgemini

Set Thinking Levels for Android Apps in AI Studio

Choose low, medium, or high thinking levels when building native Android apps with Gemini 4 Argon in Google AI Studio Build mode for better results.

Gemini 4 Argon supports three thinking levels that control how deeply the model reasons before generating code or responses. In Google AI Studio Build mode these levels affect both the agent that generates your Kotlin and Jetpack Compose project and any Gemini calls your finished Android app makes through Firebase AI Logic.

Low finishes fastest and uses the fewest tokens. Medium is the default and works for most app builds. High digs deeper for complex UI logic, multi-screen flows, or hard debugging. You cannot turn thinking off.

Developer coding on a laptop with code on screen

What the levels mean for Android builds

Google documents the levels this way for Gemini 4 Argon (model ID gemini-4-argon):

  • Low: Fewest thinking tokens and lowest latency. Use it for simple screens, basic list views, or when you want quick iterations on layout tweaks.
  • Medium (default): Balanced speed and quality. Recommended for most Android projects, including standard Compose screens, ViewModels, and local storage.
  • High: Most thinking tokens and slowest first token. Choose it for multi-file architecture, complex state management, Firebase AI Logic integration, or when the agent needs to debug a failing build.

Thinking tokens count against the output limit and the bill. Introductory pricing through 30 November 2026 is $2 per million input tokens and $10 per million output tokens. After that the rates rise to $4 and $20. Keep max_output_tokens high enough so the model is not cut off while thinking.

How to set the level in AI Studio Build mode

  1. Open Google AI Studio and switch to Build mode from the left navigation.
  2. Select Android from the platform picker so the agent generates a Kotlin project instead of a web app.
  3. In the model controls or Run settings panel, choose Gemini 4 Argon if it is not already selected.
  4. Find the thinking level dropdown. It defaults to medium. Change it to low or high before you submit the prompt.
  5. Enter a clear prompt. Example: “Create a daily task tracker with local storage, a simple list view, and a dark mode toggle.”
  6. Submit. The agent generates the project and opens it in the browser-based Android emulator. The level you chose applies to this generation run.

You can change the level and re-prompt for later iterations. The agent manages all files and propagates changes across Gradle, Compose screens, and resources.

Android phone showing a clean app interface

Control thinking inside the generated app

When your Android app needs its own Gemini features, AI Studio can provision Firebase AI Logic and App Check automatically. The generated code calls the model from the client without embedding a raw API key.

In the Kotlin code the agent produces, you can set the thinking level on the generative model instance:

val model = Firebase.ai(backend = GenerativeBackend.googleAI())
    .generativeModel(
        modelName = "gemini-4-argon",
        generationConfig = generationConfig {
            thinkingConfig = thinkingConfig {
                thinkingLevel = ThinkingLevel.HIGH
            }
        }
    )

Use ThinkingLevel.LOW for fast classification or simple extraction inside the app. Use HIGH for complex reasoning such as generating multi-step plans or analysing user data. Medium remains the practical default for most interactive features.

If you have not enabled Firebase yet, ask the agent in chat: “Add Firebase AI Logic so the app can call Gemini 4 Argon securely.” The setup card appears and the agent wires App Check for you.

For the full Firebase setup steps see our guide on adding Gemini 4 Argon to Android with Firebase AI Logic.

Practical choices for Android projects

Start with medium for the initial build. Switch to high only when the agent produces incomplete screens or fails to handle multi-file changes correctly. Drop to low when you are iterating on colours, padding, or simple copy changes and want faster previews.

Test the same prompt at all three levels if quality matters. The emulator refreshes automatically after each agent edit, so you can compare results quickly. Remember that published benchmarks used the high setting, so medium or low may produce simpler Compose code.

The browser emulator does not support camera, NFC, Bluetooth, or full Google Play services. Install the APK on a physical device via the built-in WebUSB ADB button when you need those features. Thinking level does not change those hardware limits.

Tips for better Android results

Keep prompts concrete. Mention Jetpack Compose, Material 3, ViewModels, and any Firebase services you need. The agent follows the details you give.

Set max output tokens high enough (32k or more) when you choose high thinking. A low cap can leave you with empty or truncated code after the model has already spent tokens reasoning.

Download the project as a ZIP if you want to continue in Android Studio. The generated structure is a standard single-activity Kotlin DSL project.

For broader access details see our Gemini 4 Argon developer guide.

Conclusion

Thinking levels give you direct control over quality, speed, and cost when Gemini 4 Argon builds native Android apps in AI Studio. Start with medium, raise to high for complex architecture or debugging, and drop to low for quick layout iterations. The same control applies to Gemini calls your app makes through Firebase AI Logic. Measure on your own prompts and keep the output limit high enough so the model can finish its reasoning.

Sources

  • Google AI for Developers: Build Android apps in Google AI Studio
  • Google AI Studio: Gemini 4 Argon Developer Guide
  • Gemini API thinking documentation
  • Firebase AI Logic thinking configuration

Share this story