Create an experiment
Create a new experiment. Empty experiments are not allowed.
An experiment belongs to a space and may optionally be associated with a dataset.
Experiments are composed of “runs”. Each experiment run (JSON object)
must include an output field containing the task’s output. When the
experiment is associated with a dataset, each run must also include an
example_id referencing an example in that dataset.
Payload Requirements
- Provide exactly one of
dataset_idorspace_id. - The
namemust be unique within the dataset it’s associated with, or within the space when it isn’t associated with a dataset, and must not contain double quotes (") or backslashes (\). - Provide at least one run in
experiment_runs. - Each run must include:
output— model/task output for the runexample_id— the ID of an existing example in the dataset, required only when the experiment is associated with a dataset- You may include any additional fields per run that can be used for
analysis or filtering. For example:
model,latency_ms,temperature,prompt,tool_calls, etc.
Authorizations
Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format
Body
Body containing experiment creation parameters
Experiment creation parameters with an initial set of runs.
An experiment belongs to a space and may optionally be associated with a dataset. Provide exactly one of:
dataset_id— associate the experiment with a dataset; it's created in that dataset's space, and its runs may reference the dataset's examples viaexample_id.space_id— the space to create the experiment in, when it isn't associated with a dataset.
Providing both, or neither, is a validation error.
Name of the experiment. Must not contain double quotes (") or
backslashes (\).
1^[^"\\]*$Array of experiment run data
ID of the dataset to associate the experiment with. Provide space_id instead when the experiment isn't associated with a dataset.
ID of the space to create the experiment in. Provide instead of dataset_id.
Response
An experiment object
Experiments combine a dataset (example inputs/expected outputs), a task (the function that produces model outputs), and one or more evaluators (code or LLM judges) to measure performance. Each run is stored independently so you can compare runs, track progress, and validate improvements over time. See the full definition on the Experiments page.
Use an experiment to run tasks on a dataset, attach evaluators to score outputs, and compare runs to confirm improvements.
Unique identifier for the experiment
Name of the experiment
Unique identifier for the space this experiment belongs to
Timestamp for when the experiment was created
Timestamp for the last update of the experiment
Unique identifier for the dataset associated with this experiment. Null if the experiment isn't associated with a dataset.
Unique identifier for the dataset version associated with this experiment. Null if the experiment isn't associated with a dataset.
Unique identifier for the experiment traces project this experiment belongs to (if it exists)
Identifier (base64) of the agent integration that backs this experiment, as returned by the integrations API. Null for non-agent experiments (for example, SDK or Playground experiments).