Skip to main content

Create embeddings

POST 

/v1/projects/:project_id/embeddings

Generates embedding vectors for one or more text inputs using the server's configured embedding model. Provide input for a single text or inputs for a batch. At least one is required. Returns embedding when input is used, and embeddings when inputs is used.

project_id names the project the call's token usage is metered against, so embedding spend reaches the usage rollup and the project's cost_usd / tokens quotas. A project-scoped credential supplies its own project; a call that names none and is bound to none is served but not metered.

Request​

Responses​

Embeddings generated successfully