Skip to content

API Overview ​

LAYSO AI exposes one gateway for OpenAI-compatible, Anthropic-native, Gemini-native, and asynchronous video requests. One API key can access all models available on the platform.

Unified access and transparent billing

Requests are billed at the current price of the selected model. Every successful request has an itemized usage record; failed tasks are not charged.

Base configuration ​

SettingValue
API Base URLhttps://api.layso.ai
User websitehttps://layso.ai
OpenAI SDK Base URLhttps://api.layso.ai/v1
Anthropic SDK Base URLhttps://api.layso.ai
OpenAI authAuthorization: Bearer $LAYSO_API_KEY
Anthropic authx-api-key: $LAYSO_API_KEY
Gemini authx-goog-api-key: $LAYSO_API_KEY
API KeyCreate one on the LAYSO AI API Keys page

Main endpoints ​

ProtocolEndpointMethod
OpenAI/v1/chat/completionsPOST
OpenAI/v1/responsesPOST
OpenAI/v1/embeddingsPOST
OpenAI/v1/images/generationsPOST
OpenAI/v1/modelsGET
Anthropic/messagesPOST
Anthropic/modelsGET
Gemini/v1beta/models/{model}:generateContentPOST
Gemini/v1beta/cachedContentsPOST
Video/v1/videosPOST
Video/v1/videos/{id}GET / DELETE

Account and usage ​

LAYSO AI does not currently publish a balance-query REST endpoint. Do not depend on undocumented dashboard internals.

bash
curl https://api.layso.ai/v1/chat/completions \
  -H "Authorization: Bearer $LAYSO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.5","messages":[{"role":"user","content":"Hello"}]}'

LAYSO AI API 文档