embed
Cohere-compatible embed — Drop-in Cohere v1 /embed endpoint (bge-base-en-v1.5, 768 dims): body {texts:[...up to 96], input_type: search_document|search_query|classification|clustering, truncate: END|START|NONE, embedding_types: [float,int8,uint8,binary,ubinary]}. search_query adds the BGE retrieval instruction automatically. Returns {id, texts, embeddings, meta.billed_units, response_type} exactly like Cohere (embeddings_floats, or embeddings_by_type when embedding_types is sent; int8/uint8 are per-vector scaled, binary/ubinary pack sign bits 8 per byte). Also accepts input/inputs. Text only. Price: $0.002 USDC (Base, via x402).
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": {
"texts": "<texts>"
},
"name": "embed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| texts | Yes |