Skip to main content
Vertex AI offers wide ranging support for embedding text, images and videos. Portkey provides a standardized interface for embedding multiple modalities.

Gemini Embedding Models

The gemini-embedding-2-preview model supports embedding across multiple modalities — text, image, video, and audio — through a single unified endpoint.
Input TypeSupported Formats
TextPlain string or structured object
ImageGCS URI, HTTPS URL, base64, data URI
VideoGCS URI, HTTPS URL, base64
AudioGCS URI, HTTPS URL, base64
Additional supported parameters: task_type, dimensions

Embedding Text

Embedding Images

You can also pass images as base64:
Or as a data URI:

Embedding Videos

Embedding Audio

Multimodal Embedding (Mixed Inputs)

You can combine multiple input types in a single request:

Setting Task Type and Dimensions

You can optionally specify task_type and dimensions to control the embedding behavior:

Legacy Embedding Models

The following sections cover the older Vertex AI embedding models like textembedding-gecko@003 and multimodalembedding@001.

Embedding Text

Embeddings Images

Embeddings Videos

Last modified on April 14, 2026