← All docs

Embeddings

POST /v1/embeddings — vector embeddings, when a configured provider supports them.

Endpoint

POST /v1/embeddings with {"model": "provider/model-id", "input": "text"} (input may also be an array of strings). The response follows the OpenAI embeddings shape: {object: "list", data: [{object: "embedding", index, embedding: [...]}], model, usage}.

Availability

Embeddings only work if at least one configured provider offers an embedding model. Otherwise the endpoint returns 400 with the message "embeddings not supported by any configured provider".