agentskit.js

openrouter

Auto-generated API reference for openrouter.

Variable: openrouter

const openrouter: (config) => AdapterFactory

Defined in: openrouter.ts:10

OpenRouter — routes to 300+ provider models behind a single OpenAI-compatible endpoint. Pass the fully-qualified id as model, e.g. anthropic/claude-sonnet-4-6.

#Parameters

#config

OpenAICompatibleConfig

#Returns

AdapterFactory

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page