- Text Embeddings
Trinity Mini is a 26B-parameter (3B active) sparse mixture-of-experts language model from Arcee AI, optimized for efficient long-context reasoning with low per-token cost. It is an…
Powered by Google
Gemini Embedding 2 Preview is Google’s first natively multimodal embedding model, mapping text, images, video, audio, and documents into a shared vector space. It is offered in public preview via the Gemini API and Google Cloud/Vertex AI for advanced retrieval and analytics workloads.
Output tokens per second · Higher is better
Seconds · Lower is better
USD per 1M tokens (blended) · Lower is better
About the model
Gemini Embedding 2 Preview is an embedding generation model from Google that produces unified vector representations for multiple modalities including text, images, video, audio, and documents. It is mainly used for multimodal retrieval, search, and recommendation systems that need to compare or rank heterogeneous content in a common embedding space. It is also used for tasks such as semantic similarity, clustering, classification, and analytics over large, mixed-media corpora. It belongs to the Gemini model family as the second-generation embedding model and the first natively multimodal variant built on the Gemini architecture.
Model capabilities
Generates dense vector representations of text inputs for tasks like semantic search, classification, and retrieval-augmented generation.
Produces embeddings for many languages, enabling cross-lingual semantic search and understanding across diverse international text corpora.
Creates embeddings usable in vector databases to power fast, relevant document and passage retrieval for downstream applications.
Embeds source code snippets, enabling semantic code search, code clustering, and mapping between natural language queries and code.
Supports grouping similar texts by embedding proximity, enabling topic clustering, recommendation, and deduplication in large datasets.
Use cases
Transparent pricing
LLM API offers the lowest embedding costs and latency among major Gemini Embedding 2–class providers.
| Provider | Region | Latency | Throughput | Uptime | Input ($/1M) | Output ($/1M) | Context |
|---|---|---|---|---|---|---|---|
| LLM API BEST | Global | 80ms | 120k tokens/s | 99.99% | $0.05 per 1M tokens | $0.00 per 1M tokens | ~1M tokens |
| Global | ~150ms | ~80k tokens/s | 99.9% | $0.13 per 1M tokens | $0.00 per 1M tokens | ~1M tokens | |
| OpenAI | Global | ~180ms | ~70k tokens/s | 99.9% | $0.10 per 1M tokens | $0.00 per 1M tokens | ~100K tokens |
| Azure OpenAI | US East | ~190ms | ~65k tokens/s | 99.9% | ~$0.11 per 1M tokens | $0.00 per 1M tokens | ~100K tokens |
| Anthropic | US West | ~200ms | ~60k tokens/s | 99.9% | ~$0.12 per 1M tokens | $0.00 per 1M tokens | ~200K tokens |
Performance benchmarks
| Metric | Gemini Embedding 2 Preview | text-embedding-3-large (OpenAI) | text-embedding-004 (Google Vertex) |
|---|---|---|---|
| Dimensions | 3072 | 3072 | 768 |
| Max Input Tokens | 8K | 8K | 8K |
| Price per 1M Tokens | $0.05 | $0.13 | $0.05 |
| Avg Latency | ~120ms | ~150ms | ~130ms |
| Throughput | ~800 tps | ~700 tps | ~750 tps |
| Uptime | 99.9% | 99.9% | 99.9% |
30-day usage via LLM API
Architecture & Integration
One unified API. Every major model. Built-in reliability, cost control, and observability.
Dynamically route each request to the optimal model across providers using performance, price, or custom rules—without changing your integration or redeploying code.
One endpoint, every modelControl spend with tiered routing, usage limits, and per-project policies so teams can experiment with premium models while keeping budgets predictable and enforceable.
Max performance, controlled spendConfigure automatic provider and model fallbacks so production traffic keeps flowing through alternative backends when primary models rate limit, degrade, or go offline.
Never drop a requestInspect logs, traces, tokens, and latency per request across all providers in one place, enabling fast debugging, regression detection, and performance tuning.
See every token, everywhereDefine high-level tasks like chat, embed, classify, or generate and let LLM.API pick the right model and parameters so your code stays clean and portable.
Code to tasks, not modelsRun massive batch jobs for embeddings, generations, or classifications with automatic sharding, retries, and concurrency control, dramatically cutting run times and operational overhead.
Millions of calls, one jobDecision guide
FAQ
Gemini Embedding 2 Preview is a Google embedding model designed to generate vector representations of text for search, retrieval, recommendation, and clustering.
Gemini Embedding 2 Preview currently supports text input only when accessed via LLM.API.
You call the unified embeddings endpoint on LLM.API and set the model parameter to "google/gemini-embedding-2-preview".
It is best for semantic search, document retrieval, RAG knowledge bases, deduplication, and measuring similarity between user queries and content.
Gemini Embedding 2 Preview typically supports input texts up to several thousand tokens; very long documents should be chunked client-side before embedding.
Latency is generally low enough for real-time semantic search, with most requests completing in tens to hundreds of milliseconds depending on batch size.
Pricing is usage-based per input token or character, with the exact rate displayed in the Gemini Embedding 2 Preview section of LLM.API pricing.
Yes, you can send an array of input strings in one request to efficiently compute multiple embeddings.
It offers strong semantic quality and compatibility with Google’s Gemini ecosystem, while other models may prioritize lower cost or smaller embedding dimensions.
Gemini Embedding 2 Preview supports many languages, but quality and coverage can vary by language, so task-specific evaluation is recommended.
It does not generate text, can struggle with very long or highly structured documents, and embedding quality may degrade outside supported languages or domains.
Yes, embeddings are suitable for production retrieval and recommendation workloads when combined with a vector database or approximate nearest neighbor index.
Compare
Trinity Mini is a 26B-parameter (3B active) sparse mixture-of-experts language model from Arcee AI, optimized for efficient long-context reasoning with low per-token cost. It is an…
E5-Base-v2 is an English sentence and paragraph embedding model from Intfloat that encodes text into a 768-dimensional dense vector space, optimized for high-quality semantic similarity tasks.
bge-m3 is a multilingual text embedding model from BAAI that produces dense, sparse, and ColBERT-style multi-vector embeddings in a single pass, enabling powerful hybrid retrieval. It…