iilib
API

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.

API documentationOfficial siteVerified Oct 3, 2026
Provider type
Gateway
Provider
OpenRouter
Connected models
0
Product integrations
10
OpenAI compatible
Yes

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

Chat completionsStreamingTool useStructured outputProvider routingFallbacksModel listingAudio

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.

Toolactive

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.

Agentactive

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.

Agentactive

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.

Agentactive

Droid

Droid is Factory's software-development agent for planning, implementing, reviewing, and validating code changes across desktop, terminal, web, and managed execution environments.

Agentactive

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.

Agentactive

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.

Agentactive

OpenHands

OpenHands is an open-source platform for running software-development agents locally, in hosted cloud environments, or through self-hosted deployments.

Agentactive

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.

Agentactive

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.

Toolactive

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.

Provider