---
title: "Prepare Local Validation"
method: POST
path: "/api/v1/training/runs/prepare"
tags: ["training"]
---

# Prepare Local Validation

`POST /api/v1/training/runs/prepare`

## Request

- Base URL: `https://api.primeintellect.ai`
- URL: `https://api.primeintellect.ai/api/v1/training/runs/prepare`
- Auth: HTTP bearer

Resolve the default/selected runtime for local CLI config validation.

No run, run token, GPU allocation, volume or deployment is created.
The result is metadata, not authorization to submit a compiled artifact.

## Request body

- PrepareLocalValidationRequest
  - `mode` 'rl' | 'sft'
  - `teamId` string, nullable
  - `imageTag` string, nullable
  - `sourceRef` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `401`: Authorization failed
- `422`: Invalid request data

## Changes

> 49 revisions in range; 1 not diffed.

- **2026-10-23** `7956ca2b7597`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/primeintellect/apis/pi-api/changes/api/v1/training/runs/prepare/post.md)

---

[API](https://skmtc.dev/primeintellect/apis/pi-api.md) - [All operations](https://skmtc.dev/primeintellect/apis/pi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/primeintellect/apis/pi-api/revisions/7f032a9306b0?raw)
