---
title: "Tests a runtime LLM connection (admin)."
method: POST
path: "/llm-registry/admin/runtime-models/test"
tags: ["LLM Registry"]
---

# Tests a runtime LLM connection (admin).

`POST /llm-registry/admin/runtime-models/test`

## Request

- Base URL: `https://h2ogpte.genai.h2o.ai/api/v1`
- URL: `https://h2ogpte.genai.h2o.ai/api/v1/llm-registry/admin/runtime-models/test`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/h2o/apis/h2ogpte-rest-api/docs/llm-registry/admin/runtime-models/test/post.ts> (a function with typed inputs; its response is checked against the schema)

Validates a model configuration and asks core to probe it (a non-caching, non-persisting metadata round-trip). No registry write occurs. Applies the same display_name rule as create, so a configuration the create path would refuse never reports a successful test. Admin only.

## Request body

- object

## Response `200`

Successful operation

- object

## Other responses

- `400`: Bad request
- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden
- `default`: Unexpected error

---

[API](https://skmtc.dev/h2o/apis/h2ogpte-rest-api.md) - [All operations](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/revisions/a82a117320f4?raw)
