- Category: artificial intelligence
- Auth: API_KEY
- Composio-managed OAuth available? N/A
- Tools: 20
- Triggers: 0
- Slug:
OPENROUTER - Version: 20261101_00
- Instant: Supported on the latest version. Support varies by tool.
Tools
Create Chat Completion
Create Chat Completion
Slug:
OPENROUTER_CREATE_CHAT_COMPLETIONGenerate a chat-style completion from messages and a selected model, with function-call request options. The response is parsed as a single JSON object; streaming responses are not returned as partial deltas.Instant: Supported on the latest version.Instant pricing: Billed at the selected model’s OpenRouter token rate, from $0.02 per 1M input tokens and $0.04 per 1M output tokens; capped at $2 per callInput Parameters
ID of the model to use for the chat completion. Managed execution supports only the curated models in MANAGED_MODEL_PROVIDERS (current OpenAI, Anthropic, Google, xAI, Mistral, DeepSeek, Meta, Moonshot, Qwen, Z.ai, MiniMax, NVIDIA and other widely used models, for example openai/gpt-6.1-sol or anthropic/claude-sonnet-5.5); BYOK requests may use any exact ID returned by OPENROUTER_LIST_AVAILABLE_MODELS.
List of functions the model may call. Only supported by models that explicitly advertise function-calling capability via OPENROUTER_LIST_AVAILABLE_MODELS. Each function schema must be valid JSON; malformed schemas cause runtime failures regardless of prompt correctness.
Maximum number of tokens to generate. Managed execution defaults to and is capped at 1024; BYOK requests retain provider behavior.
Output
Create Coinbase Charge
Create Coinbase Charge
Slug:
OPENROUTER_CREATE_COINBASE_CHARGETool to create a Coinbase charge for crypto payment to add credits to your OpenRouter account. Use when you need to purchase credits using cryptocurrency. Returns calldata needed to fulfill the transaction on the specified blockchain.Input Parameters
Ethereum wallet address of the sender (must be a valid 42-character hex address starting with ‘0x’).
Blockchain chain ID to use for the transaction. Options: 1 (Ethereum), 137 (Polygon), 8453 (Base).
The app identifier (your app’s URL) used as the primary identifier for rankings and to track API usage per application.
Output
Create Embeddings
Create Embeddings
Create Message (Anthropic Format)
Create Message (Anthropic Format)
Slug:
OPENROUTER_CREATE_MESSAGECreate a message using Anthropic Messages API format via OpenRouter, with text, image, PDF, tool, and extended-thinking request options. Response content blocks retain only their type and text.Input Parameters
Model identifier to use for generation. Example: ‘anthropic/claude-4.5-sonnet-20250929’.
List of conversation messages. Each message has a role (‘user’ or ‘assistant’) and content.
Output
Create Speech
Create Speech
Create Video Generation
Create Video Generation
Slug:
OPENROUTER_CREATE_VIDEO_GENERATIONSubmit an asynchronous video generation job to OpenRouter.Input Parameters
Exact pixel dimensions in “WIDTHxHEIGHT” format, interchangeable with resolution and aspect_ratio.
Text prompt describing the video. Optional only for models that support generation from image input alone.
Resolution of the generated video.
Aspect ratio of the generated video.
Output
Get Credits
Get Credits
Slug:
OPENROUTER_GET_CREDITSTool to get the current API credit balance for the authenticated user. Use before large or batch jobs to verify sufficient balance. A successful response may return total_credits=0, which confirms authentication but will cause all paid model generations to fail. Avoid polling this endpoint; call only as needed.Output
Get Current Key
Get Current Key
Slug:
OPENROUTER_GET_CURRENT_KEYTool to get information about the currently authenticated API key. Use to check usage limits, spending, and key metadata.Input Parameters
The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
Output
Get Generation
Get Generation
Get Models Count
Get Models Count
Slug:
OPENROUTER_GET_MODELS_COUNTTool to get the total count of available models on OpenRouter. Use when you need to know how many models are available without fetching the full list.Input Parameters
The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
Output
Get Video Content
Get Video Content
Get Video Generation
Get Video Generation
List Available Models
List Available Models
Slug:
OPENROUTER_LIST_AVAILABLE_MODELSList available OpenRouter models, optionally filtered by category. Returns at most the first three models from the response, with their IDs, capabilities and pricing metadata.Input Parameters
string ("programming" | "roleplay" | "marketing" | "marketing/seo" | "technology" | "science" | "translation" | "legal" | "finance" | "health" | "trivia" | "academia")
Valid categories for filtering models.
Use chat URLs instead of model page URLs in RSS items (only applies when use_rss=true) (BETA).
Output
List Embedding Models
List Embedding Models
Slug:
OPENROUTER_LIST_EMBEDDING_MODELSList available OpenRouter embedding models with properties including architecture, pricing, and capabilities. Returns at most the first three models from the response.Input Parameters
The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
Output
OpenRouter List Model Endpoints
OpenRouter List Model Endpoints
Slug:
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. Some metadata fields (e.g., latency, pricing) may be null or approximate; handle missing values in routing logic.Input Parameters
Model author’s username as it appears in the model URL (e.g., ‘anon’). Use exact value from OPENROUTER_LIST_AVAILABLE_MODELS — approximate or incorrect values return empty results.
Output
OpenRouter List Providers
OpenRouter List Providers
Slug:
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. Providers differ in latency, context window sizes, and rate limits — switching providers affects these constraints. Newly added providers may not appear immediately due to catalog propagation delays.Output
List User Models
List User Models
Slug:
OPENROUTER_LIST_USER_MODELSList models filtered by user provider preferences, privacy settings, and guardrails. Returns at most the first three models from the response.Input Parameters
The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
Output
List Video Models
List Video Models
OpenRouter List ZDR Endpoints
OpenRouter List ZDR Endpoints
Slug:
OPENROUTER_LIST_ZDR_ENDPOINTSTool to preview the impact of Zero Data Retention (ZDR) on the available endpoints. Use to see which model endpoints remain accessible when ZDR is enabled.Input Parameters
The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.