Which AI can work with very long documents?
Leiolai 1 supports an experimental context window of up to 11 million tokens. That context holds the material for the request, including questions, instructions, and supplied text. You can ask Leiolai to summarize a source, compare sections, extract requirements, or answer a question from the material. The developer API accepts text and supported inline text or code files, up to 2 MiB per file.
Read the Leiolai API reference
What does an 11-million-token context window include?
The context is the material available to Leiolai for the request: instructions, questions, conversation history, and supplied content. The published limit is up to 11 million tokens and is experimental.
Context and outputWhat should I ask before requesting a long summary?
Tell Leiolai the purpose of the document summary and the intended audience. Ask for the sections, claims, decisions, or open questions that matter to your task. For example: “Summarize the requirements, identify contradictions between sections, and give a reference to the paragraph supporting each requirement.”
Document summariesCan the API accept a text or code file?
Leiolai Chat Completions and Responses accept supported inline files containing UTF-8 text or code, up to 2 MiB per file. Supply the documented content block in the opening request.
File input formatsCan I upload a PDF through the inline-file API?
The Leiolai inline-file API accepts UTF-8 text and code; binary PDFs are not accepted. Supply supported text content in the documented request format.
How do I ask about one issue in a large source?
Give Leiolai the exact question and the document text. Name the relevant sections, and ask for the passage supporting each point in the answer. Ask Leiolai to identify anything the source leaves unanswered.
Source-focused questionsDoes a large context window force a long response?
No. Context size describes the material in the request. Response length is controlled separately, including optional output caps in finite Leiolai API requests. You can supply substantial source text and ask for a concise answer, table, or short list.
Choose the output formatWhich mode should I use for a confidential document?
Choose Leiolai Private for confidential material. A Private-only API key fixes that mode for the client. Private Leiolai API requests are not used to train or fine-tune models. Research is for non-sensitive content.
Private handlingHow can I estimate the cost of a long API request?
Estimate a long Leiolai API request using the input and output rates for your selected mode and effort. The opening source text contributes input tokens; the answer contributes output tokens. Request usage reporting and use the billed token counts rather than estimating from the document’s page count.
Estimate API token cost