GET
/v1/schemas/google-vertex/image/v1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:predict?kind=output
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source tracec53822c7158de0461a16c06223d306d1a32575088879045c6cc5e9ffe21cd46c{
"fetchedAt": 1791350027,
"extractorVersion": "1",
"verifiedAt": null
} |
Response body
6 properties · 0 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| predictions | any[] | The predictions that are the output of the predictions call. The schema of any single prediction may be specified via Endpoint's DeployedModels' Model's PredictSchemata's prediction_schema_uri. | |
| metadata | any | Output only. Request-level metadata returned by the model. The metadata type will be dependent upon the model implementation. | |
| modelVersionId | string | Output only. The version ID of the Model which is deployed as the DeployedModel that this prediction hits. | |
| deployedModelId | string | ID of the Endpoint's DeployedModel that served this prediction. | |
| model | string | Output only. The resource name of the Model which is deployed as the DeployedModel that this prediction hits. | |
| modelDisplayName | string | Output only. The display name of the Model which is deployed as the DeployedModel that this prediction hits. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"google-vertex","endpointId":"v1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:predict","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}