---
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` string, 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

## Changes

- **2026-09-25** `86958030d9bc` — 2 breaking
  - response property `cost` list-of-types was widened by adding types `string` to media type `application/json` of response `200`
  - the `cost/anyOf[subschema #1]/` response's property type changed from `number` to `string` for status `200`

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/model-instances/test/post.md)

---

[API](https://skmtc.dev/agentarea/apis/agentarea-api.md) · [All operations](https://skmtc.dev/agentarea/apis/agentarea-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentarea/apis/agentarea-api/revisions/ebd031ab895b?raw)
