generative-ai-python

google.generativeai.protos.ListModelsRequest

Request for listing all Models.

`page_size` `int` The maximum number of ``Models`` to return (per page). If unspecified, 50 models will be returned per page. This method returns at most 1000 models per page, even if you pass a larger page_size.
`page_token` `str` A page token, received from a previous ``ListModels`` call. Provide the ``page_token`` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to ``ListModels`` must match the call that provided the page token.