Examples
POST
http://localhost:11434/api/embed
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:11434/api/embed' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
{
"model": "all-minilm",
"embeddings": [
[
0.010071029,
-0.0017594862,
0.05007221,
0.04692972,
0.054916814,
0.008599704,
0.105441414,
-0.025878139,
0.12958129,
0.031952348
]
],
"total_duration": 14143917,
"load_duration": 1019500,
"prompt_eval_count": 8
}
Request
Body Params application/json
Responses
Modified at 2025-03-28 02:53:27