Text embeddings
text_embeddingsOpenAI-compatible BGE text embeddings for RAG and semantic search (bge-large-en-v1.5 1024d default, bge-base-en-v1.5, bge-small-en-v1.5, bge-m3 multilingual). $0.001 per call over x402 (Base, Solana or X1) or X-API-Key. Call once without payment for terms, then pass payment.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input": "<input>"
},
"name": "text_embeddings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Text string or array of up to 32 strings (<=16,000 chars total) to embed. | |
| model | No | Optional model id (default bge-large-en-v1.5): bge-large-en-v1.5, bge-base-en-v1.5, bge-small-en-v1.5, bge-m3. | |
| payment | No | signed x402 payment payload (PAYMENT-SIGNATURE). |