---
title: "Test Provider Credentials"
method: POST
path: "/api/v1/providers/{provider}/credentials/test"
tags: ["Models"]
---

# Test Provider Credentials

`POST /api/v1/providers/{provider}/credentials/test`

Validates an LLM provider API key against the server's effective catalog without persisting it.

## Path parameters

- `provider` string, required

## Request body

- ProviderCredentialTestRequest — API key to validate against an LLM provider without persisting it.
  - `api_key` string, required

## Response `200`

Credentials validated successfully

- ProviderCredentialTestResponse — Successful response from provider credential validation.
  - `ok` boolean, required

## Other responses

- `400` — Invalid provider credential request
- `404` — Provider not found
- `422` — Credential validation failed

---

[API](https://skmtc.net/fabro-sh/apis/fabro-run-api.md) · [All operations](https://skmtc.net/fabro-sh/apis/fabro-run-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fabro-sh/fabro-run-api/versions/bee030053823/schema)
