Openrouter
Overview
SLUG: OPENROUTER
Description
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.
Authentication Details
API Key
Connecting to Openrouter
Create an auth config
Use the dashboard to create an auth config for the Openrouter toolkit. This allows you to connect multiple Openrouter accounts to Composio for agents to use.
Create and Get auth config ID
Click “Create Openrouter Auth Config”. After creation, copy the displayed ID starting with ac_
. This is your auth config ID. This is not a sensitive ID — you can save it in environment variables or a database.
This ID will be used to create connections to the toolkit for a given user.
Connect Your Account
Using API Key
Tools
Executing tools
To prototype you can execute some tools to see the responses and working on the Openrouter toolkit’s playground
OpenAI (Python)
Anthropic (TypeScript)
Google (Python)
Vercel (TypeScript)
Tool List
OPENROUTER_CREATE_CHAT_COMPLETION
Tool Name: Create Chat Completion
Description
Action Parameters
Action Response
OPENROUTER_CREATE_COMPLETION
Tool Name: Create Completion
Description
Action Parameters
Action Response
OPENROUTER_GET_CREDITS
Tool Name: Get Credits
Description
Action Parameters
Action Response
OPENROUTER_GET_GENERATION
Tool Name: Get Generation
Description
Action Parameters
Action Response
OPENROUTER_LIST_AVAILABLE_MODELS
Tool Name: List Available Models
Description
Action Parameters
Action Response
OPENROUTER_OPENROUTER_LIST_MODEL_ENDPOINTS
Tool Name: OpenRouter List Model Endpoints
Description
Action Parameters
Action Response
OPENROUTER_OPENROUTER_LIST_PROVIDERS
Tool Name: OpenRouter List Providers
Description
Action Parameters
Action Response