Method: projects.locations.deploy

Deploys publisher models.

Endpoint

post https://{endpoint}/v1beta1/{destination}:deploy

Where {service-endpoint} is one of the supported service endpoints.

Path parameters

destination string

Required. The resource name of the Location to deploy the model in. Format: projects/{project}/locations/{location}

Request body

The request body contains data with the following structure:

Fields
model string

Required. The name of the PublisherModel resource. Format: publishers/{publisher}/models/{publisherModel}@{versionId}, or publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001 or Hugging Face model id like google/gemma-2-2b-it.

endpointDisplayName string

Optional. The user-specified display name of the endpoint. If not set, a default name will be used.

dedicatedResources object (DedicatedResources)

Optional. The dedicated resources to use for the endpoint. If not set, the default resources will be used.

modelDisplayName string

Optional. The user-specified display name of the uploaded model. If not set, a default name will be used.

huggingFaceAccessToken string

Optional. The Hugging Face read access token used to access the model artifacts of gated models.

acceptEula boolean

Optional. Whether the user accepts the End user License Agreement (EULA) for the model.

Response body

If successful, the response body contains an instance of Operation.