{
  "info": {
    "name": "Grok — mcp.ai",
    "description": "REST API for the Grok MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/grok",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "grok_create_embeddings",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/embeddings",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "embeddings"
          ]
        },
        "description": "Create vector embeddings for one or more text inputs with an xAI embedding model.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"user\": \"\",\n  \"input\": \"\",\n  \"model\": \"\",\n  \"dimensions\": 0,\n  \"encoding_format\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "grok_create_response",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/response",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "response"
          ]
        },
        "description": "Generate a bounded, non-streaming Grok response from text or structured multimodal input, with optional reasoning, search, and function or web-search tools. Responses are ephemeral by default; set sto",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"input\": \"\",\n  \"model\": \"\",\n  \"store\": false,\n  \"tools\": \"\",\n  \"temperature\": 0,\n  \"tool_choice\": \"\",\n  \"instructions\": \"\",\n  \"reasoning_effort\": \"\",\n  \"max_output_tokens\": 0,\n  \"search_parameters\": {},\n  \"previous_response_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "grok_generate_image",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/generate/image",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "generate",
            "image"
          ]
        },
        "description": "Generate one or more images from a text prompt with an xAI image-generation model.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"user\": \"\",\n  \"model\": \"\",\n  \"prompt\": \"\",\n  \"resolution\": \"\",\n  \"image_count\": 0,\n  \"aspect_ratio\": \"\",\n  \"response_format\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "grok_generate_video",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/generate/video",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "generate",
            "video"
          ]
        },
        "description": "Start asynchronous xAI video generation from a text prompt, optionally conditioned on an image, and return a request ID for status checks.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"user\": \"\",\n  \"model\": \"\",\n  \"prompt\": \"\",\n  \"duration\": 0,\n  \"image_url\": \"\",\n  \"resolution\": \"\",\n  \"aspect_ratio\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "grok_get_api_key_info",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/api/key/info",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "api",
            "key",
            "info"
          ]
        },
        "description": "Inspect the connected xAI API key's identity, wildcard or granular ACLs, and key or team blocking state.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "grok_get_current_account",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/current/account",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "current",
            "account"
          ]
        },
        "description": "Verify the connected xAI credential and return the caller, team, zero-data-retention status, and key blocking state.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "grok_get_video",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/video",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "video"
          ]
        },
        "description": "Check an asynchronous xAI video request. Returns pending while generation is in progress, the video and usage when done, or the structured generation error when failed.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"request_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "grok_list_models",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/models",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "models"
          ]
        },
        "description": "List models available to the connected xAI key, including model IDs and published pricing metadata needed to choose a model for other tools.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}