Text embeddings
embedEmbeds 1 to 16 short texts with the fixed Workers AI model @cf/baai/bge-base-en-v1.5 (768 dimensions) for search and clustering. Returns { model, dimensions, count, vectors: number[][] } Price: 3 credits (1 credit = 1 US cent) per successful call; input that does not match the schema is rejected before billing.
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": {
"inputs": "<inputs>"
},
"name": "embed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | 1 to 16 texts, each up to 2000 characters. |