> ## 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 Reference

> Reference pages for YouRouter model API integration.

Use this section when you are wiring an application directly to the YouRouter API. The primary model calling endpoint is OpenAI-compatible and uses the base URL `https://api.yourouter.ai/v1`.

## Core Endpoint

<Card title="Create Chat Completion" icon="message" href="/api-reference/chat/create">
  Send text or image-input model requests with `model` and `messages`, then read the assistant reply from `choices[0].message.content`.
</Card>

<Card title="Multimodal Guide" icon="image" href="/guides/multimodal">
  See image-input, provider-native multimodal, and video-generation examples.
</Card>

## Provider-Native Compatibility

Some integrations need provider-native request shapes. Use these pages only when your application already depends on a provider-specific API format.

<CardGroup cols={2}>
  <Card title="Anthropic Messages" icon="message" href="/api-reference/messages/create">
    Call Claude through Anthropic's Messages request format.
  </Card>

  <Card title="Google Generate Content" icon="sparkles" href="/api-reference/google/generate-content">
    Call Gemini through Google's `generateContent` request format.
  </Card>
</CardGroup>

## Search Endpoint

Use this endpoint when you need web search results or a Google Programmable Search Engine response shape.

<Card title="Custom Search" icon="magnifying-glass" href="/api-reference/search/customsearch">
  Search the web or a specific programmable search engine with `GET /customsearch/v1`.
</Card>

## Integration Setup

| Item             | Value                                                             |
| ---------------- | ----------------------------------------------------------------- |
| Base URL         | `https://api.yourouter.ai/v1`                                     |
| Authentication   | `Authorization: Bearer <YOUROUTER_API_KEY>`                       |
| Content type     | `Content-Type: application/json`                                  |
| Default routing  | Omit `vendor`, or send `vendor: auto`                             |
| Provider pinning | Send a `vendor` header such as `openai`, `anthropic`, or `google` |

For a step-by-step setup, start with the [API Quickstart](/quickstart).
