Skip to main content

Endpoint

Authenticate with Authorization: Bearer sdn_.... Pass any model from the table below as model; it defaults to the @sdn/bge-base-en row (the alias sdn-embed still works). Embeddings are included on every paid plan. The table lists each model under its public id, as GET /v1/models does. The older spellings — sdn-bge-m3 and the bare bge-m3 — resolve too. Embedding requests are never re-routed. The model you name is the model that runs — we never substitute a different one, because vectors from a different model cannot be compared against an index you have already built. If the model can’t be served, you get an error, never a vector from another model.

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 400 plan_upgrade_required; the message names the cheapest plan that includes the model. Full reference: Errors.