[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[],[],null,["# Method: endpoints.directPredict\n\n**Full name**: projects.locations.endpoints.directPredict\n\nPerform an unary online prediction request to a gRPC model server for Vertex first-party products and frameworks. \n\n### Endpoint\n\npost `https:``/``/{service-endpoint}``/v1``/{endpoint}:directPredict` \nWhere `{service-endpoint}` is one of the [supported service endpoints](/vertex-ai/docs/reference/rest#rest_endpoints).\n\n### Path parameters\n\n`endpoint` `string` \nRequired. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`\n\n### Request body\n\nThe request body contains data with the following structure:\nFields `inputs[]` `object (`[Tensor](/vertex-ai/docs/reference/rest/v1/Tensor)`)` \nThe prediction input.\n`parameters` `object (`[Tensor](/vertex-ai/docs/reference/rest/v1/Tensor)`)` \nThe parameters that govern the prediction. \n\n### Response body\n\nResponse message for [PredictionService.DirectPredict](/vertex-ai/docs/reference/rest/v1/projects.locations.endpoints/directPredict#google.cloud.aiplatform.v1.PredictionService.DirectPredict).\n\nIf successful, the response body contains data with the following structure:\nFields `outputs[]` `object (`[Tensor](/vertex-ai/docs/reference/rest/v1/Tensor)`)` \nThe prediction output.\n`parameters` `object (`[Tensor](/vertex-ai/docs/reference/rest/v1/Tensor)`)` \nThe parameters that govern the prediction."]]