GET
/v1/schemas/google-vertex/embeddings/v1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:embedContent?kind=output
Accept:
kind outputactivity embeddingshash 080d1728…extracted Oct 7, 2026version currentsource upstream spec ↗
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source tracec53822c7158de0461a16c06223d306d1a32575088879045c6cc5e9ffe21cd46c{
"fetchedAt": 1791350027,
"extractorVersion": "1",
"verifiedAt": null
} |
Response body
3 properties · 0 required · 3 $defs| property | type | description | constraints |
|---|---|---|---|
| usageMetadata | GoogleCloudAiplatformV1UsageMetadata | Usage metadata about the content generation request and response. This message provides a detailed breakdown of token usage and other relevant metrics. | |
| embedding | GoogleCloudAiplatformV1EmbedContentResponseEmbedding | A list of floats representing an embedding. | |
| truncated | boolean | Whether the input content was truncated before generating the embedding. |
Types
3 $defsGoogleCloudAiplatformV1EmbedContentResponseEmbeddingobject
A list of floats representing an embedding.
| values | number[] | Embedding vector values. |
GoogleCloudAiplatformV1ModalityTokenCountobject
Represents a breakdown of token usage by modality. This message is used in CountTokensResponse and GenerateContentResponse.UsageMetadata to provide a detailed view of how many tokens are used by each modality (e.g., text, image, video) in a request. This is pa…
| tokenCount | integer | The number of tokens counted for this modality. | format: int32 |
| modality | enum | The modality that this token count applies to. | MODALITY_UNSPECIFIED | TEXT | IMAGE | VIDEO | AUDIO | DOCUMENT |
GoogleCloudAiplatformV1UsageMetadataobject
Usage metadata about the content generation request and response. This message provides a detailed breakdown of token usage and other relevant metrics.
| candidatesTokenCount | integer | The total number of tokens in the generated candidates. | format: int32 |
| promptTokensDetails | GoogleCloudAiplatformV1ModalityTokenCount[] | Output only. A detailed breakdown of the token count for each modality in the prompt. | |
| trafficType | enum | Output only. The traffic type for this request. | TRAFFIC_TYPE_UNSPECIFIED | ON_DEMAND | ON_DEMAND_PRIORITY | ON_DEMAND_FLEX | ON_DEMAND_OFFPEAK | PROVISIONED_THROUGHPUT |
| candidatesTokensDetails | GoogleCloudAiplatformV1ModalityTokenCount[] | Output only. A detailed breakdown of the token count for each modality in the generated candidates. | |
| totalTokenCount | integer | The total number of tokens for the entire request. This is the sum of `prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`, and `thoughts_token_count`. | format: int32 |
| toolUsePromptTokensDetails | GoogleCloudAiplatformV1ModalityTokenCount[] | Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input. | |
| toolUsePromptTokenCount | integer | Output only. The number of tokens in the results from tool executions, which are provided back to the model as input, if applicable. | format: int32 |
| thoughtsTokenCount | integer | Output only. The number of tokens that were part of the model's generated "thoughts" output, if applicable. | format: int32 |
| cachedContentTokenCount | integer | Output only. The number of tokens in the cached content that was used for this request. | format: int32 |
| promptTokenCount | integer | The total number of tokens in the prompt. This includes any text, images, or other media provided in the request. When `cached_content` is set, this also includes the number of tokens in the cached content. | format: int32 |
| cacheTokensDetails | GoogleCloudAiplatformV1ModalityTokenCount[] | Output only. A detailed breakdown of the token count for each modality in the cached content. |
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}:embedContent","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}