cURL
curl --request POST \ --url https://api.nugen.in/api/v3/inference/inference/embeddings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "input": "The quick brown fox jumped over the lazy dog", "model": "nugen-flash-embed", "dimensions": 123 }'
{ "created": 1623645497, "data": [ { "embedding": [ 0.007897645, -0.006754357, 0.007654689 ], "index": 0 } ], "id": "nugen-1234", "model": "nugen-flash-embed", "object": "embedding", "usage": { "total_tokens": 25 } }
Generate dense vector embeddings for input text using specified embedding models
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Vector embeddings and usage statistics
The response is of type object.
object
Was this page helpful?