POST/v1/training/preview

Preview a training run

Requires training:write. Get the configuration, task split and estimated cost without starting a run. Review configuration and estimate. When launchable is true, accept the settings and cost by adding config_sha256 as approved_config_sha256 to the same request.

Authentication: Bearer API key in the Authorization header

Request body

  • approved_config_sha256string | null

    Omit 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 | null

    For supported SDPO recipes only. GRPO uses environment_version_ids instead.

  • project_idstringrequired

    The custom model ID returned by /v1/custom-models.

  • recipe_keystringrequired

    A supported recipe ID from GET /v1/training/recipes.

  • recipe_versioninteger

    Version of the training recipe to use.

    Default: 1
  • settingsobjectrequired

    Run settings. See the selected recipe for supported values.

    One of

    object

    • eval_interval_stepsintegerrequired

      Optimizer updates between held-out evaluations.

    • eval_stop_thresholdnumber | null

      Optional held-out score threshold for early stopping.

    • eval_task_countintegerrequired

      Distinct held-out tasks, excluded from training.

    • max_context_tokensintegerrequired

      Maximum context tokens. Must fit within the selected recipe's limit.

    • max_credit_nano_usdintegerrequired

      Charge ceiling in integer nano-USD; 1 USD equals 1,000,000,000 nano-USD.

    • max_optimizer_stepsintegerrequired

      Maximum optimizer updates.

    • max_output_tokens_per_turnintegerrequired

      Maximum output tokens for each agent turn.

    • max_turnsintegerrequired

      Maximum agent turns per trajectory.

    • max_wall_secondsintegerrequired

      Maximum work time in seconds.

    • rollout_concurrencyintegerrequired

      Maximum concurrent rollouts.

    • seedinteger

      Seed for the deterministic train/eval task split.

      Default: 0
    • tasks_per_stepintegerrequired

      Task groups collected before mini-batching.

    object

    • batch_sizeinteger
      Default: 64
    • checkpoint_intervalinteger
      Default: 5
    • max_credit_nano_usdinteger
      Default: 100000000000
    • max_optimizer_stepsinteger
      Default: 50
    • max_output_tokensinteger
      Default: 16384
    • max_student_input_tokensinteger
      Default: 131072
    • max_teacher_input_tokensinteger
      Default: 147456
    • max_wall_secondsinteger
      Default: 14400
    • seedinteger
      Default: 20261115
    • trackio_space_idstring | null
  • source_refstringrequired

    A unique reference for a run in your organization. Reuse it only when retrying the same request.

Responses

  • 200

    Success. Example response excerpt.

  • 422

    Invalid request.

    Response
    • detailarray<object>
      detail
      • ctxobject
      • inputany
      • locarray<string | integer>required
      • msgstringrequired
      • typestringrequired

Request

curl -X POST 'https://api.staging.experientiallabs.ai/v1/training/preview' \
  -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
  }
}'

Response

{
  "config_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "configuration": {
    "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
    }
  },
  "launchable": false,
  "unavailable_reason": "No available allocation",
  "estimate": null
}

https://api.staging.experientiallabs.ai/v1/training/preview