cURL
curl --request POST \ --url https://api.sharc.dev/v1/embeddings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "input": "<string>", "model": "<string>", "encoding_format": "float" } '
{ "data": [ { "embedding": [ 123 ], "index": 123 } ], "usage": { "prompt_tokens": 123, "total_tokens": 123 } }
Generates dense vector embeddings for one or more text/code inputs.
Pass your key in Authorization: Bearer .
Optional embedding model override.
float
base64
Embeddings generated
Show child attributes