現已上線
Google

gemini-embedding-001

Provides text embedding models for generating embeddings for words, phrases, sentences, and code. These foundational embeddings support advanced NLP tasks such as semantic search, classification, and clustering, offering more accurate and context-aware search results compared to keyword-based approaches. Building Retrieval Augmented Generation (RAG) systems is a common use case for embeddings. Embeddings play a crucial role in significantly enhancing model outputs, improving factual accuracy, coherence, and contextual richness. They enable efficient retrieval of relevant information from knowledge bases (represented as embeddings), which is then passed as additional background information in the input prompt to the language model, guiding it to generate more informed and accurate responses.

EmbeddingTools2K
輸入免費
輸出免費
類型Embedding
端點embedding

效能

正在載入效能資料...
§ 01

價格

輸入價格$0.00/每百萬 tokens
輸出價格$0.00/每百萬 tokens
上下文視窗2K tokens
相容端點embedding
供應商Google
§ 02

從您的程式碼呼叫 gemini-embedding-001

將任何 OpenAI 相容 SDK 指向 UnoRouter,並以名稱請求模型。請將 YOUR_API_KEY 換成您儀表板上的真實金鑰。

bash
curl https://api.unorouter.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-embedding-001",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

登入以自動填入 API 金鑰

§ 03

常見問題

gemini-embedding-001 每百萬 tokens 的費用是多少?

輸入每百萬 tokens 定價 $0.00,輸出每百萬 tokens 定價 $0.00。計費以 token 為單位,不會湊整到批次大小。

我要如何透過 API 使用 gemini-embedding-001?

將請求送至 UnoRouter 的 /v1/chat/completions 端點,並將 model 設為 gemini-embedding-001。任何 OpenAI 相容的用戶端程式庫都可使用。驗證採用標準 Bearer token。

gemini-embedding-001 的上下文視窗是多少?

gemini-embedding-001 支援 2K tokens 的上下文視窗,由您的提示詞與模型回應共用。

§ 04

相似模型

立即試用 gemini-embedding-001

建立 API 金鑰後,一分鐘內就能開始發送請求。

查看所有模型