TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/phpaisdk/google/llms.txt
Use this file to discover all available pages before exploring further.
aisdk/google package ships a resources/models.json catalog that maps model IDs to their capabilities. Rather than listing every specific Gemini release, the catalog uses wildcard patterns — for example, gemini-3* matches any model whose ID begins with gemini-3, such as gemini-3.5-flash or gemini-3.0-pro. This means the SDK automatically supports new Gemini releases in a known family without requiring a catalog update.
Text Models
These entries use wildcard patterns and cover all text-generation Gemini variants in each major family.| Model Pattern | Status | Capabilities |
|---|---|---|
gemini-3* | stable | text_generation, streaming, tool_calling, structured_output, reasoning, text_input, image_input, audio_input, file_input |
gemini-2.5* | stable | text_generation, streaming, tool_calling, structured_output, reasoning, text_input, image_input, audio_input, file_input |
gemini-2.0* | stable | text_generation, streaming, tool_calling, structured_output, text_input, image_input, audio_input, file_input |
gemini-1.5* | stable | text_generation, streaming, tool_calling, structured_output, text_input, image_input, audio_input, file_input |
The
gemini-3* and gemini-2.5* families include the reasoning capability, which exposes extended thinking / thinking tokens. The gemini-2.0* and gemini-1.5* families do not include reasoning.Image Models
Image models are listed by their exact IDs rather than wildcard patterns, since each image model is a distinct offering.| Model ID | Status | Capabilities |
|---|---|---|
gemini-3.1-flash-lite-image | stable | image_generation, text_generation, text_input, image_input |
gemini-3.1-flash-image | stable | image_generation, text_generation, text_input, image_input |
gemini-3-pro-image | stable | image_generation, text_generation, text_input, image_input |
gemini-2.5-flash-image | legacy | image_generation, text_generation, text_input, image_input |
Wildcard Matching
The catalog resolves model IDs using glob-style prefix matching. When you callGoogle::model('gemini-3.5-flash'), the SDK checks the catalog for an entry whose id field matches — in this case, the gemini-3* wildcard matches first and its capabilities are used.
If a model ID does not match any catalog entry (for example, an entirely unknown identifier), the SDK falls back to returning basic text generation support rather than throwing an error. This means you can pass an experimental model ID and still get a working TextGeneration capability, though no other capabilities will be reported. See the Capabilities reference for how this fallback is implemented.
Using Models
Instantiate a text model or an image model through theGoogle facade:
Every entry in
resources/models.json carries a "lab": "google" field. This label is used internally by the SDK to group and identify catalog entries by provider.