curl --location '/v1/models/:batchEmbedContents?key=&alt=' \
--header 'x-goog-api-key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"requests": [
{
"model": "string",
"content": {
"role": "string",
"parts": [
{
"text": "string",
"thought": true,
"inlineData": {
"mimeType": "string",
"data": "string",
"property1": "string",
"property2": "string"
},
"functionCall": {
"id": "string",
"name": "string",
"args": null,
"partialArgs": [
{
"jsonPath": "string",
"numberValue": 0,
"stringValue": "string",
"boolValue": true,
"nullValue": null,
"willContinue": true,
"property1": "string",
"property2": "string"
}
],
"willContinue": true,
"property1": "string",
"property2": "string"
},
"thoughtSignature": null,
"functionResponse": {
"name": "string",
"response": {
"property1": "string",
"property2": "string"
},
"willContinue": null,
"scheduling": null,
"parts": null,
"id": null,
"property1": "string",
"property2": "string"
},
"mediaResolution": null,
"videoMetadata": null,
"fileData": {
"mimeType": "string",
"fileUri": "string",
"property1": "string",
"property2": "string"
},
"executableCode": {
"language": "string",
"code": "string",
"property1": "string",
"property2": "string"
},
"codeExecutionResult": {
"outcome": "string",
"output": "string",
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}
],
"property1": "string",
"property2": "string"
},
"taskType": "string",
"title": "string",
"outputDimensionality": 0,
"property1": "string",
"property2": "string"
}
],
"property1": "string",
"property2": "string"
}'{
"embeddings": [
{
"values": [
0
],
"property1": "string",
"property2": "string"
}
],
"property1": "string",
"property2": "string"
}