OpenRouter website screenshot

OpenRouter

OpenRouter is an API platform that provides unified access to multiple AI language models through a single interface. OpenRouter acts as a "router" or gateway that lets developers and applications access dozens of different AI models from various providers through one standardized API, rather than having to integrate with each provider separately.

5 APIs 16 Features
Artificial IntelligenceGatewayLarge Language ModelsRouter

APIs

OpenRouter

OpenRouter provides unified access to hundreds of AI models through a single API endpoint. It implements the OpenAI API specification for chat completions, allowing developers t...

OpenRouter Chat Completions API

The Chat Completions API is the primary endpoint for generating model responses. It supports text and image inputs, streaming via Server-Sent Events, tool and function calling, ...

OpenRouter Models API

The Models API allows developers to list and discover all available AI models and their properties, including pricing, context lengths, supported features, and provider informat...

OpenRouter Generation API

The Generation API allows querying for generation statistics and historical usage data, including token counts, cost calculations, cached token tracking, and reasoning token cou...

OpenRouter Keys Management API

The Keys Management API enables programmatic creation, rotation, and management of OpenRouter API keys. Common use cases include SaaS applications that automatically create uniq...

Collections

Pricing Plans

Openrouter Plans Pricing

3 plans

PLANS

Rate Limits

Openrouter Rate Limits

3 limits

RATE LIMITS

FinOps

Features

Free: 25+ models, 50 req/day cap
Pay-As-You-Go: 300+ models, 0% provider markup
5.5% platform fee on credit purchases
Enterprise: volume discounts, custom platform fee
Failed/fallback attempts NOT billed
OpenAI-compatible Chat Completions API
300+ models from OpenAI, Anthropic, Google, Mistral, Meta, etc.
Automatic fallback routing on errors
Bring Your Own Key (BYOK) for select providers
Streaming responses
Tool use / function calling (model-dependent)
Vision (model-dependent)
Per-model upstream rate limit passthrough
Bearer token auth
Provider transparency (see live latency/uptime/throughput)
Credits + Stripe payments + crypto

Semantic Vocabularies

Openrouter Context

21 classes · 1 properties

JSON-LD

JSON Structure

Openrouter Structure

0 properties

JSON STRUCTURE

Resources

🔗
LinkedIn
LinkedIn
🔗
Website
Website
🔗
Models
Models
🟢
StatusPage
StatusPage
🚀
GettingStarted
GettingStarted
💬
FAQ
FAQ
💰
Pricing
Pricing
📜
PrivacyPolicy
PrivacyPolicy
📜
TermsOfService
TermsOfService
🌐
Portal
Portal
🔗
Documentation
Documentation
🔑
Authentication
Authentication
🔗
RateLimits
RateLimits
💻
ErrorCodes
ErrorCodes
🔗
Documentation
Documentation
🔗
OpenAPI
OpenAPI
🔗
OpenAPI
OpenAPI
💰
Pricing
Pricing
💬
Support
Support
📰
Blog
Blog
🔗
Discord
Discord
👥
GitHubOrganization
GitHubOrganization
👥
GitHubRepository
GitHubRepository
👥
GitHubRepository
GitHubRepository
📦
SDKs
SDKs
📦
SDKs
SDKs
🔗
Documentation
Documentation
🔗
Documentation
Documentation
🔗
Documentation
Documentation
🔗
Documentation
Documentation
🔗
Documentation
Documentation
🔗
Documentation
Documentation
🔗
Documentation
Documentation
🔗
Documentation
Documentation
🔗
Documentation
Documentation
🔗
Documentation
Documentation
🔗
APIKeys
APIKeys
🔗
Documentation
Documentation
🔗
LlmsText
LlmsText

Sources

Raw ↑
opencollection: 1.0.0
info:
  name: OpenRouter API
  version: '1.0'
request:
  auth:
    type: bearer
    token: '{{bearerToken}}'
items:
- info:
    name: Chat
    type: folder
  items:
  - info:
      name: Create chat completion
      type: http
    http:
      method: POST
      url: https://openrouter.ai/api/v1/chat/completions
      body:
        type: json
        data: '{}'
    docs: Generates a model response for the given chat conversation. Supports text and image inputs, streaming via Server-Sent
      Events, tool and function calling, structured outputs, and provider routing.
- info:
    name: Completions
    type: folder
  items:
  - info:
      name: Create completion
      type: http
    http:
      method: POST
      url: https://openrouter.ai/api/v1/completions
      body:
        type: json
        data: '{}'
    docs: Legacy text completion endpoint that takes a prompt and returns a completion.
- info:
    name: Models
    type: folder
  items:
  - info:
      name: List available models
      type: http
    http:
      method: GET
      url: https://openrouter.ai/api/v1/models
    docs: Returns the full list of models available through OpenRouter.
  - info:
      name: List endpoints for a model
      type: http
    http:
      method: GET
      url: https://openrouter.ai/api/v1/models/:author/:slug/endpoints
      params:
      - name: author
        value: ''
        type: path
      - name: slug
        value: ''
        type: path
    docs: Returns all provider endpoints serving the specified model with per-endpoint pricing, context length, and capabilities.
- info:
    name: Generation
    type: folder
  items:
  - info:
      name: Get generation stats
      type: http
    http:
      method: GET
      url: https://openrouter.ai/api/v1/generation
      params:
      - name: id
        value: ''
        type: query
        description: Generation identifier returned in chat completion responses.
    docs: Retrieves usage statistics for a completed generation including token counts, cost, cached tokens, and reasoning
      tokens.
- info:
    name: Credits
    type: folder
  items:
  - info:
      name: Get credit balance
      type: http
    http:
      method: GET
      url: https://openrouter.ai/api/v1/credits
    docs: Returns the current credit balance and usage for the account.
- info:
    name: Providers
    type: folder
  items:
  - info:
      name: List providers
      type: http
    http:
      method: GET
      url: https://openrouter.ai/api/v1/providers
    docs: Returns the list of supported model providers.
- info:
    name: Keys
    type: folder
  items:
  - info:
      name: List API keys
      type: http
    http:
      method: GET
      url: https://openrouter.ai/api/v1/keys
    docs: Lists all API keys provisioned under the calling provisioning key.
  - info:
      name: Create API key
      type: http
    http:
      method: POST
      url: https://openrouter.ai/api/v1/keys
      body:
        type: json
        data: '{}'
    docs: Creates a new API key, optionally with a credit limit.
  - info:
      name: Get API key
      type: http
    http:
      method: GET
      url: https://openrouter.ai/api/v1/keys/:hash
      params:
      - name: hash
        value: ''
        type: path
    docs: Get API key
  - info:
      name: Update API key
      type: http
    http:
      method: PATCH
      url: https://openrouter.ai/api/v1/keys/:hash
      params:
      - name: hash
        value: ''
        type: path
      body:
        type: json
        data: '{}'
    docs: Update API key
  - info:
      name: Delete API key
      type: http
    http:
      method: DELETE
      url: https://openrouter.ai/api/v1/keys/:hash
      params:
      - name: hash
        value: ''
        type: path
    docs: Delete API key
bundled: true