Skip to main content
Openrouter logo

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.

This is a first-class FlyMyAI MCP. Agents discover it automatically via tool search and call the actions below on demand - you never wire it up by hand. See the Composio catalog for how discovery works.

Connect

Openrouter authenticates with an API key. Generate the credential in your Openrouter account, then paste it into FlyMyAI the first time an agent uses an Openrouter action.

Get your Openrouter credential →

Fields to fill in FlyMyAI

FieldDetails
OpenRouter API KeyYour OpenRouter API key used for authentication. (required)

Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

ActionWhat it doesRequired inputs
OPENROUTER_CREATE_CHAT_COMPLETIONTool to generate a chat-style completion. use after assembling messages and selecting a model. supports streaming and function calls.model, messages
OPENROUTER_CREATE_COMPLETIONTool 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.model
OPENROUTER_GET_CREDITSTool to get the current api credit balance for the authenticated user. use after authenticating to monitor remaining credits before making further api calls.-
OPENROUTER_GET_GENERATIONTool to retrieve a generation result by its unique id. use after a generation completes to fetch metadata like token counts, cost, and latency.id
OPENROUTER_LIST_AVAILABLE_MODELSTool to list available models via openrouter api. use after confirming authentication to fetch the model catalog.-
OPENROUTER_OPENROUTER_LIST_MODEL_ENDPOINTSTool 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.author, slug
OPENROUTER_OPENROUTER_LIST_PROVIDERSTool to list all ai model providers available through the openrouter api. use after authentication to retrieve available provider options for routing configuration.-
We love our partners - FlyMy.AI builds with the best. Thanks, Openrouter!