factory

Get Factory Workloads

Changed on

The team's Model Factory workloads feed (the squeue): leaf training runs, inference deployments and native Slurm jobs with owner, state, requested/allocated GPUs, per-source freshness and — for terminal states (completed/failed/all) — the completion stamp of the terminal record (ended_at), bounded and newest first.

The selected team_id must be a team the token's user is a member of; data of other teams is never returned. The default state window is running + queued. Windows that include terminal states read the terminal records (RFTRun/Job rows; the slurmdbd accounting read for native Slurm jobs) and are bounded to limit rows (default 50, max 200), newest first; since bounds them further by timestamp.

get/api/v1/factory/workloads

Request

  • Base URL
    https://api.primeintellect.ai
  • Auth
    HTTP bearer

Query parameters

team_idstring required

Team whose Model Factory fleet to read

workload_type'training' | 'inference' | 'slurm'

Limit rows to one workload type (legacy spelling; the frozen-contract type wins when both are sent)

type'training' | 'inference' | 'slurm'

Limit rows to one workload type (the frozen-contract spelling of the filter)

state'running' | 'queued' | 'completed' | 'failed' | 'all'

Limit rows to one normalized state, or 'all' (every mappable state); default is running + queued

sincestring date-time nullable

ISO-8601 bound: rows whose completion (terminal rows) or creation stamp is older are excluded

limitinteger nullable

Row bound (1..200); defaults to 200 for every window (the response carries truncated when matching rows exist beyond the page)

Response

Successful Response

schema_version1
as_ofstring date-time required
truncatedboolean

Changes