curl --request POST \
--url https://api.helicone.ai/v1/experiment \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{
"datasetId": "<string>",
"promptVersion": "<string>",
"model": "<string>",
"providerKeyId": "<string>",
"meta": "<any>"
}'
{
"data": {
"experimentId": "<string>"
}
}
Create a new experiment to test and compare different prompts
curl --request POST \
--url https://api.helicone.ai/v1/experiment \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{
"datasetId": "<string>",
"promptVersion": "<string>",
"model": "<string>",
"providerKeyId": "<string>",
"meta": "<any>"
}'
{
"data": {
"experimentId": "<string>"
}
}
eu.api.helicone.ai
instead of
api.helicone.ai
.Ok
The response is of type object
.
Was this page helpful?