Embed Content
Generates text embeddings with a Gemini model in Google AI Studio.
POST
Body
Arguments
stringrequired
Required. Model endpoint token including suffix, for example gemini-embedding-001:embedContent.
objectrequired
Required content object to embed.
Uncommon arguments
string
Optional embedding task type.
string
Optional title used for retrieval document embeddings.
number
Optional reduced embedding dimension.
Field selectionChoose which fields should be included in the response. Learn more
string
Comma-separated response fields to include.