pixano_inference.schemas.v1
/v1 wire schemas shared by the server routes and the client (framework-free).
Most capability requests/responses are the camelCase-aliased models in
:mod:pixano_inference.schemas.inference. This module adds the shapes that differ from the
internal model I/O — the frontend's nested keyframes[].prompts tracking request, and the
admin/job envelopes. It imports no web framework, so the client depends on it directly.
DeployModelRequest(**data)
Bases: _BaseModel
Admin request to deploy a model at runtime (mirrors a config-file ModelConfig).
Source code in pydantic/main.py
JobStatus(**data)
Bases: _BaseModel
Status envelope for an asynchronous job.
Attributes:
| Name | Type | Description |
|---|---|---|
job_id |
str
|
Identifier of the job, from the submit response. |
status |
Literal['running', 'completed', 'failed', 'canceled']
|
|
detail |
str | None
|
Why the job failed or was canceled, when it did. |
data |
TrackingOutput | None
|
The result of a completed job, |
metadata |
dict[str, Any]
|
Metadata of the model that ran the job. |
timestamp |
datetime | None
|
When the job was submitted or, once terminal, when it ended. |
processing_time |
float
|
Seconds from submission to the terminal state, |
Source code in pydantic/main.py
ModelStatusInfo(**data)
Bases: _BaseModel
Model listing entry with its live Serve status.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
Deployment name, the |
capability |
str
|
Capability of the model, which fixes its route. |
model_class |
str | None
|
Registered class name of the model. |
model_path |
str | None
|
Checkpoint id or location, when the model has one. |
status |
str
|
Live Ray Serve status of the deployment. |
interface |
ModelInterface | None
|
How the model is called, as the model declares it (see
:mod: |
Source code in pydantic/main.py
TrackingKeyframeV1(**data)
Bases: _BaseModel
A keyframe with nested prompts, matching the Pixano frontend contract.
Frame indices are 0-based relative to the submitted media window.
Source code in pydantic/main.py
TrackingPrompts(**data)
Bases: _BaseModel
Prompt payload for a single keyframe (points/box XOR mask).
Source code in pydantic/main.py
TrackingRequestV1(**data)
Bases: BaseRequest
Video-tracking request with nested keyframe prompts.
A prompted request gives objects_ids and one keyframe per object. A prompt-free request
(tracking by detection) gives only the video, and optionally classes and box_threshold.
Media is passed by value (URL/base64/frame list/path within an allowed media root); dataset-reference resolution belongs in the caller (the Pixano backend).
Source code in pydantic/main.py
to_input()
Flatten the nested keyframes onto the internal :class:TrackingInput.