Gemini 嵌入模型 001
Model ID: gemini-embedding-001 · Type: embedding · Provider: Google
Endpoints: /v1/embeddings
| Input (per 1M tokens) | $0.1125 USD |
from openai import OpenAI
client = OpenAI(api_key="sk-...", base_url="https://api.router.ai/v1")
resp = client.embeddings.create(model="gemini-embedding-001", input="hello world")
print(len(resp.data[0].embedding))Gemini Embedding 001 (`gemini-embedding-001`) is billed per usage at $0.15 / 1M tokens in · None / 1M tokens out, in USD. Current pricing is always listed at https://yigekey.com/models/gemini-embedding-001.
Send a request to https://api.router.ai/v1/v1/embeddings with the header `Authorization: Bearer <your API key>` and `"model": "gemini-embedding-001"`. The API is OpenAI-compatible, so any OpenAI SDK works by changing base_url to https://api.router.ai/v1 — no other code change.
Gemini Embedding 001 accepts up to 2,048 input tokens and can return up to 2,048 output tokens. Requests exceeding the input limit are rejected before reaching the model.
Gemini Embedding 001 is a embedding model from Google, available through the 聚合 AI 中转站 gateway with the same API key as every other model.
Call it through the 聚合 AI 中转站 OpenAI-compatible endpoint (API base: https://api.router.ai/v1). AI agents can discover and call every model on this gateway through MCP (https://mcp.router.ai/mcp) with no manual integration.