Perform an online prediction with an arbitrary HTTP payload.
The response includes the following HTTP headers:
X-Vertex-AI-Endpoint-id
: id of theEndpoint
that served this prediction.X-Vertex-AI-Deployed-Model-id
: id of the Endpoint'sDeployedModel
that served this prediction.
HTTP request
POST https://{service-endpoint}/v1/{endpoint}:rawPredict
Where {service-endpoint}
is one of the supported service endpoints.
Path parameters
Parameters | |
---|---|
endpoint |
Required. The name of the Endpoint requested to serve the prediction. Format: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"httpBody": {
object ( |
Fields | |
---|---|
httpBody |
The prediction input. Supports HTTP headers and arbitrary data payload. A You can specify the schema for each instance in the |
Response body
If successful, the response is a generic HTTP response whose format is defined by the method.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-platform.read-only
https://www.googleapis.com/auth/cloud-vertex-ai.firstparty.predict
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the endpoint
resource:
aiplatform.endpoints.predict
For more information, see the IAM documentation.