{
  "info": {
    "_postman_id": "985c3873-2c46-48bf-8d03-3b0bc95bf7c6",
    "name": "OpenRouter Chat 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:37.000Z",
    "updatedAt": "2026-07-28T02:26:37.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-985c3873-2c46-48bf-8d03-3b0bc95bf7c6"
  },
  "item": [
    {
      "name": "chat",
      "item": [
        {
          "name": "completions",
          "item": [
            {
              "name": "Create chat completion",
              "id": "c3fda3b4-34ca-4d91-ab8f-3fbd6693e001",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"model\": \"<string>\",\n  \"messages\": [\n    {\n      \"role\": \"tool\",\n      \"content\": \"<string>\",\n      \"name\": \"<string>\",\n      \"tool_call_id\": \"<string>\"\n    },\n    {\n      \"role\": \"assistant\",\n      \"content\": \"<string>\",\n      \"name\": \"<string>\",\n      \"tool_call_id\": \"<string>\"\n    }\n  ],\n  \"stream\": false,\n  \"max_tokens\": \"<integer>\",\n  \"temperature\": \"<number>\",\n  \"top_p\": \"<number>\",\n  \"tool_choice\": \"<string>\",\n  \"response_format\": {},\n  \"provider\": {},\n  \"user\": \"<string>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/chat/completions",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "chat",
                    "completions"
                  ]
                },
                "description": "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."
              },
              "response": [
                {
                  "id": "66ee0c17-776d-4b22-ac51-a2e7766c5157",
                  "name": "Chat completion response.",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"model\": \"<string>\",\n  \"messages\": [\n    {\n      \"role\": \"tool\",\n      \"content\": \"<string>\",\n      \"name\": \"<string>\",\n      \"tool_call_id\": \"<string>\"\n    },\n    {\n      \"role\": \"assistant\",\n      \"content\": \"<string>\",\n      \"name\": \"<string>\",\n      \"tool_call_id\": \"<string>\"\n    }\n  ],\n  \"stream\": false,\n  \"max_tokens\": \"<integer>\",\n  \"temperature\": \"<number>\",\n  \"top_p\": \"<number>\",\n  \"tool_choice\": \"<string>\",\n  \"response_format\": {},\n  \"provider\": {},\n  \"user\": \"<string>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/chat/completions",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "chat",
                        "completions"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"id\": \"<string>\",\n  \"object\": \"<string>\",\n  \"created\": \"<integer>\",\n  \"model\": \"<string>\",\n  \"choices\": [\n    {\n      \"index\": \"<integer>\",\n      \"message\": {\n        \"role\": \"user\",\n        \"content\": \"<string>\",\n        \"name\": \"<string>\",\n        \"tool_call_id\": \"<string>\"\n      },\n      \"finish_reason\": \"tool_calls\"\n    },\n    {\n      \"index\": \"<integer>\",\n      \"message\": {\n        \"role\": \"user\",\n        \"content\": \"<string>\",\n        \"name\": \"<string>\",\n        \"tool_call_id\": \"<string>\"\n      },\n      \"finish_reason\": \"content_filter\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": \"<integer>\",\n    \"completion_tokens\": \"<integer>\",\n    \"total_tokens\": \"<integer>\"\n  }\n}",
                  "createdAt": "2026-07-28T02:26:37.000Z",
                  "updatedAt": "2026-07-28T02:26:37.000Z",
                  "uid": "35240-66ee0c17-776d-4b22-ac51-a2e7766c5157"
                }
              ],
              "createdAt": "2026-07-28T02:26:37.000Z",
              "updatedAt": "2026-07-28T02:26:37.000Z",
              "uid": "35240-c3fda3b4-34ca-4d91-ab8f-3fbd6693e001"
            }
          ],
          "id": "d4499155-d80b-445d-84f3-42fe91c4265d",
          "createdAt": "2026-07-28T02:26:37.000Z",
          "updatedAt": "2026-07-28T02:26:37.000Z",
          "uid": "35240-d4499155-d80b-445d-84f3-42fe91c4265d"
        }
      ],
      "id": "288b1e33-2140-4da9-858a-58d312887c17",
      "createdAt": "2026-07-28T02:26:37.000Z",
      "updatedAt": "2026-07-28T02:26:37.000Z",
      "uid": "35240-288b1e33-2140-4da9-858a-58d312887c17"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://openrouter.ai/api/v1"
    }
  ]
}