**Full name**: projects.locations.endpoints.directPredict

Perform an unary online prediction request to a gRPC model server for Vertex first-party products and frameworks.

### Endpoint

post `https://{service-endpoint}/v1/{endpoint}:directPredict`   
Where `{service-endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest#rest_endpoints).

### 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 `inputs[]` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/Tensor`)`` The prediction input.
`parameters` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/Tensor`)`` The parameters that govern the prediction.

### Response body

Response message for `https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/projects.locations.endpoints/directPredict#google.cloud.aiplatform.v1.PredictionService.DirectPredict`.

If successful, the response body contains data with the following structure:
Fields `outputs[]` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/Tensor`)`` The prediction output.
`parameters` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/Tensor`)`` The parameters that govern the prediction.

| JSON representation |
|---|
| ``` { "outputs": [ { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/Tensor`) } ], "parameters": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/Tensor`) } } ``` |

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `endpoint` resource:

- `aiplatform.endpoints.predict`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).