Gemini Embedding 2 Preview

google/gemini-embedding-2-preview by Google Cloud
EmbeddingsOpenAI-compatible · Sync · Text input
Price from
$0.2 / 1M tokens
Tasks
1
Embeddings
Regions
Global
Mode
sync
Input
Text
Output
data

About Google Cloud Gemini Embedding 2 Preview

Gemini Embedding 2 is Google's first multimodal embedding model. We currently support mapping text and images into a unified vector space for semantic search and retrieval-augmented generation (RAG). It supports...

Google Cloud Gemini Embedding 2 Preview is a Google Cloud model available on Eden AI through its OpenAI-compatible API, from $0.2 / 1M tokens. Call it with the same API key as every other Eden AI model by sending its model ID to the /v3/embeddings endpoint, or through any OpenAI SDK, with processing in global regions.

Learn more about Embeddings APIs on Eden AI

Tasks and prices

Google Cloud Gemini Embedding 2 Preview is available on Eden AI for 1 tasks. It is served through Eden AI's OpenAI-compatible API: send its model ID to the /v3/embeddings endpoint with your Eden AI API key.

Task
Price
Regions
Mode
Docs
Playground
Embeddingsgoogle/gemini-embedding-2-preview
$0.2 / 1M tokens
sync

Parameters

What you send and what you get back when you call Google Cloud Gemini Embedding 2 Preview through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.

Input

  • model (required): text. The model ID, as provider/model.
  • input (required): text. The text to embed, or a list of texts.

Response

  • data

Estimate your monthly cost

Enter your monthly volume for Embeddings to compare Google Cloud Gemini Embedding 2 Preview with its cheapest alternatives.

Call Google Cloud Gemini Embedding 2 Preview with Eden AI

Send the model ID to the OpenAI-compatible /v3/embeddings endpoint. Any OpenAI SDK works too: set its base URL to https://api.edenai.run/v3.

import requests

response = requests.post(
    "https://api.edenai.run/v3/embeddings",
    headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
    json={
        "model": "google/gemini-embedding-2-preview",
        "input": "The quick brown fox jumps over the lazy dog",
    },
)
print(response.json())

Questions about Google Cloud Gemini Embedding 2 Preview

On Eden AI, Google Cloud Gemini Embedding 2 Preview costs $0.2 / 1M tokens for Embeddings. The Tasks and prices table lists the price for each task, and you only pay for what you use.

On Eden AI, Google Cloud Gemini Embedding 2 Preview is available for: Embeddings. Input: Text. Output: data.

Eden AI offers Embeddings from 14 providers, all callable with the same API key. The cheapest models are compared just below.

Alternatives for Embeddings

Other Embeddings models you can call with the same key, cheapest first.

See all Embeddings models

More from Google Cloud

Other Google Cloud models on Eden AI, for every task.