Search/
Skip to content
/

Google: Gemini Embedding 2 Preview

google/gemini-embedding-2-preview

Released Apr 17, 20268,192 context$0.20

Gemini Embedding 2 Preview is Google's first multimodal embedding model, mapping text, images, video, audio, and PDFs into a unified vector space for semantic search and retrieval-augmented generation (RAG). It supports input context up to 8,192 tokens and flexible output dimensions from 128 to 3,072 (recommended: 768, 1536, or 3,072). Designed for cross-modal similarity — you can embed a text query and retrieve the most relevant images, or vice versa — making it well-suited for multimodal search, recommendation, and document understanding pipelines.

OpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Apps
  • Models
  • Providers
  • Pricing
  • Enterprise
  • Labs

Company

  • About
  • Announcements
  • CareersHiring
  • Privacy
  • Terms of Service
  • Support
  • State of AI
  • Works With OR
  • Data

Developer

  • Documentation
  • API Reference
  • SDK
  • Status

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube

Providers for Gemini Embedding 2 Preview

OpenRouter routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.

Performance for Gemini Embedding 2 Preview

Compare different providers across OpenRouter

Effective Pricing for Gemini Embedding 2 Preview

Actual cost per million tokens across providers over the past hour

Apps using Gemini Embedding 2 Preview

Top public apps this month

Recent activity on Gemini Embedding 2 Preview

Total usage per day on OpenRouter

Requests
43K

Total number of API requests made to this model per day on OpenRouter.

Uptime stats for Gemini Embedding 2 Preview

Uptime stats for Gemini Embedding 2 Preview across all providers

Sample code and API for Gemini Embedding 2 Preview

OpenRouter normalizes requests and responses across providers for you.

OpenRouter provides an OpenAI-compatible embeddings API that you can call directly, or using the OpenAI SDK.

In the examples below, the OpenRouter-specific headers are optional. Setting them allows your app to appear on the OpenRouter leaderboards.

Using third-party SDKs

For information about using third-party SDKs and frameworks with OpenRouter, please see our frameworks documentation.

See the Request docs for all possible fields, and Parameters for explanations of specific sampling parameters.