{
  "format": "delx/intent-card/v1",
  "id": "image-resize-conversion-api",
  "intent": "resize or convert an image to WebP PNG or JPEG",
  "title": "Image resize and conversion API for agents",
  "description": "Resize or convert one base64 image for $0.001 with bounded dimensions, a durable artifact URL and SHA-256 receipt—no URL fetch or input retention.",
  "keywords": [
    "image resize API",
    "image conversion API",
    "WebP conversion API",
    "PNG JPEG conversion",
    "image optimization for agents",
    "x402 image transform"
  ],
  "updated_at": "2026-08-01",
  "canonical_url": "https://commerce.delx.ai/intents/image-resize-conversion-api",
  "machine_url": "https://commerce.delx.ai/intents/image-resize-conversion-api.json",
  "recommendation": {
    "tool_name": "transform_image",
    "service_name": "Delx Image Transform",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/image-transform",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "image_base64": {
          "type": "string",
          "minLength": 1,
          "maxLength": 8388608,
          "description": "One base64-encoded PNG, JPEG, or WebP image; decoded input is limited to 6 MiB. Data-URI prefixes are accepted."
        },
        "output_format": {
          "type": "string",
          "enum": [
            "webp",
            "png",
            "jpeg"
          ],
          "default": "webp"
        },
        "max_dimension": {
          "type": "integer",
          "enum": [
            256,
            512,
            768,
            1024,
            1536,
            2048
          ],
          "default": 1024
        },
        "quality": {
          "type": "integer",
          "minimum": 40,
          "maximum": 95,
          "default": 85,
          "description": "JPEG/WebP quality. PNG ignores this field."
        }
      },
      "required": [
        "image_base64"
      ],
      "additionalProperties": false
    },
    "example_input": {
      "image_base64": "\u003cbase64 PNG/JPEG/WebP up to 6 MiB>",
      "output_format": "webp",
      "max_dimension": 1024,
      "quality": 85
    },
    "example_output": {
      "transform_id": "8e2f4a7d4f3d42b5a2c8f4ecb2b6d5a1",
      "image_url": "https://api.delx.ai/api/v1/generated-image-transforms/2d6c7c2b3f3c8e1e7b0d3a5b6e7f8a9b.webp",
      "provider": "first-party",
      "model": "pillow",
      "output_format": "webp",
      "media_type": "image/webp",
      "width": 1024,
      "height": 576,
      "bytes": 42132,
      "sha256": "2d6c7c2b3f3c8e1e7b0d3a5b6e7f8a9b1234567890abcdef1234567890abcdef",
      "sale_price_usdc": 0.001
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/image-transform -m POST -H 'x-delx-source: intent-card-image-resize-conversion-api' --max-amount 0.001 -b '{\"image_base64\":\"\u003cbase64 PNG/JPEG/WebP up to 6 MiB>\",\"output_format\":\"webp\",\"max_dimension\":1024,\"quality\":85}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-image-resize-conversion-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/image-transform"
  }
}
