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

# Anthropic

> Configure an Anthropic credential in Validio to leverage Claude AI models for generating SQL queries in custom validators and filters.

This guide covers how to configure an Anthropic credential in Validio to leverage Claude AI models for generating SQL queries in custom validators and filters.

![The Anthropic credential configuration form, showing name, model, and API key fields](https://mintcdn.com/validio/h4NQPs1kJwlpB1Yj/images/docs/integrations/810-anthropic-credential-config.png?fit=max\&auto=format\&n=h4NQPs1kJwlpB1Yj\&q=85\&s=b5b66e18297b2728ec5960fa83889301)

Configuration for Anthropic credential

Anthropic provides advanced AI language models, including the Claude family of models for text generation, analysis, and conversation. By adding an Anthropic credential to Validio, you can leverage these capabilities to generate SQL queries for custom validation and filtering.

## Prerequisites

Before setting up your Anthropic credential, ensure you have:

* Enabled the **Allow LLM credentials** setting in your Validio Workspace. See [Managing Workspace Settings](https://docs.validio.io/v11.0/docs/access-and-settings/settings/workspace-settings.md).
* Appropriate permissions to create credentials (requires `credentials:WRITE` permissions for the Namespace). See [Managing Roles](https://docs.validio.io/v11.0/docs/access-and-settings/settings/managing-roles.md).
* An active Anthropic account
* An Anthropic API key (you can generate one from the [Anthropic Console](https://console.anthropic.com/))

## Add an Anthropic credential

> [!NOTE]
>
> Because each Anthropic credential is tied to one language model, you should add an Anthropic credential for each model you want to use in Validio.

To add an Anthropic credential,

1. Navigate to **Credentials** and click **+ New credential**.
2. **Namespace**: Select the namespace where the resources will be created.
3. **Credential Type**: Select **Anthropic** from the dropdown
4. **Configuration**: Complete the required parameters.

   | Parameter | Description |
   | :- | :- |
   | Name | A unique identifier for this credential. |
   | Model | Select from available Anthropic models (Claude 4, Claude Sonnet 4.5) or, if the desired model is not in the list, enter the `Claude API ID` of the model. Refer to [Models overview](https://console.anthropic.com/docs/en/about-claude/models/overview) in Claude documentation. |
   | API key | Your Anthropic API key from the Anthropic Console. The valid API key starts with `sk-ant-api03-` |
   | Custom base URL | (Optional) Custom base URL for the Anthropic API. Only needed if using a proxy or custom endpoint. |
5. (Optional) Click **Test credential** to validate that Validio can successfully connect to Anthropic using your configuration.

   > [!NOTE]
   >
   > If the test fails, verify your API key is correct.
6. Click **Create credential** to save your configuration.

## Next steps

With your Anthropic credential configured, you can leverage Claude AI models across various Validio features:

* **[Custom SQL validators](https://docs.validio.io/v11.0/docs/validators/validator-types/custom-sql.md)**: Generate complex validation queries or fix errors in your SQL queries.
* **[SQL filters](https://docs.validio.io/v11.0/docs/filters/filter-types.md#sql-filter)**: Create sophisticated filtering conditions and data selection criteria.
* **[Validator recommendations](https://docs.validio.io/v11.0/docs/ai-features/validator-recommendations.md)**: Profile your data and generate recommendations to quickly set up monitoring
