{
  "format": "delx/intent-card/v1",
  "id": "background-replacement-api",
  "intent": "replace a product image background with studio gray or a solid color",
  "title": "Background replacement API for agents",
  "description": "Replace one bounded image background with studio gray or #RRGGBB for $0.003 and receive an opaque PNG plus receipt.",
  "keywords": [
    "background replacement API",
    "product photo background",
    "studio background",
    "x402 image editing"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/background-replacement-api",
  "machine_url": "https://commerce.delx.ai/intents/background-replacement-api.json",
  "recommendation": {
    "tool_name": "replace_background",
    "service_name": "Background Replace for Agents",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/replace-background",
    "price_usdc": "0.003",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "image_base64": {
          "type": "string",
          "minLength": 1,
          "maxLength": 349550,
          "description": "One base64 PNG, JPEG, or WebP up to 256 KiB decoded."
        },
        "fill": {
          "type": "string",
          "description": "Optional #RRGGBB studio fill. Defaults to studio gray."
        }
      },
      "required": [
        "image_base64"
      ],
      "additionalProperties": false
    },
    "example_input": {
      "image_base64": "\u003cbase64 still>",
      "fill": "#112233"
    },
    "example_output": {
      "image_url": "https://api.delx.ai/api/v1/generated-replaced-backgrounds/example.png",
      "sale_price_usdc": 0.003,
      "has_transparency": false
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/replace-background -m POST -H 'x-delx-source: intent-card-background-replacement-api' --max-amount 0.003 -b '{\"image_base64\":\"\u003cbase64 still>\",\"fill\":\"#112233\"}'",
      "max_amount_usdc": "0.003"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-background-replacement-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/replace-background"
  }
}
