mlpeek: embed text and images in one vector space
embed_multimodalGenerate embeddings for text and images into one shared 768-dim vector space for cross-modal similarity, search, and dot-product comparison.
Instructions
mlpeek: Create multimodal embeddings: images and text in one vector space. For text only use embed_texts. Returns 768-dim vectors of texts and images (URL or base64) in ONE space (EmbeddingGemma 2), comparable by dot product; dimensions 512/256/128, input_type text prefix, image_detail low/standard/high. At most 16 low, 8 standard or 4 high-detail images (10 MB each, public URLs). Over 4,096 text tokens or a bad image (named by index) is a 422; an unavailable model a 503 (none charged). Typically 0.05 s per short text and 1.5-3 s per image (6.5 s at high detail), plus a few seconds on first use. Price: USD 0.002 per item (1-16 items per call: USD 0.002-0.032). Free: 5 mlpeek calls per IP per UTC day. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/embeddings-rerank-ner-mcp-server.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | 1-16 items, each {text}, {image_url} or {image_base64}; every vector lands in one shared space. Priced per item. | |
| encoding | No | base64 = little-endian float32 bytes. | float |
| dimensions | No | 768 (default), 512, 256 or 128: the leading values, re-normalised (Matryoshka). | |
| input_type | No | Task prefix for text items (images get none): query (search query), document (search corpus), question, fact_check, code_query, classification, clustering, similarity or none. | none |
| image_detail | No | Vision tokens per image: low (70), standard (140) or high (280, slowest). At most 16 low, 8 standard or 4 high images per call. | standard |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| note | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| model | No | ||
| usage | No | ||
| encoding | No | ||
| dimensions | No | ||
| input_type | No | ||
| normalized | No | ||
| image_detail | No | ||
| prefix_applied | No | ||
| max_tokens_per_text | No |