embed
Compute embeddings on Phase Router (paid from the Phase API key or the wallet).
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 | ||
| model | Yes | embeddings model id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment | Yes | ||
| vectors | Yes | ||
| price_usd | Yes |