ℹ️ These docs are for the v2.0 version of Galileo. Documentation for v1.0 version can be found here.
curl --request POST \
--url https://api.galileo.ai/v2/projects/{project_id}/experiments \
--header 'Content-Type: application/json' \
--header 'Galileo-API-Key: <api-key>' \
--data '{
"name": "my_first_experiment"
}'
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "",
"project_id": "<string>",
"created_by": "<string>",
"task_type": 0,
"dataset": {
"dataset_id": "<string>",
"version_index": 123,
"name": "<string>"
},
"aggregate_metrics": {},
"aggregate_feedback": {},
"ranking_score": 123,
"rank": 123,
"winner": true,
"playground_id": "<string>",
"playground": {
"playground_id": "<string>",
"name": "<string>"
},
"prompt_run_settings": {
"logprobs": true,
"top_logprobs": 5,
"echo": false,
"n": 1,
"reasoning_effort": "medium",
"verbosity": "medium",
"deployment_name": "<string>",
"model_alias": "gpt-5-mini",
"temperature": 1,
"max_tokens": 1024,
"stop_sequences": [
"<string>"
],
"top_p": 1,
"top_k": 40,
"frequency_penalty": 0,
"presence_penalty": 0,
"tools": "<string>",
"tool_choice": "<string>",
"response_format": {}
},
"prompt_model": "<string>",
"prompt": {
"prompt_template_id": "<string>",
"version_index": 123,
"name": "<string>",
"content": "<string>"
},
"tags": {}
}
Create a new experiment for a project.
curl --request POST \
--url https://api.galileo.ai/v2/projects/{project_id}/experiments \
--header 'Content-Type: application/json' \
--header 'Galileo-API-Key: <api-key>' \
--data '{
"name": "my_first_experiment"
}'
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "",
"project_id": "<string>",
"created_by": "<string>",
"task_type": 0,
"dataset": {
"dataset_id": "<string>",
"version_index": 123,
"name": "<string>"
},
"aggregate_metrics": {},
"aggregate_feedback": {},
"ranking_score": 123,
"rank": 123,
"winner": true,
"playground_id": "<string>",
"playground": {
"playground_id": "<string>",
"name": "<string>"
},
"prompt_run_settings": {
"logprobs": true,
"top_logprobs": 5,
"echo": false,
"n": 1,
"reasoning_effort": "medium",
"verbosity": "medium",
"deployment_name": "<string>",
"model_alias": "gpt-5-mini",
"temperature": 1,
"max_tokens": 1024,
"stop_sequences": [
"<string>"
],
"top_p": 1,
"top_k": 40,
"frequency_penalty": 0,
"presence_penalty": 0,
"tools": "<string>",
"tool_choice": "<string>",
"response_format": {}
},
"prompt_model": "<string>",
"prompt": {
"prompt_template_id": "<string>",
"version_index": 123,
"name": "<string>",
"content": "<string>"
},
"tags": {}
}
Successful Response
The response is of type object
.
Was this page helpful?