OpenAI-compatible embeddings (drop-in)
Use when: caller has an existing OpenAI SDK embeddings flow and wants to route through Layer with zero code changes via baseURL swap
Drop-in replacement for POST https://api.openai.com/v1/embeddings. Accepts the upstream OpenAI embeddings request body verbatim and returns the upstream OpenAI response body verbatim. Route through a Layer gate by passing model as a Layer gate id or name. Existing OpenAI SDK clients work unmodified via baseURL swap. Errors are returned in the OpenAI nested shape.
Documentation Index
Fetch the complete documentation index at: https://docs.verlon.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Layer API key (prefixed sk-). Generated from the dashboard under Settings → API Keys, or via layer key create in the CLI.
Response
OpenAI-format embeddings response. Shape matches the underlying provider format selected by the gate.