Generic completion endpoint (v2 — legacy)
Use when: caller is on the legacy v2 SDK and needs a unified completion endpoint that dispatches by type discriminator — prefer the modality-specific /v3/* endpoints for new code
Legacy generic-completion endpoint. Accepts a unified Layer request body (with type discriminator: chat, image, video, embeddings, tts, ocr) and routes through the named gate. New integrations should prefer the modality-specific /v3/* endpoints, which have richer per-task surfaces. Maintained for backward compatibility with v2-era SDK callers.
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.
Body
Response
Layer-normalized completion response. Shape depends on the task type the gate is configured for.