# Openrouter

OpenRouter is a platform that provides a unified API for accessing various large language models (LLMs) from different providers, allowing developers to integrate multiple AI models seamlessly.

- **Category:** artificial intelligence
- **Auth:** API_KEY
- **Tools:** 7
- **Triggers:** 0
- **Slug:** `OPENROUTER`
- **Version:** 20260211_00

## Tools

### Create Chat Completion

**Slug:** `OPENROUTER_CREATE_CHAT_COMPLETION`

Tool to generate a chat-style completion. Use after assembling messages and selecting a model. Supports streaming and function calls.

### Create Completion

**Slug:** `OPENROUTER_CREATE_COMPLETION`

Tool to generate a text completion for a given prompt or set of messages. Use when you need a model-generated response from a specified model.

### Get Credits

**Slug:** `OPENROUTER_GET_CREDITS`

Tool to get the current API credit balance for the authenticated user. Use after authenticating to monitor remaining credits before making further API calls.

### Get Generation

**Slug:** `OPENROUTER_GET_GENERATION`

Tool to retrieve a generation result by its unique ID. Use after a generation completes to fetch metadata like token counts, cost, and latency.

### List Available Models

**Slug:** `OPENROUTER_LIST_AVAILABLE_MODELS`

Tool to list available models via OpenRouter API. Use after confirming authentication to fetch the model catalog.

### OpenRouter List Model Endpoints

**Slug:** `OPENROUTER_LIST_MODEL_ENDPOINTS`

Tool to list endpoints for a specific model. Use after specifying model author and slug to get endpoint details including pricing, context length, and supported parameters.

### OpenRouter List Providers

**Slug:** `OPENROUTER_LIST_PROVIDERS`

Tool to list all AI model providers available through the OpenRouter API. Use after authentication to retrieve available provider options for routing configuration.
