OpenRouter API
OpenRouter API is an OpenAI-compatible model-routing API that exposes hundreds of models from many providers through a single endpoint and account.
Overview
The API uses model slugs to select a provider model and supports routing, fallbacks, streaming, tools, structured output, and official TypeScript, Python, and Go SDKs.
API details
- Base URL
- https://openrouter.ai/api/v1
- Authentication
- Bearer Token
- Styles
- Rest, Sdk
- Pricing model
- Usage Based · free plan
- Official SDKs
- TypeScript, Python, Go
Capabilities
Some models have free endpoints. Paid model usage is billed through OpenRouter credits and depends on the selected model and provider.
Tools and agents integrating this API
Only integrations backed by explicit product or provider documentation are shown.
Aider
Aider is an open-source terminal tool for working with language models on an existing codebase. It builds a repository map, edits files, integrates with Git, and can run linting and tests.
Amp
Amp is a coding agent from Amp Frontier Corporation that runs in the terminal, on the web, in cloud orbs, and through desktop and mobile apps, with integrations for common code editors.
Cline
Cline is an open-source coding agent available as an IDE extension, command-line tool, and SDK. It can read and write files, run terminal commands, and use browser and external tools.
Droid
Droid is Factory's software-development agent for planning, implementing, reviewing, and validating code changes across desktop, terminal, web, and managed execution environments.
Junie
Junie is JetBrains' coding agent for JetBrains IDEs and the command line. It can inspect projects, write and modify code, run development tasks, and use project instructions and agent skills.
OpenCode
OpenCode is an open-source coding agent available through a terminal interface, desktop app, and IDE integrations, with support for multiple model providers and local models.
OpenHands
OpenHands is an open-source platform for running software-development agents locally, in hosted cloud environments, or through self-hosted deployments.
Pi
Pi is an open-source, extensible terminal coding agent from Earendil Works with multi-provider model access, local tools, skills, extensions, prompt templates, and SDK support.
Qwen Code
Qwen Code is an open-source coding agent from the Qwen team with terminal, editor, desktop, browser, and chat surfaces and support for Qwen and third-party model providers.
Zed
Zed is an open-source code editor from Zed Industries with a native coding agent, external agent integrations, terminal-backed agent threads, edit prediction, and multiplayer collaboration.