Creates a new experiment with workflows. Supports three workflow types:
For custom workflows, the system creates placeholder traces that you update with your results. For built-in workflows (prompt/completion), execution starts automatically in the background.
All endpoints require API key authentication:
name string required: The name of the experiment.
description string: Description of the experiment.
dataset_id string required: The ID of the dataset to run the experiment on.
workflows array required: List of workflow configurations.
Properties
type string required: Type of workflow. Options: custom, completion, or prompt.
custom: Submit your own workflow results
completion: Direct LLM completions
prompt: Load and render Jinja2 prompt templates
config object: Configuration for the workflow. Structure depends on workflow type:Custom Workflow Config
allow_submission boolean: Allow trace updates (default: true).
timeout_hours number: Submission timeout in hours.
Completion Workflow Config
model string required: Model identifier (e.g., “gpt-4o-mini”).
temperature number: Sampling temperature (0-2, default: 1.0).
max_tokens integer: Maximum completion tokens (default: 150).
top_p number: Nucleus sampling (0-1, default: 1.0).
frequency_penalty number: Frequency penalty (-2 to 2, default: 0).
presence_penalty number: Presence penalty (-2 to 2, default: 0).
stop string or array: Stop sequences.
response_format object: Response format (e.g., {"type": "json_object"}).
tools array: Function calling tools.
tool_choice string or object: Tool choice strategy.
reasoning_effort string: Reasoning effort for o1 models.
Prompt Workflow Config
prompt_id string required: Prompt identifier to load and render.
evaluator_slugs array: List of evaluator slugs to run on the experiment results.
✅ Valid Combinations:
❌ Invalid Combinations:
Chaining (Built-in Only): When you configure multiple built-in workflows, they execute in sequence - the output of one becomes the input of the next.
API key authentication. Get your API key from https://platform.respan.ai/platform/api-keys