{
  "info": {
    "name": "Mehar Image Editing API",
    "description": "AI-powered image editing API: upscale, object removal, background removal, enhance, cartoonize, sketch, colorize. All /api/* routes require the x-api-key header (see collection auth / {{apiKey}} variable).",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "apikey",
    "apikey": [
      { "key": "key", "value": "x-api-key", "type": "string" },
      { "key": "value", "value": "{{apiKey}}", "type": "string" },
      { "key": "in", "value": "header", "type": "string" }
    ]
  },
  "variable": [
    { "key": "baseUrl", "value": "http://localhost:3000", "type": "string" },
    { "key": "apiKey", "value": "", "type": "string" }
  ],
  "item": [
    {
      "name": "Health check",
      "request": {
        "method": "GET",
        "header": [],
        "auth": { "type": "noauth" },
        "url": { "raw": "{{baseUrl}}/health", "host": ["{{baseUrl}}"], "path": ["health"] }
      }
    },
    {
      "name": "List tasks",
      "request": {
        "method": "GET",
        "header": [],
        "url": { "raw": "{{baseUrl}}/api/tasks", "host": ["{{baseUrl}}"], "path": ["api", "tasks"] }
      }
    },
    {
      "name": "Upscale / Super-Resolution",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "formdata",
          "formdata": [
            { "key": "image", "type": "file", "src": [] },
            { "key": "prompt", "type": "text", "value": "", "disabled": true }
          ]
        },
        "url": { "raw": "{{baseUrl}}/api/upscale", "host": ["{{baseUrl}}"], "path": ["api", "upscale"] }
      }
    },
    {
      "name": "Object Removal",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "formdata",
          "formdata": [
            { "key": "image", "type": "file", "src": [] },
            { "key": "mask", "type": "file", "src": [], "disabled": true },
            { "key": "prompt", "type": "text", "value": "", "disabled": true }
          ]
        },
        "url": { "raw": "{{baseUrl}}/api/object-removal", "host": ["{{baseUrl}}"], "path": ["api", "object-removal"] }
      }
    },
    {
      "name": "Background Removal",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "formdata",
          "formdata": [
            { "key": "image", "type": "file", "src": [] },
            { "key": "prompt", "type": "text", "value": "", "disabled": true }
          ]
        },
        "url": { "raw": "{{baseUrl}}/api/background-removal", "host": ["{{baseUrl}}"], "path": ["api", "background-removal"] }
      }
    },
    {
      "name": "Enhance (Denoise / Clarity)",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "formdata",
          "formdata": [
            { "key": "image", "type": "file", "src": [] },
            { "key": "prompt", "type": "text", "value": "", "disabled": true }
          ]
        },
        "url": { "raw": "{{baseUrl}}/api/enhance", "host": ["{{baseUrl}}"], "path": ["api", "enhance"] }
      }
    },
    {
      "name": "Cartoonize / Anime",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "formdata",
          "formdata": [
            { "key": "image", "type": "file", "src": [] },
            { "key": "prompt", "type": "text", "value": "", "disabled": true }
          ]
        },
        "url": { "raw": "{{baseUrl}}/api/cartoonize", "host": ["{{baseUrl}}"], "path": ["api", "cartoonize"] }
      }
    },
    {
      "name": "Image to Sketch",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "formdata",
          "formdata": [
            { "key": "image", "type": "file", "src": [] },
            { "key": "prompt", "type": "text", "value": "", "disabled": true }
          ]
        },
        "url": { "raw": "{{baseUrl}}/api/sketch", "host": ["{{baseUrl}}"], "path": ["api", "sketch"] }
      }
    },
    {
      "name": "Colorize B&W",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "formdata",
          "formdata": [
            { "key": "image", "type": "file", "src": [] },
            { "key": "prompt", "type": "text", "value": "", "disabled": true }
          ]
        },
        "url": { "raw": "{{baseUrl}}/api/colorize", "host": ["{{baseUrl}}"], "path": ["api", "colorize"] }
      }
    }
  ]
}
