GET

/v1/schemas/google-vertex/embeddings/v1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:embedContent?kind=output

kind outputactivity embeddingshash 080d1728…extracted Oct 7, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
c53822c7158de0461a16c06223d306d1a32575088879045c6cc5e9ffe21cd46c
{
  "fetchedAt": 1791350027,
  "extractorVersion": "1",
  "verifiedAt": null
}

Response body

3 properties · 0 required · 3 $defs
propertytypedescriptionconstraints
usageMetadataGoogleCloudAiplatformV1UsageMetadataUsage metadata about the content generation request and response. This message provides a detailed breakdown of token usage and other relevant metrics.
embeddingGoogleCloudAiplatformV1EmbedContentResponseEmbeddingA list of floats representing an embedding.
truncatedbooleanWhether the input content was truncated before generating the embedding.

Types

3 $defs

GoogleCloudAiplatformV1EmbedContentResponseEmbeddingobject

A list of floats representing an embedding.

valuesnumber[]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…

tokenCountintegerThe number of tokens counted for this modality.format: int32
modalityenumThe 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.

candidatesTokenCountintegerThe total number of tokens in the generated candidates.format: int32
promptTokensDetailsGoogleCloudAiplatformV1ModalityTokenCount[]Output only. A detailed breakdown of the token count for each modality in the prompt.
trafficTypeenumOutput only. The traffic type for this request.TRAFFIC_TYPE_UNSPECIFIED | ON_DEMAND | ON_DEMAND_PRIORITY | ON_DEMAND_FLEX | ON_DEMAND_OFFPEAK | PROVISIONED_THROUGHPUT
candidatesTokensDetailsGoogleCloudAiplatformV1ModalityTokenCount[]Output only. A detailed breakdown of the token count for each modality in the generated candidates.
totalTokenCountintegerThe 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
toolUsePromptTokensDetailsGoogleCloudAiplatformV1ModalityTokenCount[]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.
toolUsePromptTokenCountintegerOutput only. The number of tokens in the results from tool executions, which are provided back to the model as input, if applicable.format: int32
thoughtsTokenCountintegerOutput only. The number of tokens that were part of the model's generated "thoughts" output, if applicable.format: int32
cachedContentTokenCountintegerOutput only. The number of tokens in the cached content that was used for this request.format: int32
promptTokenCountintegerThe 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
cacheTokensDetailsGoogleCloudAiplatformV1ModalityTokenCount[]Output only. A detailed breakdown of the token count for each modality in the cached content.

Validate a payload

before you spend tokens
shell
$ 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", …}]}