{
  "info": {
    "_postman_id": "9c369fd8-2c6b-42f6-b8e5-b18b551b5699",
    "name": "Microsoft Azure Cognitive Services Accounts Chat Completions API",
    "description": "APIs for vision, speech, language, and decision-making AI capabilities including Computer Vision, Text Analytics, and Translator services.\n\nContact Support:\n Name: Microsoft Azure Support",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T02:13:33.000Z",
    "updatedAt": "2026-07-28T02:13:34.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-9c369fd8-2c6b-42f6-b8e5-b18b551b5699"
  },
  "item": [
    {
      "name": "deployments",
      "item": [
        {
          "name": "{deployment-id}",
          "item": [
            {
              "name": "chat",
              "item": [
                {
                  "name": "completions",
                  "item": [
                    {
                      "name": "Microsoft Create chat completion",
                      "id": "7520dbad-621e-4898-bc92-bc1690adac78",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "method": "POST",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          },
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"<string>\",\n      \"name\": \"<string>\"\n    },\n    {\n      \"role\": \"tool\",\n      \"content\": \"<string>\",\n      \"name\": \"<string>\"\n    }\n  ],\n  \"temperature\": 1,\n  \"top_p\": 1,\n  \"max_tokens\": \"<integer>\",\n  \"stream\": false,\n  \"stop\": \"<string>\",\n  \"presence_penalty\": 0,\n  \"frequency_penalty\": 0,\n  \"tools\": [\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"<string>\",\n        \"description\": \"<string>\",\n        \"parameters\": {}\n      }\n    },\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"<string>\",\n        \"description\": \"<string>\",\n        \"parameters\": {}\n      }\n    }\n  ],\n  \"response_format\": {\n    \"type\": \"json_object\"\n  }\n}",
                          "options": {
                            "raw": {
                              "headerFamily": "json",
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{baseUrl}}/deployments/:deployment-id/chat/completions?api-version=2024-10-21",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "deployments",
                            ":deployment-id",
                            "chat",
                            "completions"
                          ],
                          "query": [
                            {
                              "description": "(Required) The API version to use",
                              "key": "api-version",
                              "value": "2024-10-21"
                            }
                          ],
                          "variable": [
                            {
                              "id": "eda6f3f2-fb7e-445a-b901-d3aa4bf0a934",
                              "key": "deployment-id",
                              "value": "<string>",
                              "description": "(Required) The deployment name for the model"
                            }
                          ]
                        },
                        "description": "Creates a completion for the chat message. Supports function calling, tool usage, and streaming responses."
                      },
                      "response": [
                        {
                          "id": "10b3f232-12d3-4166-8a77-24894743f376",
                          "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: apikey",
                                "key": "Ocp-Apim-Subscription-Key",
                                "value": "<API Key>"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"<string>\",\n      \"name\": \"<string>\"\n    },\n    {\n      \"role\": \"tool\",\n      \"content\": \"<string>\",\n      \"name\": \"<string>\"\n    }\n  ],\n  \"temperature\": 1,\n  \"top_p\": 1,\n  \"max_tokens\": \"<integer>\",\n  \"stream\": false,\n  \"stop\": \"<string>\",\n  \"presence_penalty\": 0,\n  \"frequency_penalty\": 0,\n  \"tools\": [\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"<string>\",\n        \"description\": \"<string>\",\n        \"parameters\": {}\n      }\n    },\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"<string>\",\n        \"description\": \"<string>\",\n        \"parameters\": {}\n      }\n    }\n  ],\n  \"response_format\": {\n    \"type\": \"json_object\"\n  }\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/deployments/:deployment-id/chat/completions?api-version=2024-10-21",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "deployments",
                                ":deployment-id",
                                "chat",
                                "completions"
                              ],
                              "query": [
                                {
                                  "description": "(Required) The API version to use",
                                  "key": "api-version",
                                  "value": "2024-10-21"
                                }
                              ],
                              "variable": [
                                {
                                  "key": "deployment-id"
                                }
                              ]
                            }
                          },
                          "status": "OK",
                          "code": 200,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"id\": \"<string>\",\n  \"object\": \"chat.completion\",\n  \"created\": \"<integer>\",\n  \"model\": \"<string>\",\n  \"choices\": [\n    {\n      \"index\": \"<integer>\",\n      \"message\": {\n        \"role\": \"<string>\",\n        \"content\": \"<string>\"\n      },\n      \"finish_reason\": \"tool_calls\"\n    },\n    {\n      \"index\": \"<integer>\",\n      \"message\": {\n        \"role\": \"<string>\",\n        \"content\": \"<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:13:34.000Z",
                          "updatedAt": "2026-07-28T02:13:34.000Z",
                          "uid": "35240-10b3f232-12d3-4166-8a77-24894743f376"
                        },
                        {
                          "id": "5c24d3a0-bccf-423c-9a9d-5f5be3a00511",
                          "name": "Invalid request",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: apikey",
                                "key": "Ocp-Apim-Subscription-Key",
                                "value": "<API Key>"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"<string>\",\n      \"name\": \"<string>\"\n    },\n    {\n      \"role\": \"tool\",\n      \"content\": \"<string>\",\n      \"name\": \"<string>\"\n    }\n  ],\n  \"temperature\": 1,\n  \"top_p\": 1,\n  \"max_tokens\": \"<integer>\",\n  \"stream\": false,\n  \"stop\": \"<string>\",\n  \"presence_penalty\": 0,\n  \"frequency_penalty\": 0,\n  \"tools\": [\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"<string>\",\n        \"description\": \"<string>\",\n        \"parameters\": {}\n      }\n    },\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"<string>\",\n        \"description\": \"<string>\",\n        \"parameters\": {}\n      }\n    }\n  ],\n  \"response_format\": {\n    \"type\": \"json_object\"\n  }\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/deployments/:deployment-id/chat/completions?api-version=2024-10-21",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "deployments",
                                ":deployment-id",
                                "chat",
                                "completions"
                              ],
                              "query": [
                                {
                                  "description": "(Required) The API version to use",
                                  "key": "api-version",
                                  "value": "2024-10-21"
                                }
                              ],
                              "variable": [
                                {
                                  "key": "deployment-id"
                                }
                              ]
                            }
                          },
                          "status": "Bad Request",
                          "code": 400,
                          "_postman_previewlanguage": "text",
                          "header": [],
                          "cookie": [],
                          "responseTime": null,
                          "body": null,
                          "createdAt": "2026-07-28T02:13:34.000Z",
                          "updatedAt": "2026-07-28T02:13:34.000Z",
                          "uid": "35240-5c24d3a0-bccf-423c-9a9d-5f5be3a00511"
                        },
                        {
                          "id": "d8cf0506-dc3b-4b58-aee0-f5f9652d4520",
                          "name": "Unauthorized",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: apikey",
                                "key": "Ocp-Apim-Subscription-Key",
                                "value": "<API Key>"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"<string>\",\n      \"name\": \"<string>\"\n    },\n    {\n      \"role\": \"tool\",\n      \"content\": \"<string>\",\n      \"name\": \"<string>\"\n    }\n  ],\n  \"temperature\": 1,\n  \"top_p\": 1,\n  \"max_tokens\": \"<integer>\",\n  \"stream\": false,\n  \"stop\": \"<string>\",\n  \"presence_penalty\": 0,\n  \"frequency_penalty\": 0,\n  \"tools\": [\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"<string>\",\n        \"description\": \"<string>\",\n        \"parameters\": {}\n      }\n    },\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"<string>\",\n        \"description\": \"<string>\",\n        \"parameters\": {}\n      }\n    }\n  ],\n  \"response_format\": {\n    \"type\": \"json_object\"\n  }\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/deployments/:deployment-id/chat/completions?api-version=2024-10-21",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "deployments",
                                ":deployment-id",
                                "chat",
                                "completions"
                              ],
                              "query": [
                                {
                                  "description": "(Required) The API version to use",
                                  "key": "api-version",
                                  "value": "2024-10-21"
                                }
                              ],
                              "variable": [
                                {
                                  "key": "deployment-id"
                                }
                              ]
                            }
                          },
                          "status": "Unauthorized",
                          "code": 401,
                          "_postman_previewlanguage": "text",
                          "header": [],
                          "cookie": [],
                          "responseTime": null,
                          "body": null,
                          "createdAt": "2026-07-28T02:13:34.000Z",
                          "updatedAt": "2026-07-28T02:13:34.000Z",
                          "uid": "35240-d8cf0506-dc3b-4b58-aee0-f5f9652d4520"
                        },
                        {
                          "id": "571826da-4213-49ad-87ef-80f6abc9b2a6",
                          "name": "Rate limit exceeded",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: apikey",
                                "key": "Ocp-Apim-Subscription-Key",
                                "value": "<API Key>"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"<string>\",\n      \"name\": \"<string>\"\n    },\n    {\n      \"role\": \"tool\",\n      \"content\": \"<string>\",\n      \"name\": \"<string>\"\n    }\n  ],\n  \"temperature\": 1,\n  \"top_p\": 1,\n  \"max_tokens\": \"<integer>\",\n  \"stream\": false,\n  \"stop\": \"<string>\",\n  \"presence_penalty\": 0,\n  \"frequency_penalty\": 0,\n  \"tools\": [\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"<string>\",\n        \"description\": \"<string>\",\n        \"parameters\": {}\n      }\n    },\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"<string>\",\n        \"description\": \"<string>\",\n        \"parameters\": {}\n      }\n    }\n  ],\n  \"response_format\": {\n    \"type\": \"json_object\"\n  }\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/deployments/:deployment-id/chat/completions?api-version=2024-10-21",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "deployments",
                                ":deployment-id",
                                "chat",
                                "completions"
                              ],
                              "query": [
                                {
                                  "description": "(Required) The API version to use",
                                  "key": "api-version",
                                  "value": "2024-10-21"
                                }
                              ],
                              "variable": [
                                {
                                  "key": "deployment-id"
                                }
                              ]
                            }
                          },
                          "status": "Too Many Requests",
                          "code": 429,
                          "_postman_previewlanguage": "text",
                          "header": [],
                          "cookie": [],
                          "responseTime": null,
                          "body": null,
                          "createdAt": "2026-07-28T02:13:34.000Z",
                          "updatedAt": "2026-07-28T02:13:34.000Z",
                          "uid": "35240-571826da-4213-49ad-87ef-80f6abc9b2a6"
                        }
                      ],
                      "createdAt": "2026-07-28T02:13:34.000Z",
                      "updatedAt": "2026-07-28T02:13:34.000Z",
                      "uid": "35240-7520dbad-621e-4898-bc92-bc1690adac78"
                    }
                  ],
                  "id": "664388db-382b-4816-9bee-5511ff1297cc",
                  "createdAt": "2026-07-28T02:13:34.000Z",
                  "updatedAt": "2026-07-28T02:13:34.000Z",
                  "uid": "35240-664388db-382b-4816-9bee-5511ff1297cc"
                }
              ],
              "id": "b79c40ea-9b63-4719-a2fd-9c826b99c4cf",
              "createdAt": "2026-07-28T02:13:34.000Z",
              "updatedAt": "2026-07-28T02:13:34.000Z",
              "uid": "35240-b79c40ea-9b63-4719-a2fd-9c826b99c4cf"
            }
          ],
          "id": "b1dccfd2-2b26-4cf1-bf1b-54d9131092e7",
          "createdAt": "2026-07-28T02:13:34.000Z",
          "updatedAt": "2026-07-28T02:13:34.000Z",
          "uid": "35240-b1dccfd2-2b26-4cf1-bf1b-54d9131092e7"
        }
      ],
      "id": "8eb8ce18-3ced-4e62-b4fc-d926a7ab9f40",
      "createdAt": "2026-07-28T02:13:34.000Z",
      "updatedAt": "2026-07-28T02:13:34.000Z",
      "uid": "35240-8eb8ce18-3ced-4e62-b4fc-d926a7ab9f40"
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "Ocp-Apim-Subscription-Key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "region",
      "value": "eastus"
    },
    {
      "key": "baseUrl",
      "value": "https://{{region}}.api.cognitive.microsoft.com"
    }
  ]
}