Text embeddings: multilingual BGE-M3 1024-dim vectors for up to 32 texts per call
ai_embedUse when an agent needs vectors for search, RAG, clustering or dedup. Input: text (GET) or POST JSON {texts:[...]} with up to 32 strings of max 2000 chars each. Output: model, dims (1024), embeddings with index and vector; compare with cosine similarity. Multilingual (100+ languages, strong Korean). Not stored. Example: ?text=x402%20pay-per-call%20API Price: $0.003 USDC (Base or Solana) via x402.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ai_embed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | One text to embed (1-2000 chars). For several, POST {"texts":[...]} (up to 32) | |
| texts | No | JSON array of up to 32 strings (alternative to text; POST JSON preferred) |