From 511e8c745ad7e73ea2d1d2289f68499168642eae Mon Sep 17 00:00:00 2001 From: Google Team Member Date: Mon, 7 Sep 2026 05:28:21 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 977427190 --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 3ea066513..52ed3de88 100644 --- a/README.md +++ b/README.md @@ -659,6 +659,26 @@ await async_pager.next_page() print(async_pager[0]) ``` +### Get Model + +Retrieve information about a specific model: + +```python +model = client.models.get(model='gemini-2.5-flash') + +print(f'Display name: {model.display_name}') +print(f'Description: {model.description}') +print(f'Input token limit: {model.input_token_limit}') +print(f'Output token limit: {model.output_token_limit}') +``` + +#### Get Model (Asynchronous) + +```python +model = await client.aio.models.get(model='gemini-2.5-flash') +print(f'Display name: {model.display_name}') +``` + ### Safety Settings ```python