Get a list of all Gemini’s models.

External Documentation

To learn more, visit the Gemini documentation.

Parameters

ParameterDescription
Filter Deprecated ModelsWhen checked, most unavailable models will not be obtained in the response.Note: Some returned models may still be deprecated. Using this option increases the likelihood of getting available models.

Example Output

{
	"models": [
		{
			"name": "models/chat-bison-001",
			"version": "001",
			"displayName": "PaLM 2 Chat (Legacy)",
			"description": "A legacy text-only model optimized for chat conversations",
			"inputTokenLimit": 4096,
			"outputTokenLimit": 1024,
			"supportedGenerationMethods": [
				"generateMessage",
				"countMessageTokens"
			],
			"temperature": 0.25,
			"topP": 0.95,
			"topK": 40
		},
		{
			"name": "models/text-bison-001",
			"version": "001",
			"displayName": "PaLM 2 (Legacy)",
			"description": "A legacy model that understands text and generates text as an output",
			"inputTokenLimit": 8196,
			"outputTokenLimit": 1024,
			"supportedGenerationMethods": [
				"generateText",
				"countTextTokens",
				"createTunedTextModel"
			],
			"temperature": 0.7,
			"topP": 0.95,
			"topK": 40
		}
	],
	"nextPageToken": "ChVtb2RlbHMvdGV4dC1iaXNvbi0wMDE="
}

Workflow Library Example

List Models with Gemini and Send Results Via Email

Preview this Workflow on desktop