Gemini Embedding 2 Preview

google/gemini-embedding-2-preview by Google Cloud
EmbeddingsOpenAI-kompatibel · Synchron · Texteingabe
Price from
0,2 $ / 1M Tokens
Tasks
1
Embeddings
Regions
Weltweit
Mode
synchronisieren
Input
Text
Output
Daten

About Google Cloud Gemini Embedding 2 Preview

Gemini Embedding 2 ist Googles erstes multimodales Einbettungsmodell. Derzeit unterstützen wir die Abbildung von Text und Bildern in einen einheitlichen Vektorraum für die semantische Suche und die „Retrieval-Augmented Generation“ (RAG).

Google Cloud Gemini Embedding 2 Preview ist ein Modell von Google Cloud, das auf Eden AI über die OpenAI-kompatible API verfügbar ist, ab 0,2 $ / 1M Tokens. Rufen Sie es mit demselben API-Schlüssel wie alle anderen Eden-AI-Modelle auf, indem Sie seine Modell-ID an den Endpoint /v3/embeddings senden, oder über ein beliebiges OpenAI-SDK, mit Verarbeitung in globalen Regionen.

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. Es wird über die OpenAI-kompatible API von Eden AI bereitgestellt: Senden Sie seine Modell-ID mit Ihrem Eden-AI-API-Schlüssel an den Endpoint /v3/embeddings.

Task
Price
Regions
Mode
Docs
Playground
Embeddingsgoogle/gemini-embedding-2-preview
0,2 $ / 1M Tokens
synchronisieren

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.

Eingabe

  • model (Pflichtfeld): Text. Die Modell-ID, im Format „Anbieter/Modell“.
  • input (Pflichtfeld): Text. Der einzubindende Text oder eine Liste von Texten.

Antwort

  • 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

Senden Sie die Modell-ID an den OpenAI-kompatiblen Endpoint /v3/embeddings. Jedes OpenAI-SDK funktioniert ebenfalls: Setzen Sie dessen Basis-URL auf 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: Daten.

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 & Rerank models

More from Google Cloud

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