GET
/v1/schemas/google-vertex/image/v1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:predict
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source tracec53822c7158de0461a16c06223d306d1a32575088879045c6cc5e9ffe21cd46c{
"fetchedAt": 1791350027,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
3 properties · 0 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| instances | any[] | Required. The instances that are the input to the prediction call. A DeployedModel may have an upper limit on the number of instances it supports per request, and when it is exceeded the prediction call errors in case of AutoML Models, or, in case of customer … | |
| parameters | any | The parameters that govern the prediction. The schema of the parameters may be specified via Endpoint's DeployedModels' Model's PredictSchemata's parameters_schema_uri. | |
| labels | object | Optional. The user labels for Imagen billing usage only. Only Imagen supports labels. For other use cases, it will be ignored. |
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", …}]}