Method: models.get

Full name: publishers.models.get

Gets a Model Garden publisher model.

Endpoint

gethttps://{service-endpoint}/v1/{name}

Where{service-endpoint} is one of thesupported service endpoints.

Path parameters

namestring

Required. The name of the PublisherModel resource. Format:publishers/{publisher}/models/{publisherModel}

Query parameters

languageCodestring

Optional. The IETF BCP-47 language code representing the language in which the publisher model's text information should be written in.

Optional. PublisherModel view specifying which fields to read.

isHuggingFaceModelboolean

Optional. Boolean indicates whether the requested model is a Hugging Face model.

huggingFaceTokenstring

Optional. token used to access Hugging Face gated models.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance ofPublisherModel.

PublisherModelView

View enumeration of PublisherModel.

Enums
PUBLISHER_MODEL_VIEW_UNSPECIFIEDThe default / unset value. The API will default to the BASIC view.
PUBLISHER_MODEL_VIEW_BASICInclude basic metadata about the publisher model, but not the full contents.
PUBLISHER_MODEL_VIEW_FULLInclude everything.
PUBLISHER_MODEL_VERSION_VIEW_BASICInclude: VersionId, ModelVersionExternalName, and SupportedActions.

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-06-27 UTC.