Skip to main content

Endpoint

Authenticate with Authorization: Bearer lx1_.... Pass any id from the table below as model; it defaults to lx1-embed. Embeddings are included on every paid plan. Embedding requests are never re-routed. The model you name is the model that runs — we never substitute a different one, because vectors of different widths cannot be compared against an index you have already built.

Request parameters

Example

Response (shape)
Vectors come back in input order — index matches the position of each text in input. Cosine similarity is the intended distance measure.

Errors

Empty input, more than 2,048 items, or a dimensions value that does not match the model return 400 with an OpenAI-shaped body. An unrecognised model returns 404. On the free plan, embeddings return 403 plan_upgrade_required. Full reference: Errors.