POST /v1/embed
embedEmbed one image (or a short clip, with a video encoder) with a vision encoder. Returns a vector of the model's dim floats (up to a few thousand). Models: list_models with endpoint "embed", e.g. "google/siglip2-so400m". Billed per call unless the key is a sandbox key.
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>"
},
"name": "embed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | base64 JPEG or PNG, optionally a data: URL; or an https:// URL of an image or video (fetched for you, up to 4 MB) | |
| model | Yes | Model id from GET /v1/models, e.g. provider/name | |
| frames | No | clip, oldest first |