ai
Version:
AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.
25 lines (16 loc) • 436 B
text/mdx
title: AI_LoadAPIKeyError
description: Learn how to fix AI_LoadAPIKeyError
# AI_LoadAPIKeyError
This error occurs when API key is not loaded successfully.
## Properties
- `message`: The error message
## Checking for this Error
You can check if an error is an instance of `AI_LoadAPIKeyError` using:
```typescript
import { LoadAPIKeyError } from 'ai';
if (LoadAPIKeyError.isInstance(error)) {
// Handle the error
}
```