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

# Playground gateway error despite valid API keys

> [!NOTE]
>
> **Applies to:**
>
> * Plan - Any
> * Deployment - Any
> *
> * Use case - Users who see gateway 'unknown model or provider' errors in the playground despite having valid API keys configured for OpenAI and Anthropic

## Summary

**Issue:** The playground returns `Braintrust gateway error: unknown model or provider not configured` for all model selections from both OpenAI and Anthropic, even when valid API keys are configured in **Settings → Models**.

**Cause:** Stale browser cache or cookies cause the UI to send outdated provider or model configuration state to the gateway.

**Resolution:** Clear browser cookies and cache, then log out and back in.

## Resolution steps

### If the error occurs for all models across both providers and other users on the same org are unaffected

#### Step 1: Clear browser cookies and cache

In your browser settings, clear cookies and cached data for `braintrust.dev`.

#### Step 2: Log out and log back in

Sign out of Braintrust, restart the browser, then sign back in.

#### Step 3: Verify in the playground

Open the affected playground and run a prompt using any model. The error should no longer appear.

### Otherwise, if the issue persists after clearing cache or the issue affects all users in the org, contact Braintrust support.


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