Send feedback
Method: googleapis.aiplatform.v1.projects.locations.endpoints.explain
Stay organized with collections
Save and categorize content based on your preferences.
Preview
This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section
of the Service Specific Terms .
Pre-GA features are available "as is" and might have limited support.
For more information, see the
launch stage descriptions .
Perform an online explanation. If deployed_model_id is specified, the
corresponding DeployModel must have explanation_spec populated. If
deployed_model_id is not specified, all DeployedModels must have
explanation_spec populated.
Arguments
Parameters
endpoint
string
Required. The name of the Endpoint requested to serve the explanation. Format: projects/{project}/locations/{location}/endpoints/{endpoint}
region
string
Required. Region of the HTTP endpoint. For example, if region is set to us-central1
, the endpoint https://us-central1-integrations.googleapis.com will be used. See service endpoints .
body
object (GoogleCloudAiplatformV1ExplainRequest )
Required.
Raised exceptions
Exceptions
ConnectionError
In case of a network problem (such as DNS failure or refused connection).
HttpError
If the response status is >= 400 (excluding 429 and 503).
TimeoutError
If a long-running operation takes longer to finish than the specified timeout limit.
TypeError
If an operation or function receives an argument of the wrong type.
ValueError
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout.
Response
If successful, the response contains an instance of GoogleCloudAiplatformV1ExplainResponse
.
Subworkflow snippet
Some fields might be optional or required.
To identify required fields, refer to the API documentation .
YAML
- explain :
call : googleapis.aiplatform.v1.projects.locations.endpoints.explain
args :
endpoint : ...
region : ...
body :
deployedModelId : ...
explanationSpecOverride :
examplesOverride :
crowdingCount : ...
dataFormat : ...
neighborCount : ...
restrictions : ...
returnEmbeddings : ...
metadata :
inputs : ...
parameters :
examples :
exampleGcsSource :
dataFormat : ...
gcsSource :
uris : ...
nearestNeighborSearchConfig : ...
neighborCount : ...
presets :
modality : ...
query : ...
integratedGradientsAttribution :
blurBaselineConfig :
maxBlurSigma : ...
smoothGradConfig :
featureNoiseSigma :
noiseSigma : ...
noiseSigma : ...
noisySampleCount : ...
stepCount : ...
outputIndices : ...
sampledShapleyAttribution :
pathCount : ...
topK : ...
xraiAttribution :
blurBaselineConfig : ...
smoothGradConfig : ...
stepCount : ...
instances : ...
parameters : ...
result : explainResult
JSON
[
{
"explain" : {
"call" : "googleapis.aiplatform.v1.projects.locations.endpoints.explain" ,
"args" : {
"endpoint" : "..." ,
"region" : "..." ,
"body" : {
"deployedModelId" : "..." ,
"explanationSpecOverride" : {
"examplesOverride" : {
"crowdingCount" : "..." ,
"dataFormat" : "..." ,
"neighborCount" : "..." ,
"restrictions" : "..." ,
"returnEmbeddings" : "..."
},
"metadata" : {
"inputs" : "..."
},
"parameters" : {
"examples" : {
"exampleGcsSource" : {
"dataFormat" : "..." ,
"gcsSource" : {
"uris" : "..."
}
},
"nearestNeighborSearchConfig" : "..." ,
"neighborCount" : "..." ,
"presets" : {
"modality" : "..." ,
"query" : "..."
}
},
"integratedGradientsAttribution" : {
"blurBaselineConfig" : {
"maxBlurSigma" : "..."
},
"smoothGradConfig" : {
"featureNoiseSigma" : {
"noiseSigma" : "..."
},
"noiseSigma" : "..." ,
"noisySampleCount" : "..."
},
"stepCount" : "..."
},
"outputIndices" : "..." ,
"sampledShapleyAttribution" : {
"pathCount" : "..."
},
"topK" : "..." ,
"xraiAttribution" : {
"blurBaselineConfig" : "..." ,
"smoothGradConfig" : "..." ,
"stepCount" : "..."
}
}
},
"instances" : "..." ,
"parameters" : "..."
}
},
"result" : "explainResult"
}
}
]
Send feedback
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-03 UTC.
Need to tell us more?
[[["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-09-03 UTC."],[],[],null,["# Method: googleapis.aiplatform.v1.projects.locations.endpoints.explain\n\n| **Preview**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nPerform an online explanation. If deployed_model_id is specified, the\ncorresponding DeployModel must have explanation_spec populated. If\ndeployed_model_id is not specified, all DeployedModels must have\nexplanation_spec populated.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`GoogleCloudAiplatformV1ExplainResponse`](https://cloud.google.com/workflows/docs/reference/googleapis/aiplatform/v1/Overview#GoogleCloudAiplatformV1ExplainResponse).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.endpoints/explain). \n\n### YAML\n\n```yaml\n- explain:\n call: googleapis.aiplatform.v1.projects.locations.endpoints.explain\n args:\n endpoint: ...\n region: ...\n body:\n deployedModelId: ...\n explanationSpecOverride:\n examplesOverride:\n crowdingCount: ...\n dataFormat: ...\n neighborCount: ...\n restrictions: ...\n returnEmbeddings: ...\n metadata:\n inputs: ...\n parameters:\n examples:\n exampleGcsSource:\n dataFormat: ...\n gcsSource:\n uris: ...\n nearestNeighborSearchConfig: ...\n neighborCount: ...\n presets:\n modality: ...\n query: ...\n integratedGradientsAttribution:\n blurBaselineConfig:\n maxBlurSigma: ...\n smoothGradConfig:\n featureNoiseSigma:\n noiseSigma: ...\n noiseSigma: ...\n noisySampleCount: ...\n stepCount: ...\n outputIndices: ...\n sampledShapleyAttribution:\n pathCount: ...\n topK: ...\n xraiAttribution:\n blurBaselineConfig: ...\n smoothGradConfig: ...\n stepCount: ...\n instances: ...\n parameters: ...\n result: explainResult\n```\n\n### JSON\n\n```json\n[\n {\n \"explain\": {\n \"call\": \"googleapis.aiplatform.v1.projects.locations.endpoints.explain\",\n \"args\": {\n \"endpoint\": \"...\",\n \"region\": \"...\",\n \"body\": {\n \"deployedModelId\": \"...\",\n \"explanationSpecOverride\": {\n \"examplesOverride\": {\n \"crowdingCount\": \"...\",\n \"dataFormat\": \"...\",\n \"neighborCount\": \"...\",\n \"restrictions\": \"...\",\n \"returnEmbeddings\": \"...\"\n },\n \"metadata\": {\n \"inputs\": \"...\"\n },\n \"parameters\": {\n \"examples\": {\n \"exampleGcsSource\": {\n \"dataFormat\": \"...\",\n \"gcsSource\": {\n \"uris\": \"...\"\n }\n },\n \"nearestNeighborSearchConfig\": \"...\",\n \"neighborCount\": \"...\",\n \"presets\": {\n \"modality\": \"...\",\n \"query\": \"...\"\n }\n },\n \"integratedGradientsAttribution\": {\n \"blurBaselineConfig\": {\n \"maxBlurSigma\": \"...\"\n },\n \"smoothGradConfig\": {\n \"featureNoiseSigma\": {\n \"noiseSigma\": \"...\"\n },\n \"noiseSigma\": \"...\",\n \"noisySampleCount\": \"...\"\n },\n \"stepCount\": \"...\"\n },\n \"outputIndices\": \"...\",\n \"sampledShapleyAttribution\": {\n \"pathCount\": \"...\"\n },\n \"topK\": \"...\",\n \"xraiAttribution\": {\n \"blurBaselineConfig\": \"...\",\n \"smoothGradConfig\": \"...\",\n \"stepCount\": \"...\"\n }\n }\n },\n \"instances\": \"...\",\n \"parameters\": \"...\"\n }\n },\n \"result\": \"explainResult\"\n }\n }\n]\n```"]]