---
title: "POST /model-hub/test-evaluation/"
method: POST
path: "/model-hub/test-evaluation/"
tags: ["model-hub"]
---

# POST /model-hub/test-evaluation/

`POST /model-hub/test-evaluation/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/test-evaluation/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- TestEvalTemplate
  - `config` object, required
  - `model` string, nullable
  - `eval_tags` string[]
  - `criteria` string, nullable
  - `multi_choice` boolean
  - `choices` object, nullable
  - `input_data_types` object
  - `name` string, required
  - `description` string, nullable
  - `output_type` string, required
  - `check_internet` boolean
  - `required_keys` string[]
  - `template_type` string
  - `eval_type_id` string, nullable
  - `template_id` string, uuid, nullable
  - `eval_type` string, nullable
  - `error_localizer` boolean
  - `reason_column` boolean
  - `optional_keys` string[]
  - `variable_keys` object: Any valid JSON value.
  - `run_prompt_column` boolean
  - `template_name` string, nullable
  - `mapping` object
  - `output` string, nullable
  - `config_params_desc` object
  - `config_params_option` object

## Response `200`

OK

- EvalExecutionResponse
  - `status` boolean, required
  - `result` EvalExecutionResponseResult, required
    - `output` object
    - `result` object
    - `reason` string
    - `score` object, nullable
    - `metadata` object, nullable
    - `log_id` string, uuid
    - `error_localizer` object
    - `error_details` object

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
