OpenRouter · JSON Structure

Openrouter Structure

Structural overview of the OpenRouter API surface; extracted from openapi/.

Type: Properties: 0
Artificial IntelligenceGatewayLarge Language ModelsRouter

Openrouter Structure is a JSON Structure definition published by OpenRouter.

Meta-schema:

JSON Structure

Raw ↑
{
  "provider": "OpenRouter",
  "providerId": "openrouter",
  "kind": "json-structure",
  "description": "Structural overview of the OpenRouter API surface; extracted from openapi/.",
  "schemaCount": 5,
  "operationCount": 12,
  "schemas": [
    {
      "name": "ChatCompletionRequest",
      "type": "object",
      "propertyCount": 12,
      "required": [
        "model",
        "messages"
      ]
    },
    {
      "name": "ChatMessage",
      "type": "object",
      "propertyCount": 4,
      "required": [
        "role"
      ]
    },
    {
      "name": "ChatCompletionResponse",
      "type": "object",
      "propertyCount": 6,
      "required": []
    },
    {
      "name": "CompletionRequest",
      "type": "object",
      "propertyCount": 5,
      "required": [
        "model",
        "prompt"
      ]
    },
    {
      "name": "ModelList",
      "type": "object",
      "propertyCount": 1,
      "required": []
    }
  ],
  "operations": [
    {
      "method": "POST",
      "path": "/chat/completions",
      "operationId": "createChatCompletion",
      "summary": "Create chat completion",
      "tags": [
        "Chat"
      ]
    },
    {
      "method": "POST",
      "path": "/completions",
      "operationId": "createCompletion",
      "summary": "Create completion",
      "tags": [
        "Completions"
      ]
    },
    {
      "method": "GET",
      "path": "/models",
      "operationId": "listModels",
      "summary": "List available models",
      "tags": [
        "Models"
      ]
    },
    {
      "method": "GET",
      "path": "/models/{author}/{slug}/endpoints",
      "operationId": "listModelEndpoints",
      "summary": "List endpoints for a model",
      "tags": [
        "Models"
      ]
    },
    {
      "method": "GET",
      "path": "/generation",
      "operationId": "getGeneration",
      "summary": "Get generation stats",
      "tags": [
        "Generation"
      ]
    },
    {
      "method": "GET",
      "path": "/credits",
      "operationId": "getCredits",
      "summary": "Get credit balance",
      "tags": [
        "Credits"
      ]
    },
    {
      "method": "GET",
      "path": "/providers",
      "operationId": "listProviders",
      "summary": "List providers",
      "tags": [
        "Providers"
      ]
    },
    {
      "method": "GET",
      "path": "/keys",
      "operationId": "listKeys",
      "summary": "List API keys",
      "tags": [
        "Keys"
      ]
    },
    {
      "method": "POST",
      "path": "/keys",
      "operationId": "createKey",
      "summary": "Create API key",
      "tags": [
        "Keys"
      ]
    },
    {
      "method": "GET",
      "path": "/keys/{hash}",
      "operationId": "getKey",
      "summary": "Get API key",
      "tags": [
        "Keys"
      ]
    },
    {
      "method": "DELETE",
      "path": "/keys/{hash}",
      "operationId": "deleteKey",
      "summary": "Delete API key",
      "tags": [
        "Keys"
      ]
    },
    {
      "method": "PATCH",
      "path": "/keys/{hash}",
      "operationId": "updateKey",
      "summary": "Update API key",
      "tags": [
        "Keys"
      ]
    }
  ]
}

Work with this as data

Every JSON Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • 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 JSON Structure
curl "https://apis.io/api/v1/json-structures/openrouter-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?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.