cURL
simple_input
curl --request POST \ --url https://api.neosantara.xyz/v1/embeddings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "nusa-embeddings-0001", "input": "example sentence"}'
{ "object": "list", "data": [ { "object": "embedding", "embedding": [ 0.123, 0.456, 0.789 ], "index": 0 } ], "model": "nusa-embeddings-0001", "usage": { "prompt_tokens": 3, "total_tokens": 3 } }
Generate vector embeddings from input text.
Your NeosantaraAI API Key.
Embeddings result
The response is of type object.
object