{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pixian/json-schema/pixian-post-v10-removebg-request-schema.json",
  "title": "PostV10RemovebgRequest",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/pixian-openapi-generated.yml#/components/schemas/PostV10RemovebgRequest",
  "type": "object",
  "properties": {
    "image_file": {
      "type": "string",
      "description": "A binary file."
    },
    "image_file_b64": {
      "type": "string",
      "description": "A base64‑encoded string. The string can be at most 1 megabyte in size."
    },
    "image_url": {
      "type": "string",
      "description": "A URL to fetch. Must be a .bmp, .gif, .jpeg, .png, .tiff, or .webp file."
    },
    "size": {
      "type": "string",
      "description": "Supported sizes. Default: auto. auto is interpreted as full; other values unchanged."
    },
    "format": {
      "type": "string",
      "description": "Output format. Default: auto."
    },
    "crop": {
      "type": "boolean",
      "description": "Supported."
    },
    "crop_margin": {
      "type": "string",
      "description": "Supported."
    },
    "channels": {
      "type": "string",
      "description": "Supported. Default: rgba."
    },
    "bg_color": {
      "type": "string",
      "description": "Supported."
    },
    "test": {
      "type": "boolean",
      "description": "Pass in true to indicate that this is a test image. Omit or false for production images."
    }
  }
}