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.

The call's token usage is metered against the project in the path, so embedding spend reaches the usage rollup and the project's cost_usd / tokens quotas.

Request​

Responses​

Embeddings generated successfully