Method: invoke.invoke

Full name: projects.locations.endpoints.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/v1/{endpoint}/invoke/**

Path parameters

endpoint string

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

Request body

The request body contains data with the following structure:

Fields
deployedModelId string

id of the DeployedModel that serves the invoke request.

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.