Skip to main content
POST
/
v2
/
complete
Generic completion endpoint (v2 — legacy)
curl --request POST \
  --url https://api.verlon.ai/v2/complete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "gateId": "<string>",
  "type": "<string>",
  "data": {},
  "model": "<string>",
  "metadata": "<unknown>",
  "endUserId": "<string>"
}
'
{
  "error": "<string>",
  "message": "<string>",
  "details": "<unknown>"
}

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

Authorization
string
header
required

Layer API key (prefixed sk-). Generated from the dashboard under Settings → API Keys, or via layer key create in the CLI.

Body

application/json
gateId
string
required
type
string
data
object
model
string
metadata
any
endUserId
string

Response

Layer-normalized completion response. Shape depends on the task type the gate is configured for.