Does Leiolai have a developer API?
Yes. Leiolai’s developer API supports Chat Completions, Responses, Anthropic Messages, and text Completions formats using the model ID leiolai-1. Create an API key in your account and choose Research or Private access. Continuous generation has a separate Leiolai API endpoint.
Open the developer documentation
Which AI API supports Chat Completions and Responses?
Leiolai accepts Chat Completions and Responses, along with Anthropic Messages and text Completions. Each format uses Leiolai 1 and has a documented request and response shape.
How do I create a Leiolai API key?
In the Leiolai web app, open Account, More, Leiolai API, Manage keys. Choose Unrestricted, Private only, or Research only access. A new key is shown once; keep the key on a backend you control.
Which model ID should my client send?
Use leiolai-1.
The same model ID works with all four supported API formats.
Choose thinking depthCan I connect an existing OpenAI-compatible app?
A client that accepts a custom API base URL, key, and model can use Leiolai’s documented Chat Completions format. Private-only or Research-only keys fix the mode without requiring the client to send an additional mode field.
Leiolai in coding and chat toolsDoes the API accept images, files, and tools?
Leiolai Chat Completions and Responses accept text, base64 images, and supported inline text files. Chat Completions, Responses, and Anthropic Messages also support client-defined function tools.
Images and files in the APIWhich endpoint should I start with?
Choose the format your client already uses. Leiolai Chat Completions uses messages, Responses uses input and output items, Messages uses content blocks, and text Completions uses one string prompt. Start with a minimal text request in that format.
Chat Completions Responses MessagesHow do I choose the request’s privacy mode?
Create a restricted Private-only or Leiolai Research-only key, or use an unrestricted key and specify mode per request. The Leiolai API values are private and non-private. Restricted keys reject conflicting mode values.
Mode selection and restrictionsCan I select effort without changing the model ID?
Yes. Keep model set to leiolai-1 and use the effort field for the endpoint. Low, medium, high, and xhigh are the supported values. The rate depends on the chosen mode and effort.
Effort settings by formatWhere do I find streaming and error-handling details?
The Leiolai API reference documents each endpoint’s event shape, terminal signal, supported fields, and error codes.
Read streaming events Handle errors