OpenRouter Keys API

Provisioning and management of API keys.

Operations 5

GET /keys List API keys #
POST /keys Create API key #
GET /keys/{hash} Get API key #
DELETE /keys/{hash} Delete API key #
PATCH /keys/{hash} Update API key #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/openrouter-keys-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

openrouter-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenRouter Chat Keys API
  description: 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 to use any model with the same request and response format. The API also exposes model discovery, generation statistics, credits and balance information, and provisioning endpoints for programmatic key management.
  version: '1.0'
  contact:
    name: OpenRouter
    url: https://openrouter.ai/
  license:
    name: Proprietary
    url: https://openrouter.ai/terms
servers:
- url: https://openrouter.ai/api/v1
  description: OpenRouter production API
security:
- BearerAuth: []
tags:
- name: Keys
  description: Provisioning and management of API keys.
paths:
  /keys:
    get:
      operationId: listKeys
      summary: List API keys
      description: Lists all API keys provisioned under the calling provisioning key.
      tags:
      - Keys
      responses:
        '200':
          description: List of keys.
    post:
      operationId: createKey
      summary: Create API key
      description: Creates a new API key, optionally with a credit limit.
      tags:
      - Keys
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                limit:
                  type: number
      responses:
        '200':
          description: New API key.
  /keys/{hash}:
    get:
      operationId: getKey
      summary: Get API key
      tags:
      - Keys
      parameters:
      - name: hash
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: API key details.
    delete:
      operationId: deleteKey
      summary: Delete API key
      tags:
      - Keys
      parameters:
      - name: hash
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Key deleted.
    patch:
      operationId: updateKey
      summary: Update API key
      tags:
      - Keys
      parameters:
      - name: hash
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          description: Updated API key.
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: OPENROUTER_API_KEY
externalDocs:
  description: OpenRouter API Reference
  url: https://openrouter.ai/docs/api/reference/overview