GET
/v1/schemas/gemini/image/v1beta/models/{modelsId}:predict
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source tracebbad9df92c004250545f0867c1c7bc986e87480dc95a5d932d687bb54bd72615{
"fetchedAt": 1789536639,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
3 properties · 0 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| parameters | any | Optional. The parameters that govern the prediction call. | |
| instances | any[] | Required. The instances that are the input to the prediction call. | |
| labels | object | Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can… |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"gemini","endpointId":"v1beta/models/{modelsId}:predict","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}