{
  "info": {
    "_postman_id": "97586fa5-5d7d-46db-8a8f-db2b151f7ebc",
    "name": "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.\n\nContact Support:\n Name: OpenRouter",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T02:26:43.000Z",
    "updatedAt": "2026-07-28T02:26:43.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-97586fa5-5d7d-46db-8a8f-db2b151f7ebc"
  },
  "item": [
    {
      "name": "keys",
      "item": [
        {
          "name": "{hash}",
          "item": [
            {
              "name": "Get API key",
              "id": "4877f913-d401-426d-9690-22660767e0c4",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/keys/:hash",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "keys",
                    ":hash"
                  ],
                  "variable": [
                    {
                      "id": "95d886e5-08c4-48d0-9950-d5a5478f1dd2",
                      "key": "hash",
                      "value": "<string>",
                      "description": "(Required) "
                    }
                  ]
                }
              },
              "response": [
                {
                  "id": "2d948a02-44e0-4b50-850f-164bd144714d",
                  "name": "API key details.",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/keys/:hash",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "keys",
                        ":hash"
                      ],
                      "variable": [
                        {
                          "key": "hash"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T02:26:43.000Z",
                  "updatedAt": "2026-07-28T02:26:43.000Z",
                  "uid": "35240-2d948a02-44e0-4b50-850f-164bd144714d"
                }
              ],
              "createdAt": "2026-07-28T02:26:43.000Z",
              "updatedAt": "2026-07-28T02:26:43.000Z",
              "uid": "35240-4877f913-d401-426d-9690-22660767e0c4"
            },
            {
              "name": "Delete API key",
              "id": "4cb6d588-ca4a-4018-9359-0331d13a757f",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/keys/:hash",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "keys",
                    ":hash"
                  ],
                  "variable": [
                    {
                      "id": "5f56d4d7-0281-4873-b34d-e1cd99da3bb7",
                      "key": "hash",
                      "value": "<string>",
                      "description": "(Required) "
                    }
                  ]
                }
              },
              "response": [
                {
                  "id": "0affc676-7b11-4663-96a8-01700b4df24d",
                  "name": "Key deleted.",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/keys/:hash",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "keys",
                        ":hash"
                      ],
                      "variable": [
                        {
                          "key": "hash"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T02:26:43.000Z",
                  "updatedAt": "2026-07-28T02:26:43.000Z",
                  "uid": "35240-0affc676-7b11-4663-96a8-01700b4df24d"
                }
              ],
              "createdAt": "2026-07-28T02:26:43.000Z",
              "updatedAt": "2026-07-28T02:26:43.000Z",
              "uid": "35240-4cb6d588-ca4a-4018-9359-0331d13a757f"
            },
            {
              "name": "Update API key",
              "id": "758b26dd-5b31-498f-ae7a-0bc1c6d3fa0e",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/keys/:hash",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "keys",
                    ":hash"
                  ],
                  "variable": [
                    {
                      "id": "f8825921-067d-4b27-9caa-e716ee238501",
                      "key": "hash",
                      "value": "<string>",
                      "description": "(Required) "
                    }
                  ]
                }
              },
              "response": [
                {
                  "id": "97a3c307-692a-47fd-aeff-7f88004ae9a6",
                  "name": "Updated API key.",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/keys/:hash",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "keys",
                        ":hash"
                      ],
                      "variable": [
                        {
                          "key": "hash"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T02:26:43.000Z",
                  "updatedAt": "2026-07-28T02:26:43.000Z",
                  "uid": "35240-97a3c307-692a-47fd-aeff-7f88004ae9a6"
                }
              ],
              "createdAt": "2026-07-28T02:26:43.000Z",
              "updatedAt": "2026-07-28T02:26:43.000Z",
              "uid": "35240-758b26dd-5b31-498f-ae7a-0bc1c6d3fa0e"
            }
          ],
          "id": "609c493d-a550-4210-9dfe-3a4dd2921b86",
          "createdAt": "2026-07-28T02:26:43.000Z",
          "updatedAt": "2026-07-28T02:26:43.000Z",
          "uid": "35240-609c493d-a550-4210-9dfe-3a4dd2921b86"
        },
        {
          "name": "List API keys",
          "id": "e80cad3e-82c6-49d2-8d9b-43c193b10cee",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "keys"
              ]
            },
            "description": "Lists all API keys provisioned under the calling provisioning key."
          },
          "response": [
            {
              "id": "ae6201a6-af7b-4cf5-b77e-597a18880944",
              "name": "List of keys.",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/keys",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "keys"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T02:26:43.000Z",
              "updatedAt": "2026-07-28T02:26:43.000Z",
              "uid": "35240-ae6201a6-af7b-4cf5-b77e-597a18880944"
            }
          ],
          "createdAt": "2026-07-28T02:26:43.000Z",
          "updatedAt": "2026-07-28T02:26:43.000Z",
          "uid": "35240-e80cad3e-82c6-49d2-8d9b-43c193b10cee"
        },
        {
          "name": "Create API key",
          "id": "db53a9de-553e-4894-9f7c-9cb0afb2c8ef",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"<string>\",\n  \"limit\": \"<number>\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "keys"
              ]
            },
            "description": "Creates a new API key, optionally with a credit limit."
          },
          "response": [
            {
              "id": "d2981261-644c-4ff4-b7da-1fc16428d220",
              "name": "New API key.",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"<string>\",\n  \"limit\": \"<number>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/keys",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "keys"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T02:26:43.000Z",
              "updatedAt": "2026-07-28T02:26:43.000Z",
              "uid": "35240-d2981261-644c-4ff4-b7da-1fc16428d220"
            }
          ],
          "createdAt": "2026-07-28T02:26:43.000Z",
          "updatedAt": "2026-07-28T02:26:43.000Z",
          "uid": "35240-db53a9de-553e-4894-9f7c-9cb0afb2c8ef"
        }
      ],
      "id": "23f2331a-066c-4e92-b27b-f00ff5dd125d",
      "createdAt": "2026-07-28T02:26:43.000Z",
      "updatedAt": "2026-07-28T02:26:43.000Z",
      "uid": "35240-23f2331a-066c-4e92-b27b-f00ff5dd125d"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://openrouter.ai/api/v1"
    }
  ]
}