Skip to main content
POST
Resume Dedicated Run

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

run_id
string
required

Body

application/json

Wire payload for resuming a PAUSED dedicated run. Everything else comes from the paused run; secrets are sent again because the platform drops them once a run deploys.

wandbApiKey
string | null

W&B key. On the PENDING fast-path it's materialised straight into the run's k8s Secret. On the QUEUED path it's stashed AES-encrypted on the RFTRun row so the drainer can rebuild the same Secret at promotion time without re-prompting.

hfToken
string | null

HF token for gated/private model downloads. Same storage rules as wandbApiKey above.

secrets
Secrets · object | null

Arbitrary env-var secrets projected into trainer / inference / orchestrator / env-server pods (parity with the LoRA path). Keys must be uppercase POSIX env-var names (e.g. 'OPENAI_API_KEY'); WANDB_API_KEY / HF_TOKEN / PRIME_API_KEY are reserved — use the dedicated fields for those. Materialised into the per-run k8s Secret. Held encrypted on the RFTRun row only for the sync -> dispatch-task hop, then cleared once the run deploys (or on stop / delete / rollback); never returned by any read endpoint.

gpuType
string | null

GPU type to resume on. Omit for the paused run's type.

imageTag
string | null

prime-rl image tag to resume with. Omit for the paused run's image.

Response

Successful Response

runId
string
required
jobId
string
required
tokenValue
string
required

PRIME_API_KEY for this run. Returned once — the platform stores only the token id.

onDemand
boolean
default:false

True when this run landed on billed shared capacity rather than a cluster the caller holds an allocation on. Derived at dispatch, not requested.

gpuType
string | null

GPU type the run was placed on.

pricePerGpuHour
number | null

USD per GPU-hour this run will be charged, discount applied and frozen for its lifetime. NULL on reserved capacity, which bills nothing per-hour. Echoed so a caller who named no gpuType sees the rate now rather than at invoice time.

estimatedCostPerHour
number | null

price_per_gpu_hour multiplied by the run's GPU count.

isBeta
boolean
default:false

True when this run used on-demand capacity, which is in beta. False on the reserved path, which is GA.