OpenRouter
Developer Tools & DevOps

Connect OpenRouter to Your AI Agents

Enable your Wkil agents to generate completions across multiple AI models and track usage through OpenRouter.

Authentication: API key

What you can do

  • Generate chat completions from a choice of models
  • List available models and check credit balance

Available capabilities may vary by authentication and workspace configuration.

Actions supported by the connector

Create Chat Completion
Generate a chat-style completion from a selected model.
List Available Models
List the AI models currently available through OpenRouter.
Get Credits
Check the account's current API credit balance.
Get Generation
Retrieve the result of a specific generation by its ID.
List Embedding Models
List available embedding models through OpenRouter.

Practical agent use cases

  • An agent picks from several available models to generate a response for a task.
  • An agent checks the remaining credit balance before running a large batch of generations.

How it works with Wkil

  1. 1
    Choose the integration
    Add OpenRouter to your agent from inside the Wkil platform.
  2. 2
    Grant the permissions it needs
    Define precisely what the agent can access and perform.
  3. 3
    Test, then run it
    Test actions before they go live, with human approval where needed.
Permissions always stay in your control — you can scope access and require human approval before any sensitive action.

FAQ

Does this require my own OpenRouter API key?

Yes — usage and billing run through your own OpenRouter account and credit balance.

Build with OpenRouter

Build with OpenRouter