> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mithunai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Test a saved AI provider key

> Send your saved key one one-token request and learn whether the provider accepts it. Never echoes the key or the reply. Beta.

Sends your saved key one request for a single token, to the provider's cheapest catalogued model, and says whether the provider accepted it. The call is billed by the provider to your own account, like any other use of the key. **Beta.**

Owner or admin only (`credential.manage`), from a signed-in console session. No key saved for the provider returns `409` with the code `model_key_missing`.

**provider** `string` *required*

`openai`, `anthropic` or `google`.

## Response

**provider** `string` *required*

The provider tested.

**ok** `boolean` *required*

`true` when the provider answered.

**code** `string`

When `ok` is `false`: the error code, such as `model_key_rejected` when the provider refused the key.

**message** `string`

When `ok` is `false`: a message that includes the provider's HTTP status. Never the provider's own
text and never the key.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.