gcloud beta ai model-garden models list

NAME
gcloud beta ai model-garden models list - list the publisher models in Model Garden
SYNOPSIS
gcloud beta ai model-garden models list[--can-deploy-hugging-face-models][--full-resource-name][--model-filter=MODEL_FILTER][--filter=EXPRESSION][--limit=LIMIT; default=1000][--page-size=PAGE_SIZE][--sort-by=[FIELD,…]][GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) This command lists either all models in Model Garden or allHugging Face models supported by Model Garden.
EXAMPLES
To list all models in Model Garden, run:
gcloudaimodel-gardenmodelslist

To list Hugging Face models that can be deployed in Model Garden, run:

gcloudaimodel-gardenmodelslist--can-deploy-hugging-face-models

To list models withgemma in their names, run:

gcloudaimodel-gardenmodelslist--model-filter=gemma

Note: Since the number of Hugging Face models is large, the default limit is setto 500 with a page size of 100 when listing supported Hugging Face models. Tooverride the limit or page size, specify the --limit or --page-size flags,respectively. To list all models in Model Garden, use--limit=unlimited.

FLAGS
--can-deploy-hugging-face-models
Whether to only list Hugging Face models that can be deployed.
--full-resource-name
Whether to return the full resource name of the model.
--model-filter=MODEL_FILTER
Filter to apply to the model names or the display names of the list of models.
LIST COMMAND FLAGS
--filter=EXPRESSION
Apply a Boolean filterEXPRESSION to each resource itemto be listed. If the expression evaluatesTrue, then that item islisted. For more details and examples of filter expressions, run $gcloud topic filters. This flaginteracts with other flags that are applied in this order:--flatten,--sort-by,--filter,--limit.
--limit=LIMIT; default=1000
Maximum number of resources to list. The default is1000. This flaginteracts with other flags that are applied in this order:--flatten,--sort-by,--filter,--limit.
--page-size=PAGE_SIZE
Some services group resource list output into pages. This flag specifies themaximum number of resources per page. The default is determined by the serviceif it supports paging, otherwise it isunlimited (no paging).Paging may be applied before or after--filter and--limit depending on the service.
--sort-by=[FIELD,…]
Comma-separated list of resource field key names to sort by. The default orderis ascending. Prefix a field with ``~´´ for descending order on thatfield. This flag interacts with other flags that are applied in this order:--flatten,--sort-by,--filter,--limit.
GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.

Run$gcloud help for details.

NOTES
This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudaimodel-gardenmodelslist
gcloudalphaaimodel-gardenmodelslist

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-21 UTC.