ConceptsThe access ladder

The access ladder

Different backends expose different signal about their own outputs. CLI calls this the access ladder, and every backend adapter reports which level it can reach so the calibration engine can pick the strongest valid nonconformity score automatically.

LevelWhat the backend returnsScore CLI can buildBackends that reach it on the hosted service
L0Sampled text onlySample-frequency and semantic-cluster nonconformityAnthropic Claude; Gemini (API and Vertex AI); Bedrock natively hosted models; OpenAI and Azure reasoning configurations; Mistral, Groq, xAI
L1Generated-token log-probabilities (top-k)LAC / APS set scores directly from option probabilitiesOpenAI and Azure non-reasoning configurations; vLLM and SGLang; Bedrock Custom Model Import; Together, Fireworks, DeepSeek, Cerebras; OpenRouter pinned to an L1 OpenAI model; OpenAI-compatible servers with use_logprobs
L2Log-probabilities of text you supplyCandidate-likelihood scores: each option scored by the likelihood of its full text, with no top-k truncation or letter-position biasvLLM and SGLang (access_hint="prompt-scoring"); Bedrock Custom Model Import (prompt-scoring)
L3Exact probabilities for chosen label tokensExact APS/RAPS, with no residual probability massvLLM and SGLang (access_hint="exact")
L4Hidden statesTrained-probe nonconformity scoresSGLang started with --enable-return-hidden-states (access_hint="hidden-state"). vLLM does not return hidden states over HTTP

L2 to L4 on vLLM and SGLang depend on what the server supports, which the connection Test probes (the tokenizer endpoint for L2 and L3, hidden states for L4). At L4 the service trains a probe on half of the calibration rows and conformalizes its scores on the other half, so the split-conformal guarantee keeps its finite-sample validity; L4 serves Set, Belief, Gate and Interval queries.

A higher access level never changes what a guarantee means — it only changes how tight the resulting set or interval can be, and how cheaply it can be produced. A Set primitive on Claude (L0) and the same Set primitive on a self-hosted vLLM deployment (L3) both carry a coverage guarantee of exactly the same shape; the vLLM version typically returns smaller sets at lower cost per call.

How CLI picks a score

  1. With access_hint="auto", the backend reaches the level its provider, model and settings allow, up to L1 (a reasoning-effort OpenAI config, for instance, reaches L0 even though the same model reaches L1 with reasoning effort set to none). Levels above L1 are used only when you ask for them with a hint, because they change the scoring function and so the calibration. A Set with more than 20 options runs at L0, since first-token log-probabilities cover at most 20 option letters.
  2. The requested primitive names the guarantee it needs (coverage, risk, FDR, anytime).
  3. CLI selects the cheapest nonconformity score at or above the minimum access level that guarantee requires, and falls back to sampling-based scores when a higher level is unavailable.
  4. The chosen method is recorded in the answer’s guarantee.method field — nothing about score selection is hidden from the caller.

Setting the access hint explicitly

Two knobs pin the score family instead of letting CLI choose:

  • access_hint on any hosted backend (OpenAIBackend, VLLMBackend, and the others), which applies to every query sent to that backend.
  • backend_access_hint on a single Set query.
from cli_sdk import OpenAIBackend, Set
 
backend = OpenAIBackend(model="gpt-4.1-2025-04-14", access_hint="logprobs")
 
department = Set(
    instructions="Which team should handle this ticket?",
    options={
        "billing": "Payments, invoicing, refunds",
        "technical": "Bugs, outages, integrations",
    },
    calibration_profile="support-routing-v3",
    backend_access_hint="logprobs",  # force L1 scoring; error if unavailable
)
HintLevel it pins
"auto"CLI picks (the default for access_hint; backend_access_hint left unset means the same)
"sampling"L0
"logprobs"L1
"prompt-scoring"L2
"exact"L3
"hidden-state"L4

Leave hints on "auto" unless you have a specific reason to pin the score family, for example to guarantee that a calibration profile is never silently served with a different score type after a model configuration change. A pinned hint the backend cannot satisfy fails with 502 access_level_unavailable (a BackendError in the SDK) before any model call, rather than downgrading the guarantee. The access level is part of the profile’s fingerprint: a profile calibrated at L1 is not served at L3, or the other way round, without recalibration.

For a CustomBackend, you declare the level yourself with the access_level class attribute ("L0" to "L4"). Its evidence is what your methods return: option probabilities at L1 and above, samples at L0.