ai_embed
Generate 768-dimensional embedding vectors for retrieval-augmented generation (RAG). Supports single text or batch input, with a pay-per-call cost of 2 sats.
Instructions
768-dim embedding vector for RAG (single text or batch). [2 sats per call]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | single string OR pass `texts` for batch | |
| texts | No | ||
| preimage | No | (L402 mode) Preimage from paid Lightning invoice — only needed if no API key is set | |
| macaroon | No | (L402 mode) Macaroon from the previous 402 challenge |