---
title: "Validate Model Instance"
method: POST
path: "/v1/model-instances/test"
tags: ["v1", "protected", "model-instances"]
---

# Validate Model Instance

`POST /v1/model-instances/test`

Test a model instance configuration before creating it.

## Request body

- ModelInstanceTestRequest
  - `model_spec_id` string, uuid, required
  - `provider_config_id` string, uuid, required
  - `test_message` string, nullable

## Response `200`

Successful Response

- ModelInstanceTestResponse
  - `cost` number, nullable
  - `error_type` string, nullable
  - `message` string, required
  - `model_name` string, nullable
  - `provider_type` string, nullable
  - `response_content` string, nullable
  - `success` boolean, required
  - `tokens_used` integer, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agentarea/apis/agentarea-api.md) · [All operations](https://skmtc.net/agentarea/apis/agentarea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agentarea/agentarea-api/revisions/082e677c141c/schema)
