Skip to main content
POST
/
api
/
v2
/
embeddings
curl --request POST \
--url https://paradigm.lighton.ai/api/v2/embeddings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "multilingual-e5-large",
"input": "Hello, world!"
}'
{
"model": "multilingual-e5-large",
"input": "Hello, world!"
}

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

Request serializer for embeddings endpoint.

model
string
required

Model to use for generating embeddings, must exist and be configured from the admin

input
string
required

Input text to embed, encoded as a string or array of tokens

encoding_format
any

The format to return the embeddings in

  • float - float
  • base64 - base64
dimensions
integer

The number of dimensions the resulting output embeddings should have

user
string

A unique identifier representing your end-user

Response

Successful response

Response serializer for embeddings endpoint results.

data
object[]
required

The list of embeddings generated by the model

model
string
required

The model used for generating the embeddings

object
string
default:list

The object type, which is always 'list'

I