Create embeddings
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/embeddings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "multilingual-e5-large",
"input": "Hello, world!"
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/embeddings"
payload = {
"model": "multilingual-e5-large",
"input": "Hello, world!"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: 'multilingual-e5-large', input: 'Hello, world!'})
};
fetch('https://paradigm.lighton.ai/api/v3/embeddings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"model": "multilingual-e5-large",
"input": "Hello, world!"
}
Models
Create embeddings
This endpoint can be used to convert text chunks into embeddings.
It is a simple proxy forwarding your requests to the desired model.
Model resolution:
The model field accepts either a model technical name or an alias technical name. If the value matches an alias technical name for the authenticated user’s company, the alias routing is used to resolve the effective model (even if a model with the same technical name exists). Otherwise, the model is resolved directly by technical name.
Input Format:
input: Text string to convert to embeddingsencoding_format: Format for returned embeddings (float or base64)dimensions: Optional dimension specification for output embeddings
POST
/
api
/
v3
/
embeddings
Create embeddings
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/embeddings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "multilingual-e5-large",
"input": "Hello, world!"
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/embeddings"
payload = {
"model": "multilingual-e5-large",
"input": "Hello, world!"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: 'multilingual-e5-large', input: 'Hello, world!'})
};
fetch('https://paradigm.lighton.ai/api/v3/embeddings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"model": "multilingual-e5-large",
"input": "Hello, world!"
}
Authorizations
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Request serializer for embeddings endpoint (OpenAI-compatible).
Response
Response serializer for embeddings endpoint results.