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
| Field | Details |
|---|---|
OpenRouter API Key | Your 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.
| Action | What it does | Required inputs |
|---|---|---|
OPENROUTER_CREATE_CHAT_COMPLETION | Tool to generate a chat-style completion. use after assembling messages and selecting a model. supports streaming and function calls. | model, messages |
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. | model |
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. | - |
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. | id |
OPENROUTER_LIST_AVAILABLE_MODELS | Tool to list available models via openrouter api. use after confirming authentication to fetch the model catalog. | - |
OPENROUTER_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. | author, slug |
OPENROUTER_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. | - |
Links
We love our partners - FlyMy.AI builds with the best. Thanks, Openrouter!