Skip to main content
POST
/
v1
/
embeddings
Create Embeddings
curl --request POST \
  --url http://localhost:8080/v1/embeddings \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "<string>",
  "input": "<string>",
  "encoding_format": "float",
  "dimensions": 123
}'
{
  "index": 123,
  "object": "<string>",
  "embedding": [
    123
  ]
}

Body

application/json
model
string
required

Model identifier in 'provider/model' format

input
required

Input text or tokens to embed

encoding_format
enum<string>

The format to return the embeddings in.

Available options:
float,
base64
dimensions
integer

The number of dimensions the resulting output embeddings should have.

Response

200 - application/json

Successful response

index
integer
object
string
embedding