How much will a Leiolai API request cost?

Multiply the input token count by the selected input rate and the output token count by the selected output rate, with each rate priced per million tokens. Add the two amounts. Mode and thinking effort determine the rates: Leiolai Research low launch pricing is $0.01 per million input tokens and $0.02 per million output tokens. Private and other effort levels have different prices. Use the Leiolai token-cost calculator for a token estimate and reported usage for a completed request.

Estimate your Leiolai API cost

Leiolai Research Low launch pricing: $0.01 input and $0.02 output per million tokens.

Estimated total: $0.00104

Input: $0.001 · Output: $0.00004

USD estimate using the published rates below. Use reported token usage for a completed request.

What is the formula for a request’s token cost?

Leiolai API cost = (input tokens ÷ 1,000,000 × input rate) + (output tokens ÷ 1,000,000 × output rate). Use the rates for your selected mode and effort. Input includes the source text and conversation history your client sends; output is the generated response.

Which rates does the calculator use?

These are the published US-dollar API prices per million tokens. Leiolai Research low, medium, and high use launch pricing; Research xhigh and Private use standard pricing. Choose both the mode and effort that match the request.

Published API rates in USD per 1 million tokens
ModeEffortInputOutput
ResearchLow (launch)$0.01$0.02
ResearchMedium (launch)$0.25$0.65
ResearchHigh (launch)$6.40$21.00
ResearchXHigh$160.00$700.00
PrivateLow$20.00$90.00
PrivateMedium$40.00$175.00
PrivateHigh$80.00$350.00
PrivateXHigh$160.00$700.00

What does one million input plus one million output tokens cost?

At Leiolai Research low launch pricing, one million input tokens cost $0.01 and one million output tokens cost $0.02, totaling $0.03. At Private low standard pricing, the same quantities cost $20 for input and $90 for output, totaling $110.

What is a smaller Research low example?

For 100,000 input tokens and 2,000 output tokens, Leiolai Research low launch pricing gives $0.001 for input and $0.00004 for output, totaling $0.00104.

Does the selected thinking effort affect cost?

API rates vary with low, medium, high, and xhigh effort. Low, medium, and high Leiolai Research rates use launch pricing; xhigh and Private use standard pricing. Select the mode and effort you intend to request when estimating the cost.

Effort fields by format

Where do I find the actual token counts?

Non-streaming Leiolai Chat Completions includes usage when counts are available. With streaming, send stream_options.include_usage: true to receive the final usage-only chunk. Read prompt_tokens, completion_tokens, and total_tokens; when present, these are the counts used for billing.

Usage reporting

Can I control the amount of finite output?

Leiolai Chat Completions accepts max_completion_tokens, and Responses accepts max_output_tokens, as optional output caps. Messages requires max_tokens; text Completions accepts max_tokens as an optional cap.

Input and output limits

How should I estimate continuous-generation cost?

Estimate the cost of Leiolai continuous generation using the input and output token rates for your selected mode and effort. Continuous sessions can end when the available balance or API budget is exhausted.

Continuous-session billing

Does my app subscription replace these API charges?

App memberships and API token use are separate. Standard, Pro, and Plus Ultra provide Leiolai Research usage limits and subscriber bonuses. Developer requests use token pricing, balance, and applicable API budgets.

Membership versus metered API use