Gemini

gemini-embedding-001

GoogleToken-based
Create API Key

Google 的向量模型,用于将输入内容转换为数值向量,支持语义检索和相似度计算。

textembeddingscontext:2048
Starting price
Input / Output · 1M
Context
2K
Maximum input window
Modalities
→
Released
Jul 2025

Pricing by Supplier

Google AI Studio
-60%
谷歌官方接口
Input$0.15$0.06/ 1M
Output$0.15$0.06/ 1M
Google Vertex
-55%
谷歌官方接口
Input$0.15$0.0675/ 1M
Output$0.15$0.0675/ 1M

Capabilities / Supported modalities

Embeddings
Input
Output

Provider & data privacy

Provider
GoogleDocs
Tokenizer
SentencePiece (Gemini)
License
Proprietary (commercial)Proprietary
Data retention13 daysNot used for upstream training by default

Performance

API access

Code samples

RequestPOST/v1beta/models/gemini-embedding-001:generateContent
Example request
Parameters
ParameterTypeDefault / rangeDescription
inputrequired
string—Text or array of texts to embed
dimensions
integer>= 1Truncate embeddings to this many dimensions
encoding_format
enum
=float
Wire encoding for the embedding vectors
user
string—End-user identifier for abuse monitoring

Replace <YOUR_API_KEY> with the API key from your token settings.

Authentication

All requests must include Authorization: Bearer <TOKEN> header. Anthropic-formatted endpoints accept the x-api-key header instead.

Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.

Supported parameters

Generation parameters
ParameterTypeDefault / rangeDescription
inputrequired
string—Text or array of texts to embed
dimensions
integer>= 1Truncate embeddings to this many dimensions
encoding_format
enum
=float
Wire encoding for the embedding vectors
user
string—End-user identifier for abuse monitoring

Rate limits

SupplierRPMTPMRPD
Google AI Studio3.4K685K69K
Google Vertex3.9K772K77K

RPM = requests per minute, TPM = tokens per minute, RPD = requests per day. Limits apply per token group.

API access questions

Everything you need to decide before creating an account.

Discover more models