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

# OpenRouter

> OpenRouter-compatible APIs on ShuYou — official request format, transparent routing.

# OpenRouter

ShuYou exposes OpenRouter through the enterprise API gateway. **Request and response formats follow the [OpenRouter official API](https://openrouter.ai/docs/api) exactly** — parameter names, types, and optional fields are not modified on our side.

## How routing works

ShuYou acts as a **transparent proxy**:

* Your client sends the same JSON body and headers you would send to OpenRouter
* We route the request to OpenRouter upstream channels
* **All client parameters are preserved** — nothing is stripped, renamed, or rewritten

Use this when you want OpenRouter model slugs and features (chat, responses, Anthropic messages, embeddings) with ShuYou billing, observability, and enterprise reliability.

## Base URL

```text theme={null}
https://api.shuyou.ai/openrouter
```

Authenticate with your ShuYou API key (`Authorization: Bearer <API_KEY>`), same as other enterprise endpoints.

## Endpoints

| API                | Method | Path                   |
| ------------------ | ------ | ---------------------- |
| Chat Completions   | `POST` | `/v1/chat/completions` |
| Responses          | `POST` | `/v1/responses`        |
| Anthropic Messages | `POST` | `/v1/messages`         |
| Embeddings         | `POST` | `/v1/embeddings`       |

For field-level details, see each endpoint page below or the [OpenRouter API reference](https://openrouter.ai/docs/api).
