Tools
Embed
Generate embeddings from text
Generate embeddings from text input. Currently supports text-multilingual-embedding-002 model. Returns a vector representation of the input text that can be used for semantic search, similarity comparison, and other machine learning tasks.
Playground
Your organization, project and token stay in this browser's local storage and are sent straight to the API — this page never sees them.
Billing
Fixed cost per text requested, plus semantic indexing on every token embedded. Submitted as a background batch it is billed at the async rate, which is cheaper than indexing while you wait.
These usage SKUs can be charged on a call.
| SKU | Credits | Description |
|---|---|---|
| Tool call | 1 per request | Charged once per successful item, on top of any usage below. |
| Semantic indexing | 25 per million tokens | Turns text into vectors so it can be matched by meaning rather than by keyword. |
| Semantic indexing (async) | 20 per million tokens | The same indexing, submitted as a background batch. |
Schemas
item is what you send, config how the tool behaves,
and the response is what you get back.
Item
objecttext
string
required
The text to generate an embedding for
{
"text": "string"
}
Configuration
objectmodel
string
The embedding model to use
{
"model": "text-multilingual-embedding-002"
}
Response
objectembedding
array
required
The embedding vector as a list of floats
{
"embedding": [
0.0
]
}
Endpoints
http://agents.botify.com/{organization}/{project}/embed/process
http://agents.botify.com/{organization}/{project}/embed/batch_process
http://agents.botify.com/{organization}/{project}/embed/async_process
http://agents.botify.com/{organization}/{project}/embed/async_batch_process
See running a long job in the background for the polling flow.
cURL
curl -X POST "http://agents.botify.com/{organization}/{project}/embed/process" \
-H "Authorization: Bearer $BOTIFY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"item": {
"text": "<text>"
}
}'
Raw metadata
- GET /agents/embed — this page as JSON.
- /agents/embed/skill.md — Markdown for coding agents.