Add to request header:
Authorization: Bearer YOUR_API_KEY
Embedding model name, e.g. gemini-embedding-2-preview
"gemini-embedding-2-preview"
The content to embed
Embedding task type that influences the optimization direction of the embedding vector
RETRIEVAL_QUERY, RETRIEVAL_DOCUMENT, SEMANTIC_SIMILARITY, CLASSIFICATION, CLUSTERING, QUESTION_ANSWERING, FACT_VERIFICATION, CODE_RETRIEVAL_QUERY Document title, only effective when taskType is RETRIEVAL_DOCUMENT
Output vector dimensionality for dimension reduction. Default is 3072
Embed Content response
Embedding result