Skip to content
Docs menu

endpoints

Inference endpoints: hub-served inference for the skill / planner layer. The hub never serves the reflex layer. lucen serve claims an endpoint. A device consumes one only through a signed approval bound to device + model digest + endpoint id. On Lucen cloud the owner pays the tier's hourly rate while the endpoint runs. Sessions are metered, and carry no price.

10 operations · 15 schemas

GET /v1/endpoints

List inference endpoints

listEndpoints · scope key:read

Endpoints the caller may see: their own and those billed to an org they belong to. No endpoint is public. Newest first; an unknown owner or model_repo is an empty page, not a 404.

Parameters

listEndpoints parameters
NameInTypeDescription
statusqueryEndpointStatus
executorqueryRunExecutor
model_repoquerystring

length ≤ 130

Only endpoints serving this owner/slug.

ownerqueryHandle
limitqueryinteger

default 20 · ≥ 1 · ≤ 100

Page size.

cursorquerystring

length ≤ 512

Opaque cursor from the previous page's next_cursor.

Responses

listEndpoints responses
StatusDescriptionBody
200

Page of endpoints.

EndpointPage
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json

POST /v1/endpoints

Create an inference endpoint for a skill-layer model

createEndpoint · scope key:train

A model repo becomes a hub-served inference endpoint. Inference placement is enforced here. The repo's ModelMeta.control_class must be skill or planner. A reflex model (a 50 Hz locomotion controller) answers 409. This hub serves nothing reflex-rate over a network. A model that has declared no class answers 422 asking for one.

The endpoint is pinned to one ONNX (onnx_path, or the repo's single root *.onnx) and its current sha256. A device approval request is pinned the same way. Every session's approval token is later bound to that sha256.

Or it is pinned to a checkpoint directory. A model with no ONNX export (the VLA smolvla_lora trains) is published as policy/ + lucen_manifest.json. The endpoint is then pinned to that directory and to its lucen-checkpoint-v1 digest (EndpointArtifact). The directory is named by policy_path, or auto-detected when the repo holds no root ONNX. Its control_class, contract fingerprint and params are read from the manifest, which the digest covers. A manifest that says reflex is 409, whatever ModelMeta says.

The hardware tier is chosen by the model's size. The caller does not pick it. The hub sizes the weights from the artifact itself when it can: the ONNX file's bytes, or the weight files under a checkpoint directory. It adds 20 % headroom for activations and picks the smallest tier that fits. A quantised file is sized as the bytes it holds. Some artifacts cannot be sized this way: a PEFT adapter, whose base weights live elsewhere, or a file too small to hold its declared parameters. For those the hub falls back to params × bytes per parameter. The dtype comes from the manifest's weights_dtype, bf16 otherwise. params comes from the repo's io_contract.json / manifest, else from the body. With no size at all the call answers 422. Endpoint.vram_basis says which rule applied.

Idle stop. A running endpoint with no open session for idle_stop_minutes is stopped by the hub, the way stopEndpoint stops it, and audited as endpoint.idle_stop. The default is 10 minutes on modal and never (0) on worker. keep_warm: true disables it. An open session always keeps the endpoint running. Separately, the server closes a session that requested no chunk for session_idle_seconds (default 300) with reason idle, so its metering ends.

executor: worker (the default) records the endpoint queued until lucen serve on the owner's own GPU box claims it. Such an endpoint is unpriced. executor: modal records the endpoint queued, and the hub spawns the deployed endpoint function on the tier's GPU. That function claims the endpoint with a public wss:// URL. On a deployment without MODAL_APP_NAME, executor: modal answers 503 naming that setting and records nothing. No fake running endpoint is created. key:train: an endpoint spends GPU time. Audited as endpoint.create.

What it costs. On Lucen cloud the owner pays the tier's hourly rate for the endpoint's uptime (cost_basis: uptime). That is every second from the server's claim to the stop, whether or not a robot has a session open. The hub refreshes cost_usd on every report and fixes it when the endpoint ends, cutting one ledger row for it. Sessions are metering detail and carry no price. budget_usd caps that uptime cost. The hub stops an idle endpoint after idle_stop_minutes, so an endpoint nobody uses does not run up a bill. A worker endpoint costs nothing.

Hosted execution. executor: modal serves only owners in the deployment's HOSTED_OWNERS (default lucen; * = everyone). Anyone else gets 403 with errors[].type: forbidden.hosted_owner, and nothing is recorded. The error names the setting and lucen serve. The estimate answers the same 403. Lucen cloud's policy server loads ONNX files only, so a checkpoint directory on executor: modal is 409 before anything is recorded or priced; serve it with executor: worker and lucen serve.

Request body

application/json · required · EndpointCreate

createEndpoint request body
FieldTypeDescription
model_reporequiredstring

length ≤ 129 · pattern ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

owner/slug of a model repo visible to the caller, of control class skill or planner.

onnx_pathFilePath | null

Which file in the repo the endpoint serves. Omit when the repo holds exactly one *.onnx at its root; required (422) when it holds several.

policy_pathFilePath | null

The checkpoint directory the endpoint serves, for a model with no ONNX export (a VLA). It uses LeRobot's pretrained_model layout, with lucen_manifest.json beside it. This is what smolvla_lora publishes. Omit it when the repo holds policy/ + lucen_manifest.json and no root *.onnx. It is required (422) when the repo holds both shapes. Mutually exclusive with onnx_path (422). 409 when the directory is empty, or its manifest is missing, unparseable, names no policy_format of lerobot / lerobot-peft, or declares control_class: reflex. This is invariant 1: the manifest is checked as well as ModelMeta.

executorRunExecutor | null

worker (default): lucen serve on the owner's own GPU box, unpriced. modal: a container the hub spawns, priced by the tier; 503 on a deployment without MODAL_APP_NAME.

ownerHandle | null

Who the endpoint is billed to (user or org). Omit for yourself.

namestring | null

length ≤ 64

A label for the endpoint page.

paramsinteger | null

≥ 1

The model's parameter count. Used only when neither the repo's io_contract.json nor the ONNX manifest declares params. Even then it matters only when the artifact's own bytes cannot size it (a PEFT adapter, or a file too small for its declared parameters). Ignored when the repo declares one.

max_hoursnumber | null

> 0 · ≤ 720

A wall-clock cap the server enforces on itself; null means no cap.

budget_usdnumber | null

> 0

A hard cap on the endpoint's total cost (priced executors only).

idle_stop_minutesinteger | null

≥ 0 · ≤ 10080

Minutes with no open session after which the hub stops the endpoint. 0 means never. Omitted or null: 10 on modal, 0 on worker.

keep_warmboolean | null

true keeps the endpoint running with no session, whatever idle_stop_minutes says. Default false.

session_idle_secondsinteger | null

≥ 1 · ≤ 86400

The server closes a session that requested no chunk for this long, with reason idle. Default 300.

Responses

createEndpoint responses
StatusDescriptionBody
201

Endpoint recorded (queued for a worker executor).

Endpoint
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
409

State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...).

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json
429

The account's spend cap is in stop mode, and this job would carry the month past it. The month counts recorded Lucen cloud spend, what queued and running cloud work could still cost, and this job's own most possible cost. errors[].type is quota.spend_cap. Retry-After counts the seconds until the month ends. Nothing was recorded, and work already running keeps running.

Problemapplication/problem+json
503

A service this endpoint needs is not configured in this deployment. The API boots with zero secrets. An endpoint that needs one says so instead of returning a stack trace.

Problemapplication/problem+json

POST /v1/endpoints/estimate

Price an endpoint before creating it

estimateEndpoint · scope key:train

Takes the same body as createEndpoint plus hours and validates it identically (visibility, kind, control class, size). It creates nothing. Answers the tier the model's size selects and rate_usd_per_hour × hours: what hours of uptime would cost. On Lucen cloud the rate accrues for every second the endpoint is up, with or without a robot connected. A worker endpoint is cost_usd_max: 0, priced: false. The hub bills nothing for the owner's own GPU. Zero means "not charged". It does not mean the GPU time is free. A modal estimate is priced at the tier's billed rate.

Hosted execution. executor: modal serves only owners in the deployment's HOSTED_OWNERS (default lucen; * = everyone). Anyone else gets 403 with errors[].type: forbidden.hosted_owner, and nothing is recorded. The error names the setting and lucen serve. The estimate answers the same 403. Lucen cloud's policy server loads ONNX files only, so a checkpoint directory on executor: modal is 409 before anything is recorded or priced; serve it with executor: worker and lucen serve.

Request body

application/json · required · EndpointEstimateRequest

estimateEndpoint request body
FieldTypeDescription
model_reporequiredstring

length ≤ 129 · pattern ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

onnx_pathFilePath | null
policy_pathFilePath | null

As on EndpointCreate: a checkpoint directory instead of an ONNX.

executorRunExecutor | null
ownerHandle | null
paramsinteger | null

≥ 1

hoursnumber

default 1 · > 0 · ≤ 720

How many hours to price; the endpoint itself has no fixed duration.

budget_usdnumber | null

> 0

Responses

estimateEndpoint responses
StatusDescriptionBody
200

The estimate.

EndpointEstimate
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
409

State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...).

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json

GET /v1/endpoints/{endpoint_id}

Get an inference endpoint

getEndpoint · scope key:read

One endpoint with its live counters (open sessions, chunks served, GPU-seconds, service and round-trip p95) and what it has cost. cost_usd and billed_seconds are live while it runs: the claim to this instant at the tier's rate. Once it ended they are fixed. An endpoint the caller may not see is 404. The API does not answer 403 here, because that would confirm the endpoint exists.

Parameters

getEndpoint parameters
NameInTypeDescription
endpoint_idrequiredpathId

Endpoint id (ep_...).

Responses

getEndpoint responses
StatusDescriptionBody
200

The endpoint.

Endpoint
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json

DELETE /v1/endpoints/{endpoint_id}

Stop an inference endpoint

stopEndpoint · scope key:train

A queued endpoint is stopped at once (nothing ran, nothing to bill). A running endpoint has a server behind it. So the hub sets stop_requested_at and answers 202 with the endpoint still running. lucen serve sees the flag on its next report, closes every session and reports stopped. Billing stops at that report: the endpoint's cost is fixed and its ledger row is written. Idempotent. A terminal endpoint is 409. key:train, like cancelRun. Audited as endpoint.stop. The hub takes the same path on its own for an endpoint idle past idle_stop_minutes (audited as endpoint.idle_stop) and for one whose uptime cost reached budget_usd. Endpoint.stop_reason says which it was.

Parameters

stopEndpoint parameters
NameInTypeDescription
endpoint_idrequiredpathId

Endpoint id (ep_...).

Responses

stopEndpoint responses
StatusDescriptionBody
202

Stopped, or stop requested; the endpoint as it now stands.

Endpoint
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
409

State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...).

Problemapplication/problem+json

POST /v1/endpoints/{endpoint_id}/claim

Claim a queued worker endpoint (`lucen serve` protocol)

claimEndpoint · scope key:train

The run protocol, mirrored: compare-and-set queued → running on an endpoint whose executor is worker. Exactly one caller wins. An endpoint already claimed, terminal, or not a worker endpoint answers 409. The server states the websocket URL devices will connect to and the sha256 of the file it loaded. That sha256 must equal the endpoint's model_sha256 (422 otherwise). A server serving bytes other than the ones approvals are bound to is refused before any device can reach it. Records claimed_by, the claiming credential, claimed_at, started_at and the first heartbeat_at. Only the claiming credential may reportEndpoint afterwards. Anyone else gets 409. Audited as endpoint.claim. key:train: the server spends the owner's GPU on the owner's behalf. On Lucen cloud the bill starts at claimed_at.

Parameters

claimEndpoint parameters
NameInTypeDescription
endpoint_idrequiredpathId

Endpoint id (ep_...).

Request body

application/json · required · EndpointClaim

claimEndpoint request body
FieldTypeDescription
workerrequiredstring

length 1–128

A name for the server: its hostname, or anything the operator will recognise.

urlrequiredstring

length 6–512

The websocket URL devices connect to (ws:// or wss://), as reachable from the robot's network.

model_sha256requiredSha256

Responses

claimEndpoint responses
StatusDescriptionBody
200

Claimed; the endpoint as it now stands.

Endpoint
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
409

State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...).

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json

POST /v1/endpoints/{endpoint_id}/report

Report sessions, metering and state for a claimed endpoint

reportEndpoint · scope key:train

The server's one write path after claimEndpoint, called every few seconds. The endpoint must be running (409 otherwise). The caller must be the credential that claimed it (409 otherwise). sessions[] carries the server's numbers per session:

  • chunks served
  • GPU-seconds attributed as wall time × 1 / concurrent open sessions. A shared inference GPU is split evenly across the sessions it served, and the row says so.
  • service-time p50/p95

A session also carries state: closed when the device's link went away. The first close of a session wins. A session already closed keeps its closed_reason and closed_at. This report then only adds the server's numbers.

Every report refreshes heartbeat_at and the bill: on Lucen cloud cost_usd becomes the seconds since the claim at the tier's rate, whether or not a session is open. The report whose cost reaches budget_usd comes back with stop_requested_at set.

status: stopped | failed is terminal. Every still-open session is closed as metering detail (cost_usd 0, no ledger row). The endpoint's cost is fixed at that instant, its one ledger row is written, and endpoint.finish is audited with the cost. A worker endpoint's row is 0 / unpriced. Read stop_requested_at on the returned endpoint. When it is set, close every session and report stopped.

Parameters

reportEndpoint parameters
NameInTypeDescription
endpoint_idrequiredpathId

Endpoint id (ep_...).

Request body

application/json · required · EndpointReport

reportEndpoint request body
FieldTypeDescription
statusEndpointReportStatus | null
sessionsarray of EndpointSessionState

items ≤ 200

errorstring | null

length ≤ 4000

log_chunkstring | null

length ≤ 65536

The server's log since the last report; kept on the endpoint's last-report record only.

stop_reasonEndpointServerStopReason | null

Why the server stopped on its own, sent with status: stopped. The hub records it as the endpoint's stop_reason when it asked for no stop itself.

Responses

reportEndpoint responses
StatusDescriptionBody
200

Recorded; the endpoint as it now stands.

Endpoint
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
409

State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...).

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json

GET /v1/endpoints/{endpoint_id}/sessions

List an endpoint's sessions (metering)

listEndpointSessions · scope key:read

Newest first. Each session carries the server's metering (chunks served, GPU-seconds, service p50/p95). It also carries the device's own metering (chunks applied, round-trip p50/p95, deadline misses, degraded count). A session carries no price: the endpoint's uptime is what is billed. (An endpoint created before 16 October 2026 still prices each closed session.) status narrows to open or closed.

Parameters

listEndpointSessions parameters
NameInTypeDescription
endpoint_idrequiredpathId

Endpoint id (ep_...).

statusqueryEndpointSessionStatus
limitqueryinteger

default 20 · ≥ 1 · ≤ 100

Page size.

cursorquerystring

length ≤ 512

Opaque cursor from the previous page's next_cursor.

Responses

listEndpointSessions responses
StatusDescriptionBody
200

Page of sessions.

EndpointSessionPage
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json

POST /v1/endpoints/{endpoint_id}/sessions

Open a session on an endpoint (a device, with a human's approval)

openEndpointSession · scope key:write

Invariant 2: an endpoint is consumed only through the consent layer. The caller is the robot-side driver (lucen-device, a write key that can see the device). It must present the EdDSA approval token a human minted with createApproval. The token must have been minted on a request that named this endpoint (ApprovalRequestCreate.endpoint_id). The hub verifies the token against its own signing key. It answers 403 in each of these cases:

  • the token is missing, unsigned or expired
  • the token is bound to another endpoint or another device
  • the approval is no longer issued / running

Every refusal gets the same answer, so a token cannot be probed. The hub then checks the token's onnx_sha256 against the endpoint's model_sha256. It answers 409 when the endpoint was re-created on other bytes. It also checks that a server has claimed the endpoint (409 while queued).

On success it records the session. It returns the server's websocket url plus a short-lived session token (EdDSA, typ: lucen-session+jwt, exp = min(approval exp, now + ENDPOINT_SESSION_TTL_S)). The device presents that token to the server as openpi's api_key header. The server verifies it offline against GET /v1/devices/signing-key. No hub API key can open a session without a signed approval. That is what this invariant guarantees. Audited as endpoint.session_open.

Parameters

openEndpointSession parameters
NameInTypeDescription
endpoint_idrequiredpathId

Endpoint id (ep_...).

Request body

application/json · required · EndpointSessionOpen

openEndpointSession request body
FieldTypeDescription
device_idrequiredId
approval_tokenstring | null

The EdDSA approval token a human minted for this device on a request naming this endpoint. Missing or invalid is 403.

Responses

openEndpointSession responses
StatusDescriptionBody
201

Session opened; connect to url with session_token.

EndpointSessionOpened
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
409

State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...).

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json

POST /v1/endpoints/{endpoint_id}/sessions/{session_id}/report

The device's own metering for a session

reportEndpointSession · scope key:write

Only the device can measure a round trip, so it reports its side. That covers chunks applied, round-trip p50/p95 in milliseconds and how many chunk deadlines were missed. It also covers how many times the local fail-safe fired (degraded_count). closed: true ends the session from the device's side. closed_reason says why: expired, local_cap, stopped, link_lost. The caller must be a credential that can see the session's device (404 otherwise). A session already closed by either side is 409: the first close wins. Each report replaces the device-side numbers. They are percentiles over the whole session. They are not deltas. key:write, like the driver's telemetry events.

Parameters

reportEndpointSession parameters
NameInTypeDescription
endpoint_idrequiredpathId

Endpoint id (ep_...).

session_idrequiredpathId

Endpoint session id (esess_...).

Request body

application/json · required · EndpointSessionReport

reportEndpointSession request body
FieldTypeDescription
chunks_appliedinteger | null

≥ 0

rtt_ms_p50number | null

≥ 0

rtt_ms_p95number | null

≥ 0

deadline_missesinteger | null

≥ 0

degraded_countinteger | null

≥ 0

closedboolean

default false

closed_reasonstring | null

length ≤ 64

Responses

reportEndpointSession responses
StatusDescriptionBody
200

Recorded; the session as it now stands.

EndpointSession
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
409

State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...).

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json

Schemas (15)

The schemas these operations reach before any other tag’s do. A type that links elsewhere is rendered on that tag’s page.

EndpointPage

object

EndpointPage fields
FieldTypeDescription
itemsrequiredarray of Endpoint
next_cursorrequiredstring | null

EndpointCreate

object

EndpointCreate fields
FieldTypeDescription
model_reporequiredstring

length ≤ 129 · pattern ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

owner/slug of a model repo visible to the caller, of control class skill or planner.

onnx_pathFilePath | null

Which file in the repo the endpoint serves. Omit when the repo holds exactly one *.onnx at its root; required (422) when it holds several.

policy_pathFilePath | null

The checkpoint directory the endpoint serves, for a model with no ONNX export (a VLA). It uses LeRobot's pretrained_model layout, with lucen_manifest.json beside it. This is what smolvla_lora publishes. Omit it when the repo holds policy/ + lucen_manifest.json and no root *.onnx. It is required (422) when the repo holds both shapes. Mutually exclusive with onnx_path (422). 409 when the directory is empty, or its manifest is missing, unparseable, names no policy_format of lerobot / lerobot-peft, or declares control_class: reflex. This is invariant 1: the manifest is checked as well as ModelMeta.

executorRunExecutor | null

worker (default): lucen serve on the owner's own GPU box, unpriced. modal: a container the hub spawns, priced by the tier; 503 on a deployment without MODAL_APP_NAME.

ownerHandle | null

Who the endpoint is billed to (user or org). Omit for yourself.

namestring | null

length ≤ 64

A label for the endpoint page.

paramsinteger | null

≥ 1

The model's parameter count. Used only when neither the repo's io_contract.json nor the ONNX manifest declares params. Even then it matters only when the artifact's own bytes cannot size it (a PEFT adapter, or a file too small for its declared parameters). Ignored when the repo declares one.

max_hoursnumber | null

> 0 · ≤ 720

A wall-clock cap the server enforces on itself; null means no cap.

budget_usdnumber | null

> 0

A hard cap on the endpoint's total cost (priced executors only).

idle_stop_minutesinteger | null

≥ 0 · ≤ 10080

Minutes with no open session after which the hub stops the endpoint. 0 means never. Omitted or null: 10 on modal, 0 on worker.

keep_warmboolean | null

true keeps the endpoint running with no session, whatever idle_stop_minutes says. Default false.

session_idle_secondsinteger | null

≥ 1 · ≤ 86400

The server closes a session that requested no chunk for this long, with reason idle. Default 300.

EndpointEstimateRequest

object

EndpointEstimateRequest fields
FieldTypeDescription
model_reporequiredstring

length ≤ 129 · pattern ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

onnx_pathFilePath | null
policy_pathFilePath | null

As on EndpointCreate: a checkpoint directory instead of an ONNX.

executorRunExecutor | null
ownerHandle | null
paramsinteger | null

≥ 1

hoursnumber

default 1 · > 0 · ≤ 720

How many hours to price; the endpoint itself has no fixed duration.

budget_usdnumber | null

> 0

EndpointEstimate

object

What an endpoint would cost, on the tier its model's size selects. On Lucen cloud the owner pays the tier's hourly rate for the endpoint's uptime, from the claim to the stop, whether or not a robot is connected. hours is how long it would stay up.

EndpointEstimate fields
FieldTypeDescription
executorrequiredRunExecutor
tierrequiredstring

one of l4 · a10g · a100 · h100

Selected from the model's size: weight_bytes + 20 % headroom, then the smallest tier that fits. Never chosen by the caller.

paramsrequiredinteger | null

The parameter count the repo or the body declared. Null when neither did and the artifact's bytes sized the tier.

basisEndpointSizeBasis
weight_bytesinteger

The bytes the tier was sized from, before headroom: the ONNX file, the checkpoint directory's weight files, or params × bytes_per_param.

bytes_per_paramnumber | null

With basis: params, the bytes one parameter takes (2 for bf16, 1 for int8, 0.5 for int4). Null for the other bases.

vram_bytesrequiredinteger

weight_bytes × 1.2: the weights plus 20 % headroom for activations. The tier is the smallest that holds it.

rate_usd_per_hourrequirednumber

Billed hourly rate for the tier (4 decimal places); 0 for a worker endpoint. It accrues for every second the endpoint is up.

hoursrequirednumber

How long the endpoint would stay up.

cost_usd_maxrequirednumber

rate_usd_per_hour × hours, then min(budget_usd) when a budget is set. The most the uptime can cost; sessions add nothing.

budget_usdnumber | null
capped_by_budgetboolean
pricedrequiredboolean

False when the hub does not bill the executor (worker). A zero cost then means "not charged". It does not mean "free GPU time".

artifactEndpointArtifact
notesarray of string

How the tier was sized, in sentences. The first note names the basis and the arithmetic. vram_bytes covers the weights and the headroom only. It selects the tier (invariant 5). For a checkpoint directory the notes also state what has actually been measured while serving that model family, and what has not (e.g. "NOT measured on CUDA").

EndpointClaim

object

EndpointClaim fields
FieldTypeDescription
workerrequiredstring

length 1–128

A name for the server: its hostname, or anything the operator will recognise.

urlrequiredstring

length 6–512

The websocket URL devices connect to (ws:// or wss://), as reachable from the robot's network.

model_sha256requiredSha256

EndpointReport

object

One progress or terminal report from the server. Every field is optional.

EndpointReport fields
FieldTypeDescription
statusEndpointReportStatus | null
sessionsarray of EndpointSessionState

items ≤ 200

errorstring | null

length ≤ 4000

log_chunkstring | null

length ≤ 65536

The server's log since the last report; kept on the endpoint's last-report record only.

stop_reasonEndpointServerStopReason | null

Why the server stopped on its own, sent with status: stopped. The hub records it as the endpoint's stop_reason when it asked for no stop itself.

EndpointSessionStatus

string

one of open · closed

EndpointSessionPage

object

EndpointSessionPage fields
FieldTypeDescription
itemsrequiredarray of EndpointSession
next_cursorrequiredstring | null

EndpointSessionOpen

object

EndpointSessionOpen fields
FieldTypeDescription
device_idrequiredId
approval_tokenstring | null

The EdDSA approval token a human minted for this device on a request naming this endpoint. Missing or invalid is 403.

EndpointSessionOpened

object

EndpointSessionOpened fields
FieldTypeDescription
sessionrequiredEndpointSession
urlrequiredstring

The server's websocket URL.

session_tokenrequiredstring

EdDSA JWT (typ: lucen-session+jwt), presented to the server as openpi's api_key header; verified there offline against the hub's signing key.

expires_atrequiredstring (date-time)
model_sha256requiredSha256
contract_fingerprintrequiredContractFingerprint | null

EndpointSessionReport

object

The device's side of a session's metering; each report replaces the last.

EndpointSessionReport fields
FieldTypeDescription
chunks_appliedinteger | null

≥ 0

rtt_ms_p50number | null

≥ 0

rtt_ms_p95number | null

≥ 0

deadline_missesinteger | null

≥ 0

degraded_countinteger | null

≥ 0

closedboolean

default false

closed_reasonstring | null

length ≤ 64

EndpointSession

object

EndpointSession fields
FieldTypeDescription
idrequiredId
endpoint_idrequiredId
device_idId | null
approval_idId | null
statusrequiredEndpointSessionStatus
opened_atrequiredstring (date-time)
expires_atstring (date-time) | null (date-time)

When the session token expires: the approval's expiry or the hub's session TTL, whichever is sooner.

closed_atstring (date-time) | null (date-time)
closed_reasonstring | null
last_report_atstring (date-time) | null (date-time)
chunks_servedrequiredinteger

As the server reported.

gpu_secondsrequirednumber

As the server attributed (wall × 1 / concurrent sessions).

service_ms_p50number | null
service_ms_p95number | null
chunks_appliedinteger | null

As the device reported.

rtt_ms_p50number | null
rtt_ms_p95number | null
deadline_missesinteger | null
degraded_countinteger | null

How many times the device's local fail-safe fired (hold on deadline miss or link loss).

cost_usdnumber | null

0 on an endpoint billed by uptime: a session is metering detail and the endpoint's uptime carries the cost. On the sessions basis, gpu_seconds / 3600 × tier rate once closed, 0 on worker.

pricedrequiredboolean

True only for a closed session on a priced endpoint billed by sessions.

created_atrequiredstring (date-time)

EndpointReportStatus

string

one of running · stopped · failed

EndpointSessionState

object

The server's numbers for one session, replaced on every report.

EndpointSessionState fields
FieldTypeDescription
session_idrequiredId
statestring

one of open · closed

default "open"

chunks_servedinteger

default 0 · ≥ 0

gpu_secondsnumber

default 0 · ≥ 0

Wall time this session was open × 1 / the number of sessions open alongside it, summed per interval.

service_ms_p50number | null
service_ms_p95number | null
closed_reasonstring | null

length ≤ 64

EndpointServerStopReason

string

one of max_hours · max_seconds · interrupted · hub_unreachable

Why a server stopped without being asked. max_hours: the endpoint's own time limit. max_seconds: the server's own --max-seconds. interrupted: the server process was told to stop. hub_unreachable: the hub stayed away longer than any session can live.