# AIHas()

Checks whether a specific AI endpoint is configured and available for use.

```
AIHas( name=string );
```

**Returns:** boolean

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| name | string | Yes | The name of the AI endpoint to check. Can be either: 1. A direct endpoint name as configured in the Lucee Administrator 2. A default reference (e.g., "default:exception") which will check if a default endpoint is configured for that category *Alias: aiName, nameAI* |  |

# Examples

```cfml
// Checks if the AI service named "test_ai" exists
AIHas("test_ai");
```







# Categories

[AI / LLM Integration](../../categories/ai.md)