curl --request POST \
--url https://api.sierra.absconsulting.com/v1/embed/{model} \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"input": "<string>"
}
'{
"embedding": [
123
]
}Provide a text input and receive an embedding vector of the text.
curl --request POST \
--url https://api.sierra.absconsulting.com/v1/embed/{model} \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"input": "<string>"
}
'{
"embedding": [
123
]
}Access the API as yourself. You can find your API key in your profile menu in Portal.
The model to use for embedding. Refer to the /v1/embed/models endpoint for supported models.
The text to embed.
OK
Was this page helpful?