Skip to content

Authentication ​

Authenticate server-side requests with a LAYSO AI API key.

Bearer authentication ​

text
Authorization: Bearer $LAYSO_API_KEY

Never expose keys in browser code, mobile packages or public repositories. Use different keys for development, staging and production.

Common errors ​

StatusMeaningAction
401Missing or invalid keyCheck the Authorization header
403Model or group not allowedReview model limits
429Rate or quota limitBack off or add quota

LAYSO AI API 文档