All models

Levanto Sage 1.4

Private TEE
Verified
levanto/sage-1.4

Sage is a decision model: send text and typed questions (yes/no, choice, score) and get calibrated probabilities back instead of generated text. Choice and score distributions sum to 1. Call it through /v1/systemone.

Input / 1M tokens
$0.07
Output / 1M tokens
$2
Cache read / 1M tokens
—
Context window
32K tokens

Privacy & execution

This model supports private inference inside a hardware-isolated Trusted Execution Environment (TEE), protecting data while it is processed. HTTPS protects data in transit; client-to-model end-to-end encryption depends on the model and integration.

Attestation provides cryptographic evidence of the execution environment’s identity and configuration. Where response signatures are available, you can also verify the integrity of the request and response.

Verification documentation
01

Make your first request

Call /v1/systemone over HTTPS.

Get an API key and replace the API key placeholder below.

Submit context in state and typed questions in questions. Questions support probability (noul), choice, and score answers. The response contains answers and token usage. Streaming and the chat playground are unavailable for decision models.

curl --fail-with-body -D - "https://cloud-api.near.ai/v1/systemone" \ -H "Authorization: Bearer <YOUR-NEAR-AI-CLOUD-API-KEY>" \ -H "Content-Type: application/json" \ -d '{ "model": "levanto/sage-1.4", "state": "I was charged twice. Please help.", "questions": { "billing": { "type": "noul", "instructions": "Is this about billing?" } } }'

Copy the X-Generation-Id response header, then retrieve its receipt using the same API key:

GENERATION_ID="<X-Generation-Id response header>" curl --fail-with-body "https://cloud-api.near.ai/v1/signature/${GENERATION_ID}?signing_algo=ed25519" \ -H "Authorization: Bearer <YOUR-NEAR-AI-CLOUD-API-KEY>"

Check signature_kind: gateway is a Gateway receipt, not proof of TEE execution; provider_tee identifies a provider TEE receipt. Fetching a receipt alone does not verify it. Verification checks the signature and hashes of the exact request and response bytes. System One does not support end-to-end encryption.

02

Use the API

Use the dedicated endpoint for this model’s modality.

Example

const response = await fetch("https://cloud-api.near.ai/v1/systemone", { method: "POST", headers: { Authorization: "Bearer <YOUR-NEAR-AI-CLOUD-API-KEY>", "Content-Type": "application/json", }, body: JSON.stringify({ "model": "levanto/sage-1.4", "state": "I was charged twice. Please help.", "questions": { "billing": { "type": "noul", "instructions": "Is this about billing?" } } }), }); if (!response.ok) throw new Error(await response.text()); console.log(await response.json()); console.log("X-Generation-Id:", response.headers.get("X-Generation-Id"));