Skip to main content
Gemini Embedding 2 Preview is a text embedding model from Google. Call gemini-embedding-2-preview through MixRoute’s native Gemini endpoint; an OpenAI-compatible endpoint is also supported.

Key capabilities

  • Gemini embedContent - Native Gemini embedding endpoint
  • Vector embeddings - Convert text into numeric vectors
  • Batch input - Accept a string or an array of strings
  • Similarity workflows - Use vectors for search and clustering

Quick example

Gemini embedContent

OpenAI-compatible Embeddings

Parameters

Gemini embedContent

OpenAI-compatible Embeddings