/v1/trainingLaunch a training run
Requires training:write. Submit the same request as preview with its approved_config_sha256. project_id is the custom model ID. Retrying with the same source_ref and body returns the same run. Changed input returns 409 source_ref_conflict. Missing approval returns config_approval_required; an outdated preview returns config_approval_stale. If no GPUs are available, the API returns allocation_unavailable. The response contains the run directly.
Authentication: Bearer API key in the Authorization header
Request body
approved_config_sha256string | nullOmit for preview. For launch, use config_sha256 from the reviewed preview without changing the request.
environment_version_idsarray<string>Ready Harbor snapshot IDs for a GRPO recipe.
feedback_dataset_idstring | nullFor supported SDPO recipes only. GRPO uses environment_version_ids instead.
project_idstringrequiredThe custom model ID returned by /v1/custom-models.
recipe_keystringrequiredA supported recipe ID from GET /v1/training/recipes.
recipe_versionintegerVersion of the training recipe to use.
settingsobjectrequiredRun settings. See the selected recipe for supported values.
One of
object
eval_interval_stepsintegerrequiredOptimizer updates between held-out evaluations.
eval_stop_thresholdnumber | nullOptional held-out score threshold for early stopping.
eval_task_countintegerrequiredDistinct held-out tasks, excluded from training.
max_context_tokensintegerrequiredMaximum context tokens. Must fit within the selected recipe's limit.
max_credit_nano_usdintegerrequiredCharge ceiling in integer nano-USD; 1 USD equals 1,000,000,000 nano-USD.
max_optimizer_stepsintegerrequiredMaximum optimizer updates.
max_output_tokens_per_turnintegerrequiredMaximum output tokens for each agent turn.
max_turnsintegerrequiredMaximum agent turns per trajectory.
max_wall_secondsintegerrequiredMaximum work time in seconds.
rollout_concurrencyintegerrequiredMaximum concurrent rollouts.
seedintegerSeed for the deterministic train/eval task split.
tasks_per_stepintegerrequiredTask groups collected before mini-batching.
object
batch_sizeintegercheckpoint_intervalintegermax_credit_nano_usdintegermax_optimizer_stepsintegermax_output_tokensintegermax_student_input_tokensintegermax_teacher_input_tokensintegermax_wall_secondsintegerseedintegertrackio_space_idstring | null
source_refstringrequiredA unique reference for a run in your organization. Reuse it only when retrying the same request.
Responses
201Success. Example response excerpt.
422Invalid request.
Response
detailarray<object>detail
ctxobjectinputanylocarray<string | integer>requiredmsgstringrequiredtypestringrequired
Request
curl -X POST 'https://api.staging.experientiallabs.ai/v1/training' \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"source_ref": "terminal_grpo_001",
"project_id": "00000000-0000-4000-8000-000000000001",
"environment_version_ids": [
"00000000-0000-4000-8000-000000000004"
],
"recipe_key": "async-grpo-lora-qwen35-9b-64k-r128",
"recipe_version": 1,
"settings": {
"tasks_per_step": 32,
"max_optimizer_steps": 50,
"max_turns": 32,
"max_output_tokens_per_turn": 8192,
"max_context_tokens": 65536,
"eval_interval_steps": 5,
"eval_task_count": 32,
"rollout_concurrency": 16,
"max_wall_seconds": 21600,
"max_credit_nano_usd": 100000000000,
"seed": 20261115
},
"approved_config_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}'Response
{
"id": "00000000-0000-4000-8000-000000000005",
"project_id": "00000000-0000-4000-8000-000000000001",
"source_ref": "terminal_grpo_001",
"status": "queued"
}https://api.staging.experientiallabs.ai/v1/training