Request (Multiple input)
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 '{
"model": "gpt-4",
"input": [
"What'\''s the weather like today?",
"What is the temperature in Beijing now?"
]
}'
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
],
[
-0.0098027075,
0.06042469,
0.025257962,
-0.006364387,
0.07272725,
0.017194884,
0.09032035,
-0.051705178,
0.09951512,
0.09072481
]
]
}
Request
Body Params application/json
Responses
Modified at 2025-03-28 02:55:38