Skip to main content
POST
/
test-runs
Create test run
curl --request POST \
  --url https://api.trymaitai.ai/api/v1/test-runs \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "test_set_id": 15,
  "description": "Evaluate gpt-4o-mini after finetune"
}
'
{
  "data": {
    "id": 31,
    "test_set_id": 15,
    "status": "RUNNING",
    "date_created": 1706200000
  }
}

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Body

application/json
test_set_id
integer
required
description
string
config
object

Response

201 - application/json

Create test run.

data
object

An execution of a test set against a model, producing per-request scores.