dots.v2.genAi.model_evaluation_runs.post()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.genAi.model_evaluation_runs.post(body: ApiCreateModelEvaluationRunInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiCreateModelEvaluationRunOutput>Description
To create a model evaluation run, send a POST request to /v2/genai/model_evaluation_runs.
Parameters
candidateInferenceConfigobject optionalInference configuration for the candidate model during evaluation.
The output token limit is set automatically and cannot be configured.Show child properties
reasoningEffortstring optionalExample:
lowReasoning effort for reasoning-capable models (e.g. "low", "medium",
"high"). Validated against the candidate model's supported values; a model
that advertises none rejects this field.stopTokenstring optionalExample:
example stringsystemPromptstring optionalExample:
example stringtemperaturenumber optionalExample:
123
candidateModelNamestring optionalExample:
example nameModel slug used to call the candidate model API.
For dedicated inference, this is the model slug from the deployment.
For serverless, this should match the model's internal name.candidateModelSourcestring optionalWhether the candidate is a served model (serverless platform, a dedicated
deployment, or a model router) or an OHS-hosted agent config.candidateModelUuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000UUID of the candidate model to evaluate.
datasetUuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000UUID of the dataset to use for evaluation.
epochsinteger optionalExample:
1How many times each dataset row is evaluated. Defaults to 1, maximum 10.
When more than 1, the results show how consistent the model is across
attempts (avg@k, pass@k, cons@k). Each extra attempt makes the run take
longer. Not saved in presets.evalPresetUuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000judgeModelUuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000UUID of the judge model used to score responses.
metricUuidsarray of strings optionalExample:
["example string"]UUIDs of metrics to evaluate (selected from ListModelEvaluationMetrics).
namestring optionalExample:
example namepresetNamestring optionalExample:
example namepresetSaveSectionsarray of strings optionalExample:
["PRESET_SAVE_SECTION_CANDIDATE", "PRESET_SAVE_SECTION_METRICS"]Which sections of this run's resolved configuration to persist as a
reusable preset. Each selected section saves only its own fields; the
remaining sections stay empty on the preset and must be supplied inline
on future runs that reference it. Empty means do not save a preset
(unless the deprecatedsave_as_presetboolean is true, in which case
all sections are saved). Ignored wheneval_preset_uuidis set. Usepreset_nameto label the saved preset.saveAsPresetboolean optionalExample:
trueDeprecated: use
preset_save_sections. Whentrueandpreset_save_sectionsis empty, all five sections of the resolved
configuration are saved as a reusable preset (legacy behavior). Ignored
wheneval_preset_uuidis set.sourcestring optionalExample:
example stringSource of the run creation (api, sdk, cli).
starMetricobject optionalShow child properties
metricUuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000namestring optionalExample:
example namesuccessThresholdnumber optionalExample:
123The success threshold for the star metric.
This is a value that the metric must reach to be considered successful.successThresholdPctinteger optionalExample:
123The success threshold for the star metric.
This is a percentage value between 0 and 100.
Request Sample
Response Example
More Information
See /v2/gen-ai/model_evaluation_runs in the API reference for additional detail on responses, headers, parameters, and more.