Model

public final class Model implements Enum

The model that will complete your prompt.\n\nSee models for additional details.

Types

Link copied to clipboard
public enum Known extends Enum<Model.Known>

An enum containing Model's known values.

Link copied to clipboard
public enum Value extends Enum<Model.Value>

An enum containing Model's known values, as well as an _UNKNOWN member.

Properties

Link copied to clipboard

An agentic capability model designed for direct interface interaction, allowing Gemini to perceive and navigate digital environments.

Link copied to clipboard
public final static Model GEMINI_2_5_FLASH

Our first hybrid reasoning model which supports a 1M token context window and has thinking budgets.

Link copied to clipboard
public final static Model GEMINI_2_5_FLASH_IMAGE

Our native image generation model, optimized for speed, flexibility, and contextual understanding. Text input and output is priced the same as 2.5 Flash.

Link copied to clipboard
public final static Model GEMINI_2_5_FLASH_LITE

Our smallest and most cost effective model, built for at scale usage.

Link copied to clipboard

The latest model based on Gemini 2.5 Flash lite optimized for cost-efficiency, high throughput and high quality.

Our native audio models optimized for higher quality audio outputs with better pacing, voice naturalness, verbosity, and mood.

Link copied to clipboard

The latest model based on the 2.5 Flash model. 2.5 Flash Preview is best for large scale processing, low-latency, high volume tasks that require thinking, and agentic use cases.

Link copied to clipboard

Our 2.5 Flash text-to-speech model optimized for powerful, low-latency controllable speech generation.

Link copied to clipboard
public final static Model GEMINI_2_5_PRO

Our state-of-the-art multipurpose model, which excels at coding and complex reasoning tasks.

Link copied to clipboard

Our 2.5 Pro text-to-speech audio model optimized for powerful, low-latency speech generation for more natural outputs and easier to steer prompts.

Link copied to clipboard

Pro-level visual intelligence with Flash-speed efficiency and reality-grounded generation capabilities.

Link copied to clipboard
public final static Model GEMINI_3_1_FLASH_LITE

Our most cost-efficient model, optimized for high-volume agentic tasks, translation, and simple data processing.

Link copied to clipboard

Our most cost-efficient model, optimized for high-volume agentic tasks, translation, and simple data processing.

Link copied to clipboard

Gemini 3.1 Flash TTS: Powerful, low-latency speech generation. Enjoy natural outputs, steerable prompts, and new expressive audio tags for precise narration control.

Link copied to clipboard
public final static Model GEMINI_3_1_PRO_PREVIEW

Our latest SOTA reasoning model with unprecedented depth and nuance, and powerful multimodal understanding and coding capabilities.

Link copied to clipboard
public final static Model GEMINI_3_FLASH_PREVIEW

Our most intelligent model built for speed, combining frontier intelligence with superior search and grounding.

Link copied to clipboard

State-of-the-art image generation and editing model.

Link copied to clipboard
public final static Model GEMINI_3_PRO_PREVIEW

Our most intelligent model with SOTA reasoning and multimodal understanding, and powerful agentic and vibe coding capabilities.

Link copied to clipboard
public final static Model LYRIA_3_CLIP_PREVIEW

Our low-latency, music generation model optimized for high-fidelity audio clips and precise rhythmic control.

Link copied to clipboard
public final static Model LYRIA_3_PRO_PREVIEW

Our advanced, full-song generative model with deep compositional understanding, optimized for precise structural control and complex transitions across diverse musical styles.

Functions

Link copied to clipboard
public final JsonField<String> _value()

Returns this class instance's raw value.

Link copied to clipboard
public final String asString()

Returns this class instance's primitive wire representation.

Link copied to clipboard
public Boolean equals(Object other)
Link copied to clipboard
public Integer hashCode()
Link copied to clipboard
public final Boolean isValid()
Link copied to clipboard
public final Model.Known known()

Returns an enum member corresponding to this class instance's value.

Link copied to clipboard
public final static Model of(String value)
Link copied to clipboard
public String toString()
Link copied to clipboard
public final Model validate()
Link copied to clipboard
public final Model.Value value()

Returns an enum member corresponding to this class instance's value, or Value._UNKNOWN if the class was instantiated with an unknown value.