curl --request POST \
--url https://api.vivgrid.com/v1/embeddings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "BAAI/bge-m3",
"input": "The quick brown fox jumped over the lazy dog",
"encoding_format": "float"
}
'{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.0139,
-0.0021,
0.0012
]
}
],
"model": "BAAI/bge-m3",
"usage": {
"prompt_tokens": 9,
"total_tokens": 9
}
}Generates an embedding vector representing the input text.
curl --request POST \
--url https://api.vivgrid.com/v1/embeddings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "BAAI/bge-m3",
"input": "The quick brown fox jumped over the lazy dog",
"encoding_format": "float"
}
'{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.0139,
-0.0021,
0.0012
]
}
],
"model": "BAAI/bge-m3",
"usage": {
"prompt_tokens": 9,
"total_tokens": 9
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
BAAI/bge-m3.
Input text or tokens to embed.
Format of the returned embedding.
float, base64 Optional number of dimensions for the embedding vector.
x >= 1Unique identifier for the end-user.