POST /api/alpha/extractions, change the base URL to https://api.levanto.ai and use your Levanto key. Set model to levanto-sage-2 or sage-latest. It runs the same extraction as /v1/extract.
Request
Field types
Every field takesinstructions (what it should contain, up to 4,000 characters; a question works too) and null_threshold.
Answers
answers has one entry per field, keyed by its name.
With a currency
unit, an amount stated in another currency gives value: null, the amount in guess and the stated currency. Total due: 540.00 EUR. read with "unit": "USD":
list answer has value, spans, confidences and texts, one entry per item.
The response also carries model and usage: input_tokens, output_tokens and passes.
Options
Sage’s own options go underprovider.options.levanto, or at the top level of the body.
p_null is above 0.5, so value is null and guess still carries the 36 months:
Differences from OpenRouter
estimateandforecastfields,assetsandquestionsreturn 400. Send questions to/v1/systemone.- Unknown keys return 400.
session_id,userandtraceare accepted and ignored.
Limits and errors
- Up to 64 fields are read at once. With more, the text is read again, and charged again, for each further 64 (
usage.passes). - The state plus the field definitions of one read: up to 16,384 tokens. Longer returns 413.
- Errors use OpenRouter’s body. See Errors.