Advanced calibration formats
For common mono inputs, see the quick start. GET /calibrations lists built-in calibrations and candidate status. Choose only the actual matching device; candidate calibrations have not been formally validated.
- Normalization supports K-only, OpenCV mono,
mirohand_stereo_calibration_v1, native JSON containing twokannala-brandt4cameras, andopencv_stereo_charuco_fisheye. YAML, ZIP and arbitrary vendor JSON are not automatically recognized. - Mono D: 4 values for
opencv_fisheye/equidistant; 4, 5, 8, 12 or 14 foropencv. Useimage_size=[width,height]with per-eye dimensions for SBS. - Raw stereo requires schema, device_id, calibration_source,
translation_unit="m",images_rectified=false, camera_model, K_left/D_left, K_right/D_right, R_left_to_right, T_left_to_right_m, andimage_size_hw=[height,width]. - Rectified stereo uses
images_rectified=true,camera_model="pinhole", P1/P2 and valid per-eye ROIs; validate using the normalization endpoint. - Native camera/IMU JSON: cameras[0] is left, cameras[1] is right; imuToCamera is a 4×4 IMU→camera rigid transform, with translation in meters. Left→right is right imuToCamera multiplied by inverse left imuToCamera. IMU calibration parameters are not sensor time-series samples.
Batches, pagination and events
Batches and optional parameters
POST /runs/batch requires an idempotency key and {"items":[<RunRequest>,...]}, with 1–50 items. Each response item has the original index, HTTP-style status, and either run or error. Check every item; an overall 202 does not mean every item succeeded.
params may override input_projection, input_layout, camera_K or camera_calibration. Optional max_frames accepts 8–18000 and rejects longer inputs; it does not request trimming. Usually omit it so long videos are processed in full.
List pagination
GET /sessions and GET /runs use cursor/limit (default 50, maximum 200). Preserve next_cursor and stop at has_more=false. Lists are live views rather than transactional snapshots. Runs support state, session_id and query; available_results=true selects currently available results, while state=succeeded alone does not guarantee downloadable artifacts.
Paged events and SSE
GET /runs/{run_id}/events?after=0&limit=100 returns items, next_cursor and has_more, up to 500 events per page. SSE uses GET /runs/{run_id}/events/stream with Bearer authentication; reconnect with Last-Event-ID or after. Frames contain id, event and data; keepalives are comments. A terminal event carries the final run snapshot and closes the stream; it has no cursor and may repeat after reconnection. Stop reconnecting at terminal state. Native EventSource cannot set a Bearer header; browsers should use streaming fetch with headers.
Partial previews during processing
GET /runs/{run_id}/segments?after=-1&limit=50 (maximum 100) returns processed_frames, total_frames, items and next_after. Pass non-null next_after as the next after; null means currently visible pages are exhausted. Segments include source-frame range [core_start,core_end), timestamps, signed URL, size and hash. Refresh the listing for expired links. Partial completion is not full-run success; the final run state and artifacts manifest are authoritative.
Automatic retries are discoverable in retry_run_ids. A network retry repeats the original key; an execution retry calls retry to create a new attempt. Cancellation can race with success, so confirm the final terminal/state values.
Geometry arrays and long-video reading
See using results for core fields, coordinates and validity. These additional arrays exist in short-video NPZ and long-video core.npz; N is the current file frame count and slots 0/1 are left/right.
| Field | Shape / type | Notes |
|---|---|---|
wrist_translation | (N, 2, 3) · float32 | Wrist translation in meters. |
mano_rotation_matrices | (N, 2, 16, 3, 3) · float32 | MANO rotation matrices, not axis-angle vectors. |
mano_shape | (N, 2, 10) · float32 | MANO shape coefficients. |
estimated_K | (N, 3, 3) · float32 | Intrinsics in output-image coordinates. RGB+K uses supplied parameters. RGB-only uses fixed model preset intrinsics. |
presence_probability | (N, 2) · float32 | Hand presence probability, not calibrated 3D accuracy or error. |
observation_supported | (N, 2) · bool | Observation support flag. |
bridged_without_observation | (N, 2) · bool | Bridging without an observation. |
observation_guard_excluded | (N, 2) · bool | Exclusion by the observation guard. |
geometry_valid | (N, 2) · bool | Geometry check flag; still use valid to select usable results. |
Chunk-reading example (also install numpy): stream members without extracting the archive to disk. timestamps_s and frame_ids preserve source-video correspondence.
import io, tarfile
import numpy as np
with tarfile.open("hands.tar", "r|") as archive:
for member in archive:
if member.isfile() and member.name.endswith("/core.npz"):
with archive.extractfile(member) as source:
with np.load(io.BytesIO(source.read()), allow_pickle=False) as chunk:
frame_ids = chunk["frame_ids"]
timestamps = chunk["timestamps_s"]
valid = chunk["valid"]
joints = chunk["joints_camera_m"]
# Consume this chunk before advancing the archive.
print(frame_ids[0], frame_ids[-1], joints[valid].shape)Endpoint index
Paths are relative to /api/v1 and require Bearer authentication. See the interactive reference for field types, enums and responses, or download OpenAPI JSON. Responses may contain additional fields; clients should ignore unknown fields.
| Method | Path | Purpose |
|---|---|---|
| GET | /me | Identity and data scope |
| GET | /capabilities | Input limits and API capabilities |
| GET | /calibrations | Built-in calibration and candidate status |
| POST | /calibrations/normalize | Validate and normalize calibration |
| POST | /uploads | Create upload (idempotency key) |
| GET / DELETE | /uploads/{upload_id} | Upload status / cancellation |
| POST | /uploads/{upload_id}/complete | Publish input and return session_id |
| GET | /sessions | List recordings |
| GET | /sessions/{sid} | Recording details (sid=session_id) |
| GET | /sessions/{sid}/preview | Signed input preview |
| GET / POST | /runs | List / create runs (POST needs idempotency key) |
| POST | /runs/batch | Batch submission (idempotency key) |
| GET | /runs/{run_id} | Run status |
| POST | /runs/{run_id}/cancel | Request cancellation |
| POST | /runs/{run_id}/retry | New attempt (idempotency key) |
| GET | /runs/{run_id}/events | Paged events |
| GET | /runs/{run_id}/events/stream | SSE events |
| GET | /runs/{run_id}/segments | Partial previews |
| GET | /runs/{run_id}/artifacts | Final artifact manifest |
| POST | /runs/{run_id}/artifacts/{artifact_id}/download | Signed download URL |
Signed URLs grant temporary file access; do not write them to public logs. Download TTL defaults to 900 seconds and accepts 60–3600 seconds; expires_at gives the actual expiry.