/api/v2/embeddings
  • 23 Jul 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

/api/v2/embeddings

  • Dark
    Light
  • PDF

Article summary

Post
/api/v2/embeddings

This endpoint can be used to convert text chunks into embeddings.

It is a simple proxy forwarding your requests to the desired model.

Any LightOn embedding model is compatible with the OpenAI request format.

Body parameters
LightOnModelExample

LightOn model example

{
  "model": "multilingual-e5-large",
  "input": "Hello"
}
object
model
string Required

Model to use, must exist and be configured from the admin.

object
model
string Required

Model to use, must exist and be configured from the admin.

object
model
string Required

Model to use, must exist and be configured from the admin.

Responses
200

No response body


Was this article helpful?