We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

Google: Gemini Embedding 2 (batch)

google/gemini-embedding-2:batch
EmbeddingsInput: text · image · file · audio · video8KAdded May 20, 2026

Try Google: Gemini Embedding 2 (batch) now

Runs on your balance at the prices above. New accounts start with free usage.

Sign in to use thisCreate free account

Results will appear here.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign inSession cost $0.00

Google: Gemini Embedding 2 (batch) at a glance

  • Input price is 400% higher than the median of 34 Embeddings models.

About Google: Gemini Embedding 2 (batch)

Google: Gemini Embedding 2 (batch) is an embedding model from Google. It is listed on api14 under the embeddings category, and its provider release date is 2026-05-20. Google describes it as Gemini Embedding 2, the company's first multimodal embedding model. Rather than generating chat replies, it produces vector representations that you store and compare, which makes it a building block for search and retrieval systems rather than an assistant you talk to.

The model accepts text, image, file, audio and video inputs, and its only output modality is embeddings. Google's description states that text and images are currently supported for mapping into a unified vector space for semantic search and retrieval-augmented generation (RAG), so the broader input list reflects the model's multimodal design while the documented mapping covers text and images. The context window is 8192 tokens, and the maximum output is 7372. Because the output is a vector rather than prose, there is no text generation to configure or read back.

Those capabilities point to a few practical patterns. Semantic search over a mixed corpus is the most direct one: embed documents and queries into the same space and rank by similarity, so a text query can surface relevant images or vice versa. RAG pipelines use the same property, embedding chunks at index time and the user question at query time so a generator can be handed the closest passages. Because files, audio and video are listed as accepted inputs, teams working with richer media may be able to embed that content directly instead of writing a separate transcription or captioning step first, though Google's current description only commits to text and images.

Calling it through api14 works like any other model on the gateway, using the OpenAI-compatible API with the model id "google/gemini-embedding-2:batch". The batch suffix indicates this variant is intended for batch embedding work. The supported parameters list is empty, so there are no extra request options to set beyond the standard request fields the endpoint expects. You send your input, receive embeddings back, and handle storage and similarity comparison on your side.

The main constraint to weigh is the 8192 token context window. Long documents need to be split into chunks before embedding, which is normal for retrieval work but adds a chunking step to your pipeline. If your task is generating text rather than representing it as vectors, an embeddings model is the wrong tool and a chat or completion model will fit better. If your inputs are mostly audio or video and you need guaranteed support rather than a listed modality, verify that behaviour before committing, since Google's description currently names text and images.

How to call the Google: Gemini Embedding 2 (batch) API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "google/gemini-embedding-2:batch".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.embeddings.create({
  "model": "google/gemini-embedding-2:batch",
  "input": [
    "The quick brown fox",
    "Lorem ipsum"
  ]
});
console.log(result.data.map((d) => d.embedding.length));

Specifications

Context length
8,192
Max output
7,372
Input
text, image, file, audio, video
Output
embeddings

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

Google: Gemini Embedding 2 (batch): frequently asked questions

How much does the Google: Gemini Embedding 2 (batch) API cost?
Google: Gemini Embedding 2 (batch) costs Input $0.35 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of Google: Gemini Embedding 2 (batch)?
Google: Gemini Embedding 2 (batch) reads up to 8,192 tokens per request: prompt, history and documents together. It writes up to 7,372 output tokens per response.
What can Google: Gemini Embedding 2 (batch) do?
Google: Gemini Embedding 2 (batch) accepts text, image, file, audio, video and returns embeddings.
How do I call Google: Gemini Embedding 2 (batch) from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "google/gemini-embedding-2:batch". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Google: Gemini Embedding 2 (batch)?
Comparable Embeddings models at a similar price: Google: Gemini Embedding 001, Mistral: Codestral Embed 2505, OpenAI: Text Embedding 3 Large. Each runs through the same API key, so switching is one string.

Google: Gemini Embedding 2 (batch) community

New topic

This community has no topics yet. Open the first one about Google: Gemini Embedding 2 (batch).