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

# API 레퍼런스

> YouRouter 모델 API 연동을 위한 레퍼런스 페이지입니다.

애플리케이션을 YouRouter API에 직접 연결할 때는 이 섹션을 사용하세요. 주요 모델 호출 엔드포인트는 OpenAI 호환 형식이며, 기본 URL은 `https://api.yourouter.ai/v1`입니다.

## 핵심 엔드포인트

<Card title="Create Chat Completion" icon="message" href="/ko/api-reference/chat/create">
  `model`과 `messages`로 텍스트 또는 이미지 입력 요청을 보내고, 응답은 `choices[0].message.content`에서 읽습니다.
</Card>

<Card title="멀티모달 가이드" icon="image" href="/ko/guides/multimodal">
  이미지 입력, 제공업체 네이티브 멀티모달 형식, 영상 생성 예시를 확인합니다.
</Card>

## 제공업체 네이티브 호환 API

앱이 이미 특정 제공업체의 요청 형식에 의존하는 경우에만 아래 페이지를 사용하세요.

<CardGroup cols={2}>
  <Card title="Anthropic Messages" icon="message" href="/ko/api-reference/messages/create">
    Anthropic Messages 요청 형식으로 Claude를 호출합니다.
  </Card>

  <Card title="Google Generate Content" icon="sparkles" href="/ko/api-reference/google/generate-content">
    Google의 `generateContent` 요청 형식으로 Gemini를 호출합니다.
  </Card>
</CardGroup>

## 검색 API

웹 검색 결과가 필요하거나 Google Programmable Search Engine 응답 형식을 사용하려면 이 API를 사용하세요.

<Card title="Custom Search" icon="magnifying-glass" href="/ko/api-reference/search/customsearch">
  `GET /customsearch/v1`로 웹 전체 또는 지정한 프로그래머블 검색 엔진을 검색합니다.
</Card>

## 연동 기본 정보

| 항목       | 값                                                |
| -------- | ------------------------------------------------ |
| Base URL | `https://api.yourouter.ai/v1`                    |
| 인증       | `Authorization: Bearer <YOUROUTER_API_KEY>`      |
| 콘텐츠 타입   | `Content-Type: application/json`                 |
| 기본 라우팅   | `vendor`를 생략하거나 `vendor: auto` 전송                |
| 제공업체 고정  | `openai`, `anthropic`, `google` 등의 `vendor` 값 전송 |

단계별로 연동하려면 먼저 [API 빠른 시작](/ko/quickstart)을 읽으세요.
