Text Embeddings
TextEmbeddingsText Embeddings: Text Embeddings turns a sentence, paragraph or short document into a 384-dimension vector that captures its meaning, ready for semantic search, clustering, deduplication and recommendations. Send one text or a batch of up to 32, and add a compare text to get the cosine similarity of each one to it in the same call. (Cost: 5 credits) REST: POST https://api.apiverve.com/v1/textembeddings, params as a JSON body, key in the x-api-key header. Docs: https://apiverve.com/md/marketplace/textembeddings.md
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": "TextEmbeddings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | The text to embed, up to 10,000 characters. Send text or texts | |
| texts | No | A JSON array of texts to embed in one call: up to 32 on paid plans and 4 on the Free plan, 10,000 characters each and 50,000 in total. Send text or texts | |
| compare | No | Optional reference text; each embedding gets its cosine similarity to it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |