mlpeek: embed texts as vectors
embed_textsConvert 1-64 texts into 384-dimension vectors for search, clustering, or similarity work, using pinned open embedding models with optional query and passage prefixes.
Instructions
mlpeek: Create text embeddings. For images too use embed_multimodal; for pair scores use text_similarity. Returns 384-dimension embeddings of 1-64 texts with bge-small-en-v1.5 (English) or multilingual-e5-small (about 100 languages), normalised by default; input_type applies the model's query or passage prefix. Each text is cut at the model's 512-token window (truncated says so); over 16,384 tokens per request is a 422 too_many_tokens (not charged). Runs an open model pinned by hash on Tanod's own CPU (no LLM, no third-party API); an unavailable model is a 503 (not charged). Typically 20 ms for one short text, up to about 10 s at the token budget. Price: USD 0.0005 per text, at least USD 0.001 per call (1-64 texts per call: USD 0.001-0.032). Free: 5 mlpeek calls per IP per UTC day. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/text-embeddings-api-no-account.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | small-en = BAAI/bge-small-en-v1.5 (English); multilingual = intfloat/multilingual-e5-small (~100 languages). 384 dimensions both. | small-en |
| texts | Yes | 1-64 texts, each at most 8,000 characters; each is truncated at 512 tokens (reported per text). Priced per text, minimum USD 0.001 per call. | |
| encoding | No | base64 = little-endian float32 bytes. | float |
| normalize | No | L2-normalise (cosine similarity = dot product). | |
| input_type | No | Retrieval prefix: query / passage (e5: 'query: ' / 'passage: '; bge: its query instruction / nothing). none = symmetric use. | none |
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 | ||
| prefix_applied | No | ||
| max_tokens_per_text | No |