Turn text into vectors
embedEmbeds one text or up to 64 through POST /v1/embeddings with an embedding model id from list_models (type embedding) and returns one vector per text, in order, with the token usage and the charge. Billed to the key in the MCP request's Authorization header.
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": {
"model": "<model>",
"input": "<input>"
},
"name": "embed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | One text, or up to 64 texts, to embed. | |
| model | Yes | An embedding model id from list_models (type embedding). |