Openrouter

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.

196VIEWS
2205USERS

Install MCP Server

Paste and run this command in your terminal to set up Cursor with MCP

npx @composio/cli add cursor --app openrouternpx @composio/cli add cursor --app openrouternpx @composio/cli add cursor --app openrouternpx @composio/cli add cursor --app openrouter

After running the command, restart Cursor to start using the MCP Server.

Available Tools

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

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

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

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

Tool to list available models via openrouter api. use after confirming authentication to fetch the model catalog.

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

Tool to list all ai model providers available through the openrouter api. use after authentication to retrieve available provider options for routing configuration.

7 actions available