> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trajectory.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Training Presets Route

> List named training presets. Pass a preset_id as `preset` when creating a training run; explicit options override the preset's values.



## OpenAPI

````yaml /openapi.json get /api/v1/train/presets
openapi: 3.1.0
info:
  title: Trajectory API
  version: 0.1.0
  x-trajectory-api-version: '2026-10-14'
  description: >-
    This contract is API version 2026-10-14. The optional Trajectory-API-Version
    header pins it, and tmp-contract is accepted as an alias. Requests without
    the header get this version. Version 2026-10-07 and the pre-launch legacy
    response formats are retired.
servers:
  - url: https://api.trajectory.ai
security: []
tags:
  - name: agents
    x-group: Agents
  - name: benchmarks
    x-group: Specs (benchmarks)
  - name: diagnostics
    x-group: Diagnostics
  - name: benchmark-ingestion
    x-group: Spec (benchmark) submissions
  - name: eval
    x-group: Evaluations
  - name: training
    x-group: Training
  - name: deployments
    x-group: Deployments
  - name: model-endpoints
    x-group: Model endpoints
  - name: inference
    x-group: Inference
  - name: trajectories
    x-group: Trajectories
  - name: artifacts
    x-group: Artifacts
  - name: telemetry
    x-group: Telemetry
  - name: supported-models
    x-group: Supported models
  - name: organizations
    x-group: Organizations
  - name: secrets
    x-group: Secrets
paths:
  /api/v1/train/presets:
    get:
      tags:
        - training
      summary: List Training Presets Route
      description: >-
        List named training presets. Pass a preset_id as `preset` when creating
        a training run; explicit options override the preset's values.
      operationId: listTrainingPresets
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrainingPresetsResponse'
        default:
          $ref: '#/components/responses/ApiErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    TrainingPresetsResponse:
      properties:
        presets:
          items:
            $ref: '#/components/schemas/TrainingPreset'
          type: array
          title: Presets
      type: object
      required:
        - presets
      title: TrainingPresetsResponse
    TrainingPreset:
      properties:
        preset_id:
          $ref: '#/components/schemas/TrainingPresetId'
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        options:
          $ref: '#/components/schemas/RunOptions'
          description: Run settings the preset applies before explicit options.
      type: object
      required:
        - preset_id
        - name
        - description
        - options
      title: TrainingPreset
    ApiErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/ApiErrorBody'
      required:
        - error
      title: ApiErrorEnvelope
      type: object
    TrainingPresetId:
      type: string
      enum:
        - single_turn
        - long_horizon_agentic
      title: TrainingPresetId
    RunOptions:
      properties:
        load_weights_only:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Load Weights Only
          description: >-
            Start a new run from the parent checkpoint's weights with fresh
            training state; load_optimizer, load_scheduler, and load_dataset
            carry over more of the parent's state. Defaults to false, which
            resumes the optimizer, LR schedule, and global step. With validation
            enabled, evaluate the starting policy, run validation when
            global_step % val_interval_steps == 0, and evaluate the final policy
            on normal completion. Resuming preserves the global step and
            validation cadence.
        load_optimizer:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Load Optimizer
          description: >-
            With load_weights_only, also load the parent's optimizer state and
            settings other than the learning rate.
        load_scheduler:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Load Scheduler
          description: >-
            With load_weights_only, also load the parent's learning rate and LR
            schedule, continuing the schedule from the parent's last step.
        load_dataset:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Load Dataset
          description: >-
            With load_weights_only, continue from the parent's dataset position.
            The dataset and batch settings must match the parent's.
        full_parameter:
          type: boolean
          title: Full Parameter
          description: >-
            Train every weight instead of a LoRA adapter. Supported for
            Qwen3.6-35B-A3B.
          default: false
        density_aware_training:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Density Aware Training
          description: >-
            Train each task at four output-token budgets, with group_size
            trajectories per budget. Turns on train_on_truncation, which must
            stay true except when resuming a checkpoint with its training state.
            batch_size sets the total number of task groups per batch; each
            budget counts as a separate group. Learn more:
            https://www.trajectory.ai/field-notes/intelligence-density
        algorithm:
          anyOf:
            - $ref: '#/components/schemas/TrainingAlgorithm'
            - type: 'null'
          description: >-
            Training algorithm; omit to preserve the model default. RLCD trains
            decision probabilities with Brier loss against logged outcome
            labels.
        train_on_truncation:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Train On Truncation
          description: >-
            Include trajectories that hit token or turn limits in training, with
            reward 0. Defaults to false, or true with density_aware_training;
            set to true to discourage reward hacking through truncated
            submissions.
        train_on_error:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Train On Error
          description: >-
            Train on errored trajectories, including execution errors, grading
            errors, and missing grades, with reward 0.
        train_on_timeout:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Train On Timeout
          description: >-
            Include timed-out trajectories in training, with reward 0. Defaults
            to false; set to true to discourage reward hacking through timed-out
            submissions.
        val_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Val Enabled
          description: Enable validation during training.
        val_interval_steps:
          anyOf:
            - type: integer
              maximum: 100
              minimum: 0
            - type: 'null'
          title: Val Interval Steps
          description: Training steps between validations; 0 disables validation.
        val_num_tasks:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Val Num Tasks
          description: >-
            Maximum distinct tasks per evaluation. Standalone evals run every
            task in the selected scope when omitted.
        val_trajectories_per_task:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Val Trajectories Per Task
          description: >-
            Number of trajectories generated for each task in a validation
            round.
        val_max_concurrent_trajectories:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Val Max Concurrent Trajectories
          description: Maximum number of validation trajectories running concurrently.
        val_final_wait_timeout_seconds:
          anyOf:
            - type: number
              minimum: 0
            - type: 'null'
          title: Val Final Wait Timeout Seconds
          description: >-
            Maximum seconds to wait for outstanding validation rounds at
            training end.
        learning_rate:
          anyOf:
            - type: number
              maximum: 0.01
              minimum: 1.e-8
            - type: 'null'
          title: Learning Rate
          description: Base optimizer learning rate.
        lr_warmup_steps:
          anyOf:
            - type: integer
              maximum: 100000
              minimum: 0
            - type: 'null'
          title: Lr Warmup Steps
          description: >-
            Reported training steps used for warmup, including skipped optimizer
            updates.
        lr_hold_steps:
          anyOf:
            - type: integer
              maximum: 100000
              minimum: 0
            - type: 'null'
          title: Lr Hold Steps
          description: >-
            Training steps to hold the base rate after warmup, including skipped
            updates, before cosine decay.
        lr_min_ratio:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Lr Min Ratio
          description: Cosine decay floor as a fraction of the base learning rate.
        reasoning_effort:
          anyOf:
            - type: string
              enum:
                - 'off'
                - 'on'
                - minimal
                - low
                - medium
                - high
                - xhigh
                - max
            - type: 'null'
          title: Reasoning Effort
          description: >-
            Model reasoning effort. null selects the lowest supported thinking
            level; off disables thinking where supported. Levels: minimal, low,
            medium, high, xhigh, max, depending on the model. Qwen3.5-4B,
            Qwen3.6-35B-A3B, Qwen3.5-397B-A17B, and
            Nemotron-3.5-Lightning-30B-A3B support only on/off; null selects on.
        temperature:
          anyOf:
            - type: number
              maximum: 2
              minimum: 0
            - type: 'null'
          title: Temperature
          description: Sampling temperature; defaults to 1.0.
        top_p:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Top P
          description: Nucleus sampling probability; null preserves the model default.
        top_k:
          anyOf:
            - type: integer
              minimum: -1
            - type: 'null'
          title: Top K
          description: >-
            Sample from the top k tokens; -1 disables the limit, and null
            preserves the model default.
        val_reasoning_effort:
          anyOf:
            - type: string
              enum:
                - 'off'
                - 'on'
                - minimal
                - low
                - medium
                - high
                - xhigh
                - max
            - type: 'null'
          title: Val Reasoning Effort
          description: >-
            Validation reasoning effort. null inherits training defaults.
            Supports the same model-specific levels and on/off options as
            reasoning_effort.
        val_temperature:
          anyOf:
            - type: number
              maximum: 2
              minimum: 0
            - type: 'null'
          title: Val Temperature
          description: Validation sampling temperature. null inherits training defaults.
        val_top_p:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Val Top P
          description: >-
            Validation nucleus sampling probability. null inherits training
            defaults.
        val_top_k:
          anyOf:
            - type: integer
              minimum: -1
            - type: 'null'
          title: Val Top K
          description: >-
            Validation top-k token limit. null inherits training defaults; -1
            disables it.
        val_max_output_tokens_per_turn:
          anyOf:
            - type: integer
              maximum: 262144
              minimum: 1
            - type: 'null'
          title: Val Max Output Tokens Per Turn
          description: >-
            Maximum output tokens per turn in each validation trajectory. null
            inherits training defaults.
        val_max_output_tokens_per_trajectory:
          anyOf:
            - type: integer
              maximum: 2097152
              minimum: 1
            - type: 'null'
          title: Val Max Output Tokens Per Trajectory
          description: >-
            Maximum output tokens across one validation trajectory. null
            inherits training defaults.
        val_max_turns_per_trajectory:
          anyOf:
            - type: integer
              maximum: 1000
              minimum: 1
            - type: 'null'
          title: Val Max Turns Per Trajectory
          description: >-
            Maximum agent and environment turns per validation trajectory. null
            inherits training defaults.
        val_trajectory_timeout_seconds:
          anyOf:
            - type: integer
              maximum: 36000
              minimum: 1
            - type: 'null'
          title: Val Trajectory Timeout Seconds
          description: >-
            Maximum execution seconds per validation trajectory, including
            grading. null inherits training defaults.
        num_steps:
          anyOf:
            - type: integer
              maximum: 100000
              minimum: 1
            - type: 'null'
          title: Num Steps
          description: Number of optimizer steps to run.
        batch_size:
          anyOf:
            - type: integer
              maximum: 256
              minimum: 1
            - type: 'null'
          title: Batch Size
          description: Eligible task-instance groups per optimizer update.
        group_size:
          anyOf:
            - type: integer
              maximum: 32
              minimum: 1
            - type: 'null'
          title: Group Size
          description: >-
            Trajectories generated for each training instance; GSPO and GRPO
            require at least 2.
        shuffle_tasks:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Shuffle Tasks
          description: >-
            Shuffle training tasks each epoch. Defaults to true; false starts
            tasks in upload order, with appended tasks after earlier ones, while
            each batch still takes groups as they finish. Benchmarks uploaded
            before upload order was recorded must be re-uploaded.
        priority_trait:
          anyOf:
            - $ref: '#/components/schemas/PriorityTrait'
            - type: 'null'
          description: Trait used to prioritize completed training groups.
        priority_aggregation:
          anyOf:
            - $ref: '#/components/schemas/PriorityAggregation'
            - type: 'null'
          description: Aggregation used to score a group for batch-selection priority.
        min_trajectories_per_group:
          anyOf:
            - type: integer
              maximum: 32
              minimum: 1
            - type: 'null'
          title: Min Trajectories Per Group
          description: >-
            Minimum eligible trajectories per training group. null uses half of
            group_size, rounded down.
        max_concurrent_trajectories:
          anyOf:
            - type: integer
              maximum: 1024
              minimum: 1
            - type: 'null'
          title: Max Concurrent Trajectories
          description: >-
            Maximum active training trajectories. null uses batch_size ×
            group_size × 2, allowing 2× batch oversampling for throughput and
            asynchronous RL. Recommended: set above batch_size × group_size to
            keep collection ahead of training.
        max_staleness:
          anyOf:
            - type: integer
              maximum: 100
              minimum: 0
            - type: 'null'
          title: Max Staleness
          description: >-
            Maximum optimizer steps a training rollout’s starting policy may
            trail the current policy. Older in-flight rollouts are cancelled and
            older completed rollouts are discarded; 0 trains only on rollouts
            started from the current policy.
        train_on_all_fail:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Train On All Fail
          description: >-
            Train on groups whose eligible rewards are all at or below zero;
            false excludes them.
        train_on_all_pass:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Train On All Pass
          description: >-
            Train on groups whose eligible rewards are all at or above one;
            false excludes them.
        train_on_zero_advantage:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Train On Zero Advantage
          description: >-
            Train on groups with identical eligible rewards; false excludes
            them.
        trajectory_timeout_seconds:
          anyOf:
            - type: integer
              maximum: 36000
              minimum: 1
            - type: 'null'
          title: Trajectory Timeout Seconds
          description: >-
            Maximum execution seconds per trajectory, including grading.
            Excludes queueing and sandbox startup. Collection timeouts must
            cover this budget.
        batch_timeout_seconds:
          anyOf:
            - type: integer
              maximum: 38400
              minimum: 1
            - type: 'null'
          title: Batch Timeout Seconds
          description: >-
            Wall-clock threshold for logging and reporting slow training batch
            collection. Collection continues after the threshold and reports
            again after each additional interval.
        max_output_tokens_per_turn:
          anyOf:
            - type: integer
              maximum: 262144
              minimum: 1
            - type: 'null'
          title: Max Output Tokens Per Turn
          description: >-
            Maximum output tokens per model response. null uses the model’s
            maximum, bounded by remaining context.
        max_output_tokens_per_trajectory:
          anyOf:
            - type: integer
              maximum: 2097152
              minimum: 1
            - type: 'null'
          title: Max Output Tokens Per Trajectory
          description: >-
            Maximum output tokens across one trajectory, including after context
            compaction. null uses the model’s maximum supported context length.
        max_turns_per_trajectory:
          anyOf:
            - type: integer
              maximum: 1000
              minimum: 1
            - type: 'null'
          title: Max Turns Per Trajectory
          description: Maximum agent and environment turns allowed in each trajectory.
        image_max_pixels:
          anyOf:
            - type: integer
              maximum: 16777216
              minimum: 1
            - type: 'null'
          title: Image Max Pixels
          description: >-
            Downscale input images above this many pixels, keeping their aspect
            ratio, before the model reads them. Fewer pixels cost fewer image
            tokens. null uses the model's default; a checkpoint evaluation keeps
            the cap its training run used unless this is set.
        shuffle:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Shuffle
          description: >-
            Shuffle training tasks each epoch; false follows benchmark upload
            order.
      additionalProperties: false
      type: object
      title: RunOptions
    ApiErrorBody:
      properties:
        type:
          $ref: '#/components/schemas/ErrorType'
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        param:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Param
        doc_url:
          type: string
          title: Doc Url
        context:
          additionalProperties: true
          title: Context
          type: object
      required:
        - type
        - code
        - message
        - doc_url
        - context
      title: ApiErrorBody
      type: object
    TrainingAlgorithm:
      type: string
      enum:
        - gspo
        - grpo
        - importance_sampling
        - score_centering
        - rlcd
      title: TrainingAlgorithm
    PriorityTrait:
      type: string
      enum:
        - iid
        - least_stale
        - most_stale
        - longest_tokens
        - longest_turns
        - reward
      title: PriorityTrait
    PriorityAggregation:
      type: string
      enum:
        - avg
        - max
        - min
        - binary_variance
        - fractional_variance
      title: PriorityAggregation
    ErrorType:
      enum:
        - invalid_request_error
        - authentication_error
        - permission_error
        - conflict_error
        - billing_error
        - rate_limit_error
        - dependency_error
        - api_error
      title: ErrorType
      type: string
  responses:
    ApiErrorResponse:
      description: >-
        Common API error. Possible codes: `authentication_required`,
        `permission_denied`, `validation_error`, `rate_limited`,
        `internal_error`, `service_unavailable`.
      headers:
        X-Request-ID:
          $ref: '#/components/headers/RequestId'
        Trajectory-Should-Retry:
          $ref: '#/components/headers/TrajectoryShouldRetry'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiErrorEnvelope'
  headers:
    RequestId:
      schema:
        type: string
    TrajectoryShouldRetry:
      schema:
        type: boolean
    RetryAfter:
      schema:
        type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Organization API key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.