Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://api.sharc.sh/v1/embeddings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "input": "<string>", "model": "<string>" } '
{ "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