Skip to main content
POST
/
model-hub
/
eval-playground
/
Run evaluation in playground
curl --request POST \
  --url https://api.futureagi.com/model-hub/eval-playground/ \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --header 'X-Secret-Key: <api-key>' \
  --data '{
  "template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "mapping": {
    "input": "sample input text",
    "expected_output": "expected result"
  }
}'
{
  "status": true,
  "result": {},
  "execution_time": 123
}

Authorizations

X-Api-Key
string
header
required

API Key for authentication. Click here to access API Key

X-Secret-Key
string
header
required

Secret Key for authentication. Click here to access Secret Key

Body

application/json
template_id
string<uuid>
required

ID of the evaluation template to test

mapping
object
required

Input data mapping for the evaluation

Example:
{
"input": "sample input text",
"expected_output": "expected result"
}
model
string

Optional LLM model override

kb_id
string<uuid> | null

Optional knowledge base ID

error_localizer
boolean
default:false

Enable error localization

input_data_types
object

Data types for input mapping

Response

Evaluation executed successfully

status
boolean
result
object

Evaluation result

execution_time
number

Execution time in milliseconds