Skip to main content
POST
/
v1
/
embed
/
{model}
Generate Embedding
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
  ]
}

Authorizations

Api-Key
string
header
required

Access the API as yourself. You can find your API key in your profile menu in Portal.

Path Parameters

model
string
required

The model to use for embedding. Refer to the /v1/embed/models endpoint for supported models.

Body

application/json

The text to embed.

input
string

Response

OK

embedding
number[]