ListModels

1
2
3
4
5
6
7
8
using var client = new GeminiClient(apiKey);

ListModelsResponse response = await client.ListModelsAsync();

foreach (var model in response.Models ?? [])
{
    Console.WriteLine(model.Name);
}