- functions
- 6
- access
- Your key
- tasks
- 1
Use OpenRouter on Longwave
- Download Longwave or open app.longwave.run.
- Add your OpenRouter API key once in Longwave settings. Calls run on your OpenRouter account at OpenRouter's price.
- Ask for the result in any thread, for example: “Draft text for a research brief”. The agent picks the OpenRouter function and calls it.
Use OpenRouter in Claude Code, Codex, Cursor or ChatGPT
Add the Longwave MCP server once. It carries 2,593 functions across 103 tools, including OpenRouter, and asks you to sign in on first use.
Why call OpenRouter through Longwave
- Your OpenRouter key is stored once, encrypted, and used by every harness and device you use.
- One MCP server for 103 tools, so your agent setup does not grow a key and a server per vendor.
- Spending limits per key and per account, checked before a paid call is made.
- Each call is recorded with the provider, the cost and the result, and can be read again from another device.
OpenRouter functions
| Function | Price |
|---|---|
| Generate a response with an OpenRouter model Accepts a model name, conversation messages and an output token limit and returns a model response to the supplied conversation. openrouter.chat.complete | The selected model and usage determine the charge; no single per-call price applies to this function. |
| List OpenRouter endpoints with zero data retention Returns model endpoints available under zero data retention without requiring input parameters. openrouter.openapi.get.endpoints.zdr | Model or provider metadata lookup; no generation charge or separate published per-call fee. |
| List OpenRouter models Accepts a category, output types, a search term and input modalities and returns available models and their capabilities and prices. openrouter.openapi.get.models | Model or provider metadata lookup; no generation charge or separate published per-call fee. |
| List OpenRouter endpoints for a model Accepts a model author and a model slug and returns model hosting endpoints and their properties. openrouter.openapi.get.models.author.slug.endpoints | Model or provider metadata lookup; no generation charge or separate published per-call fee. |
| Get the number of OpenRouter models Accepts output types and returns the count of available models. openrouter.openapi.get.models.count | Model or provider metadata lookup; no generation charge or separate published per-call fee. |
| List OpenRouter model providers Returns available model hosting providers without requiring input parameters. openrouter.openapi.get.providers | Model or provider metadata lookup; no generation charge or separate published per-call fee. |
Prices are OpenRouter's published rates. Source: OpenRouter pricing.
Use cases
- Draft text for a research brief Submit messages to the selected model through the common API.
- Inspect models before writing an integration Read the model catalog for the agent to review.
- Inspect endpoints for a model Retrieve endpoint information for the selected model.