Embeddings
Embeddings
Generate vector embeddings for text to enable semantic search, clustering, and similarity comparisons.
POST
/api/v1/embeddings Create Embedding
Creates an embedding vector representing the input text.
Parameters
| Name | Type | Req | Description | Default |
|---|---|---|---|---|
model | string | Yes | ID of the model to use. | meedoo-embed |
input | string or array | Yes | Input text to embed. | — |
Response Examples
{
"object": "list",
"data": [
{
"index": 0,
"embedding": [
-0.006929283,
-0.005278738,
0.024233847,
-0.007345879,
0.003054173
],
"object": "embedding"
}
],
"model": "meedoo:latest",
"usage": {
"prompt_tokens": 2,
"total_tokens": 2
}
}Code Examples
Generate Embeddings
curl -X POST https://api.meedoo.co/api/embeddings \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"meedoo:latest","input":"The quick brown fox"}'