Method: invoke.invoke

Full name: projects.locations.endpoints.deployedModels.invoke.invoke

Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, [invokeRoutePrefix][Model.container_spec.invoke_route_prefix] must be set to allow the paths that will be specified in the request.

Endpoint

post https://aiplatform.googleapis.com/v1beta1/{endpoint}/deployedModels/{deployedModelId}/invoke/**

Path parameters

endpoint string

Required. The name of the Endpoint requested to serve the prediction. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

deployedModelId string

id of the DeployedModel that serves the invoke request.

Request body

The request body contains data with the following structure:

Fields
httpBody object (HttpBody )

The invoke method input. Supports HTTP headers and arbitrary data payload.

Response body

If successful, the response is a generic HTTP response whose format is defined by the method.

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

Last updated 2025年09月05日 UTC.