Create embeddings
POST/api/v1/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 400 VALIDATION_FAILED.
Request
Responses
- 200
- 400
- 401
- 403
- 503
Embeddings generated successfully
Invalid request body, or no project to bill (no project_id and a credential bound to none)
Unauthorized
The caller cannot write to the named project_id
Embedding service not configured