# AI 서비스별 API Key 발급 가이드

## OpenAI (Chat GPT) 발급 가이드

### Chat GPT 서비스 이용을 위한 API KEY 발급 가이드입니다.

1. [OpenAI API사이트](https://auth.openai.com/authorize?issuer=auth0.openai.com\&client_id=DRivsnm2Mu42T3KOpqdtwB3NYviHYzwD\&audience=https%3A%2F%2Fapi.openai.com%2Fv1\&redirect_uri=https%3A%2F%2Fplatform.openai.com%2Fauth%2Fcallback\&device_id=9602e458-fdd7-4b6f-8acd-077e4eb8060b\&screen_hint=signup\&max_age=0\&scope=openid+profile+email+offline_access\&response_type=code\&response_mode=query\&state=cnlSZFpBZV96dGdOSGV%2BR2ZhSjNwOVM0b2tKN3NhczJVREUteE9BaEtaLg%3D%3D\&nonce=dG9LM1hWQUtBRnJEalI5SklSV2R1T1JDQTdpcWdzZmg5Q1dodjJ3UnlMRw%3D%3D\&code_challenge=5d-5E966nojEIths1PM_UrzMpY_M33nu5qKvJ1_cdsE\&code_challenge_method=S256\&auth0Client=eyJuYW1lIjoiYXV0aDAtc3BhLWpzIiwidmVyc2lvbiI6IjEuMjEuMCJ9\&flow=control)에서 회원가입과 로그인을 진행해주세요.
2. 우측 상단 Dashboard 탭을 눌러주세요.
3. 좌측 메뉴에서 API Keys 메뉴를 눌러주세요.
4. +Created New seceret key 버튼을 눌러주세요.
5. Owned by를 You로 선택을 해주세요. 여러 키를 선택하는 경우 키를 구분할 수 있는 Name을 입력해주세요.
6. Project를 선택하고, Permissions를 All로 선택해주세요.
7. 생성된 API Key를 복사 후 바티에 등록해주세요.

{% @arcade/embed flowId="GIJveWfhfdhySBlD4yNx" url="<https://app.arcade.software/share/GIJveWfhfdhySBlD4yNx>" %}

{% hint style="info" %}

### OpenAI API 예산 설정 방법

1. Dashboard 좌측 메뉴에서 Usage 를 선택해주세요.
2. 우측 Increase limit 버튼을 클릭해주세요.
3. Usage limits > Set a monthly budget 부분에서 월 예산을 설정해주세요.
4. Set an email notification threshold에서 이메일 알림을 받을 수 있는 예산 기준을 설정할 수 있어요.
   {% endhint %}

***

## Google (Gemini) 발급 가이드

### Google Gemini API Key 발급 가이드입니다.

1. [Google AI Studio](https://ai.google.dev/aistudio?hl=ko)로 접속해주세요.
2. 구글에 회원가입 및 로그인을 진행해주세요.
3. 화면 중앙에 있는 Google AI Sudio에 로그인 을 클릭해주세요.
4. 좌측 메뉴에서 `Get API Key` 메뉴를 클릭해주세요.
5. API Key 생성하기 버튼을 클릭해주세요.
6. Create an API Key in a new project 버튼을 클릭해주세요.
7. 만들어진 API Key를 복사 후 바티에 등록해주세요.

{% @arcade/embed flowId="mistRb5vXFTtNADnB4Y3" url="<https://app.arcade.software/share/mistRb5vXFTtNADnB4Y3>" %}

{% hint style="info" %}

### Google Gemini API 결제 관리 방법

1. 좌측 메뉴 하단 `Settings` 버튼을 클릭해주세요.
2. rate plan에 `Payment setting` 버튼을 눌러 결제 계정을 연결 및 관리할 수 있습니다.
3. 적절한 수준의 예산을 설정해주세요
   {% endhint %}

***

## Anthropic (Claude) API Key 발급 방법

### Anthropic API Key 발급 가이드입니다.

1. [앤트로픽 API 사이트](https://www.anthropic.com/api)에 접속해주세요.
2. `Get started now` 버튼을 클릭해주세요.
3. 기존 Claude 계정으로 로그인 또는 회원가입을 진행해주세요.
4. `Get API keys` 를 버튼을 클릭해주세요.
5. Get API Keys에서 `Create Key` 버튼을 눌러주세요.
6. 만들 API Key의 이름을 입력해주세요.
7. 생성된 API Key를 복사 후 바티에 등록해주세요.

{% @arcade/embed flowId="7qp9x7jfW1iGfPxZQYtl" url="<https://app.arcade.software/share/7qp9x7jfW1iGfPxZQYtl>" %}

{% hint style="info" %}

### Anthropic Claude API 예산 설정 방법

1. 좌측 메뉴에서 Plans & billing 을 클릭합니다.
2. 화면에 Select Plan 버튼을 클릭합니다.
3. Build (선불 요금) 또는 Scale (후불 요금) 중 요금제를 선택하여 적용합니다.
   {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.bati.ai/service/api/ai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
