GET
/v1/schemas/gemini/embeddings/v1beta/models/{modelsId}:batchEmbedText
Accept:
kind inputactivity embeddingshash 0ab18549…extracted Jul 6, 2026version currentsource upstream spec ↗
| field | recorded source |
|---|---|
| schema | Source linked above.Source tracef697c69526f2d0f93e6e022d34a6a98146776f0f982cc56727132c048329221c{
"fetchedAt": 1783328683,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
2 properties · 0 required · 1 $defs| property | type | description | constraints |
|---|---|---|---|
| texts | string[] | Optional. The free-form input texts that the model will turn into an embedding. The current limit is 100 texts, over which an error will be thrown. | |
| requests | EmbedTextRequest[] | Optional. Embed requests for the batch. Only one of `texts` or `requests` can be set. |
Types
1 $defsEmbedTextRequestobject
Request to get a text embedding from the model.
| model | string | Required. The model name to use with the format model=models/{model}. | |
| text | string | Optional. The free-form input text that the model will turn into an embedding. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"gemini","endpointId":"v1beta/models/{modelsId}:batchEmbedText","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}