Skip to main content
Glama

embed_text

Generate embeddings for text using Google's Gemini embedding models to convert text into numerical representations for machine learning tasks.

Instructions

Generate embeddings for text using Gemini embedding models

Input Schema

NameRequiredDescriptionDefault
modelNoEmbedding model to usetext-embedding-004
textYesText to generate embeddings for

Input Schema (JSON Schema)

{ "properties": { "model": { "default": "text-embedding-004", "description": "Embedding model to use", "enum": [ "text-embedding-004", "text-multilingual-embedding-002" ], "type": "string" }, "text": { "description": "Text to generate embeddings for", "type": "string" } }, "required": [ "text" ], "type": "object" }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gurveeer/mcp-server-gemini-pro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server