---
title: "POST /api/v1/model-providers/{providerId}/validate"
method: POST
path: "/api/v1/model-providers/{providerId}/validate"
tags: ["Model Providers"]
---

# POST /api/v1/model-providers/{providerId}/validate

`POST /api/v1/model-providers/{providerId}/validate`

## Path parameters

- `providerId` string, required

## Request body

- object
  - `apiKey` string
  - `baseUrl` string

## Response `200`

Validate model provider credentials

- object
  - `valid` boolean, required
  - `models` string[]
  - `error` string

---

[API](https://skmtc.net/nexu-io/apis/nexu-controller-api.md) · [All operations](https://skmtc.net/nexu-io/apis/nexu-controller-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nexu-io/nexu-controller-api/versions/ee3237405da6/schema)
