> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-wbdocs-1882.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# W&B Inference에서 Invalid Authentication (401) 오류를 해결하려면 어떻게 하나요?

401 Invalid Authentication 오류는 API 키가 유효하지 않거나 W\&B 프로젝트 entity/name이 올바르지 않다는 의미입니다.

<div id="verify-your-api-key">
  ## API 키를 확인하세요
</div>

1. [User Settings](https://wandb.ai/settings)에서 새 API 키를 생성하세요.
2. API 키를 안전하게 보관하세요.

<div id="check-your-project-configuration">
  ## 프로젝트 설정을 확인하세요
</div>

프로젝트가 `<your-team>/<your-project>` 형식으로 올바르게 지정되었는지 확인하세요.

**Python 예시:**

```python theme={null}
client = openai.OpenAI(
    base_url='https://api.inference.wandb.ai/v1',
    api_key="<your-api-key>",
    project="<your-team>/<your-project>",  # 담당 W&B 팀 및 프로젝트와 일치해야 합니다
)
```

**Bash 예제:**

```bash theme={null}
curl https://api.inference.wandb.ai/v1/chat/completions \
  -H "Authorization: Bearer <your-api-key>" \
  -H "OpenAI-Project: <your-team>/<your-project>"
```

<div id="common-mistakes">
  ## 흔히 하는 실수
</div>

* 팀 이름 대신 개인 entity 사용
* 팀 또는 프로젝트 이름을 잘못 입력함
* 팀과 프로젝트 사이의 슬래시(/) 누락
* 만료되었거나 삭제된 API 키 사용

<div id="still-having-issues">
  ## 여전히 문제가 있나요?
</div>

* W\&B 계정에 해당 팀과 프로젝트가 있는지 확인하세요
* 지정된 팀에 접근 권한이 있는지 확인하세요
* 현재 API 키가 작동하지 않으면 새 API 키를 만들어 사용해 보세요

***

<Badge stroke shape="pill" color="orange" size="md">[Inference](/ko/support/models/tags/inference)</Badge>
