{
  "openapi": "3.1.0",
  "x-zeroclick-navigation": {
    "fullSpec": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/openapi.json",
    "services": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/services",
    "serviceSpecTemplate": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/services/{slug}/openapi.json",
    "searchTemplate": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/openapi.json?q={text}",
    "operationTemplate": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/openapi.json?path={path}&method={method}",
    "firstPage": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/openapi.json?page=1",
    "instructions": [
      "Use this spec if it contains the operation and details you need. Otherwise, search or open a relevant service spec using the links below.",
      "Find service slugs in x-zeroclick-services or x-payment-info.rates[].service; use them in serviceSpecTemplate, never as request values.",
      "URL-encode template values. Search is ranked; service, path, and method filters are exact. Filters combine.",
      "Pages contain up to 10 operations; follow info.x-next or the Link header if you need more results. Shared operations retain all selector values."
    ]
  },
  "info": {
    "title": "DeepAI",
    "version": "1.0.0",
    "description": "AI image tools as simple APIs. DeepAI generates images from text, edits photos from plain instructions, removes backgrounds, colorizes black and white photos, and upscales images with standard or creative enhancement. Every call is billed per image; the image generator and photo editor choose a quality tier per request. This server is a pay-per-use, transparent proxy in front of DeepAI's own API: it handles identity, payment, and proxying. Agents can purchase autonomously or with their human's approval. The complete verified paid surface is listed at /openapi.json, the source of truth for available operations. Each operation here carries its live price in x-payment-info. Use the operations and details here when they meet your needs. Filtered specs contain only matching operations; if you cannot find what you need here, use search or the service catalog. The live catalog at /manifest.json is authoritative for prices and any free included units (prices[].includedUnits) - some meters include free usage per account before any charge, reserved for agents claimed by a human with a verified email.",
    "x-guidance": "This is a filtered API reference. Request and response schemas are preserved. Shared operations retain selector values and prices for all their services; service slugs are pricing labels, never request values. If this spec lacks what you need, use the navigation links to search or open a relevant service spec."
  },
  "x-service-info": {
    "categories": [
      "ai",
      "media"
    ],
    "docs": {
      "homepage": "https://deepai.org/",
      "apiReference": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/openapi.json",
      "llms": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/llms.txt"
    }
  },
  "externalDocs": {
    "url": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/llms-full.txt",
    "description": "How to authenticate, pay, and call this API; links the upstream API reference."
  },
  "servers": [
    {
      "url": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y",
      "description": "Pay-per-use access to DeepAI's API"
    }
  ],
  "security": [
    {
      "payPerUse": [],
      "agentBearer": []
    }
  ],
  "components": {
    "securitySchemes": {
      "payPerUse": {
        "type": "apiKey",
        "in": "header",
        "name": "x-payment",
        "description": "Pay-per-use access. An unpaid call returns 402 Payment Required with a signed challenge; settle it with a supported payment method (x402 or MPP today) and retry with the proof in this header (x402) or as Authorization: Payment (MPP; use ZC-Agent-Authorization for a separate buyer bearer). No upstream API key is needed, and an agent without a payment method can set one up instantly at no cost."
      },
      "agentBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Agent identity credential, required on every call: register once (anonymous registration is one free API call; the recipe is at https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/auth.md), exchange the assertion for an access token, and send Authorization: Bearer <token> - or ZC-Agent-Authorization: Bearer <token> when Authorization carries an MPP Payment credential. A call without it answers 401 bearer_required before any price is quoted."
      },
      "sellerAgentX402": {
        "type": "apiKey",
        "in": "header",
        "name": "Payment-Signature",
        "description": "Signed $0 x402 proof from the 402 challenge"
      },
      "sellerAgentMpp": {
        "type": "http",
        "scheme": "Payment",
        "description": "Signed $0 MPP proof from the 402 challenge"
      }
    }
  },
  "paths": {
    "/api/background-remover": {
      "post": {
        "tags": [
          "background remover",
          "background removal",
          "transparent PNG"
        ],
        "summary": "Background Remover",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "output_url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique job identifier."
                    },
                    "output_url": {
                      "type": "string",
                      "description": "URL of the result PNG with an alpha channel, at the input size up to 2000 px on the long side."
                    }
                  }
                }
              }
            },
            "description": "Successful response"
          },
          "401": {
            "description": "Agent identity credential required: register once, then retry with Authorization: Bearer <token>."
          },
          "402": {
            "description": "Payment required"
          }
        },
        "description": "Removes the background and returns a URL to a PNG with an alpha channel, transparent where the background was. Inputs over 2000 px on the long side are downscaled to fit 2000x2000. Runs DeepAI's background removal model. Billed per image.",
        "operationId": "removeBackground",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "image"
                ],
                "properties": {
                  "image": {
                    "type": "string",
                    "example": "https://picsum.photos/id/237/400/300",
                    "description": "The image as an https URL or a base64 data URL (data:image/png;base64,...). JPG, PNG, WebP, AVIF, HEIC, GIF (first frame), BMP or TIFF. JSON body up to 10 MiB, about 7.5 MB of image inline; send larger images by URL. Input transparency is discarded; EXIF rotation is applied."
                  }
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "image"
                ],
                "properties": {
                  "image": {
                    "type": "string",
                    "format": "binary",
                    "description": "Image file, URL, or base64 data"
                  }
                }
              }
            }
          },
          "required": true
        },
        "x-zeroclick-document-sources": [
          {
            "gaps": [],
            "pages": [
              1
            ],
            "sourceId": "sds_9aaea29cbd601a4bae590c36765aa7ef",
            "authority": "supplemental",
            "conflicts": [
              "/responses/200/description",
              "/description"
            ],
            "revisionId": "sdrn_OP_Ucg-bJAo0shnsSC7uN"
          },
          {
            "gaps": [
              "Missing explicit API documentation schema details such as parameter names for image input, response structure, and authentication headers."
            ],
            "pages": [
              1
            ],
            "sourceId": "sds_Dd-e10PYtkBki5QRdOOxe",
            "authority": "supplemental",
            "conflicts": [
              "/responses/200/description",
              "/description",
              "/operationId",
              "/requestBody/content/multipart/form-data/schema/properties/image/description"
            ],
            "revisionId": "sdrn_HSBuLD5iv78ScVbOl1kIe"
          },
          {
            "gaps": [
              "Missing request parameters",
              "Missing response schema",
              "Missing authentication details"
            ],
            "pages": [
              1
            ],
            "sourceId": "sds_lfINjUuvjcImLNHDYBk1y",
            "authority": "supplemental",
            "conflicts": [
              "/description",
              "/operationId"
            ],
            "revisionId": "sdrn_uTfLkxzC4emOkzt0Ss6ex"
          },
          {
            "gaps": [],
            "pages": [
              1
            ],
            "sourceId": "sds_LijjjfD95ZuEl_vbTB-30",
            "authority": "supplemental",
            "conflicts": [
              "/responses/200/description",
              "/description"
            ],
            "revisionId": "sdrn_O5TLrtlNOoiTJXPKm3tvd"
          }
        ],
        "x-zeroclick-services": [
          "background-remover"
        ],
        "x-payment-info": {
          "access": "payg",
          "protocols": [
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "USD"
              }
            },
            {
              "x402": {
                "network": "eip155:8453",
                "scheme": "exact",
                "currency": "USDC"
              }
            }
          ],
          "offers": [
            {
              "amount": "10000",
              "currency": "0x20C000000000000000000000b9537d11c60E8b50",
              "description": "$0.010000 per image (images, service background-remover)",
              "intent": "charge",
              "method": "tempo"
            }
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "rates": [
            {
              "service": "background-remover",
              "meter": "images",
              "unit": "image",
              "unitSize": 1,
              "priceUsd": "0.010000",
              "includedUnits": 0
            }
          ]
        }
      }
    }
  },
  "x-zeroclick-navigation-footer": {
    "instructions": [
      "Use this spec if it contains the operation and details you need. Otherwise, search or open a relevant service spec using the links below.",
      "Find service slugs in x-zeroclick-services or x-payment-info.rates[].service; use them in serviceSpecTemplate, never as request values.",
      "URL-encode template values. Search is ranked; service, path, and method filters are exact. Filters combine.",
      "Pages contain up to 10 operations; follow info.x-next or the Link header if you need more results. Shared operations retain all selector values."
    ],
    "fullSpec": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/openapi.json",
    "services": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/services",
    "serviceSpecTemplate": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/services/{slug}/openapi.json",
    "searchTemplate": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/openapi.json?q={text}",
    "operationTemplate": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/openapi.json?path={path}&method={method}",
    "firstPage": "https://deepai.pay.zeroclick.io/zcj/wnwzyd8oac2y/openapi.json?page=1"
  }
}
