Embeddings
POST
/
inference
/
embeddings
Embeddings
Copy
curl --request POST \
--url https://api.nugen.in/inference/embeddings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"input": "The quick brown fox jumped over the lazy dog",
"model": "nugen-embed-legal",
"dimensions": "None"
}'
Copy
{
"created": 1623645497,
"data": [
{
"embedding": [
0.007897645,
-0.006754357,
0.007654689
],
"index": 0
}
],
"id": "nugen-1234",
"model": "nugen-embed-legal",
"usage": {
"total_tokens": 25
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
Was this page helpful?
Embeddings
Copy
curl --request POST \
--url https://api.nugen.in/inference/embeddings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"input": "The quick brown fox jumped over the lazy dog",
"model": "nugen-embed-legal",
"dimensions": "None"
}'
Copy
{
"created": 1623645497,
"data": [
{
"embedding": [
0.007897645,
-0.006754357,
0.007654689
],
"index": 0
}
],
"id": "nugen-1234",
"model": "nugen-embed-legal",
"usage": {
"total_tokens": 25
}
}
Assistant
Responses are generated using AI and may contain mistakes.