get

suspend fun get(model: String, config: GetModelConfig? = null): Model

Fetches information about a model by name.

Return

A {@link com.google.genai.types.Model} instance

Parameters

model

The name of the model to get

config

A GetModelConfig instance that specifies the optional configurations