{
  "generated_at": "2026-04-24T15:01:35.625676+00:00",
  "slug": "nanoapi-org-image-compress",
  "title": "NanoAPI \u00b7 Image compression",
  "url": "https://nanoapi.org/image/compress",
  "category": "media",
  "summary": "Compress images with adjustable quality settings supporting PNG, JPEG, WebP, and AVIF formats up to 10MB.",
  "seo": {
    "title": "Image Compression API - Pay-per-use via x402",
    "description": "Compress images via x402. $0.01 USDC on Base or Solana. Supports PNG, JPEG, WebP, AVIF up to 10MB. Adjustable quality 1-100."
  },
  "use_cases": [
    "Optimize images for web delivery with specific quality targets",
    "Reduce storage costs for image-heavy applications",
    "Generate thumbnails with precise compression ratios"
  ],
  "ideal_buyer": "AI agents and media processing pipelines needing on-demand image optimization without infrastructure.",
  "example_prompt": "Compress this product photo to 85% quality for faster web loading.",
  "example_request_body": {
    "image": "[binary image data]",
    "quality": 85
  },
  "risk_notes": [],
  "pricing_sanity": {
    "flag": "cheap",
    "ratio": 0.125,
    "median_category_atomic": 80000
  },
  "pricing_review_required": false,
  "pricing_decimal_suspect": false,
  "trust_tier": "indexed_external",
  "accepts": [
    {
      "scheme": "exact",
      "network": "base",
      "pay_to": "0xc9d8b70e8d66838aed62919acee5cf3364d54f7d",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "max_amount_required_atomic": "10000",
      "max_timeout_seconds": 300,
      "verified": false,
      "hints": {
        "input": {
          "body": {
            "required": [
              "image",
              "quality"
            ],
            "properties": {
              "image": {
                "type": "string",
                "format": "binary",
                "description": "Image file (PNG, JPEG, WebP, AVIF, max 10MB)"
              },
              "quality": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Compression quality (1 = smallest file, 100 = best quality)"
              }
            }
          },
          "type": "http",
          "method": "POST",
          "bodyType": "form-data"
        },
        "output": {
          "type": "json",
          "example": "<binary JPEG data \u00e2\u0080\u0094 compressed image at target quality>"
        }
      }
    },
    {
      "scheme": "exact",
      "network": "solana",
      "pay_to": "EDA777JRvxbahjFS5x2wmXFR4VZiwTGU7dFA24Zpgp8Q",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "max_amount_required_atomic": "10000",
      "max_timeout_seconds": 300,
      "verified": false,
      "hints": {
        "input": {
          "body": {
            "required": [
              "image",
              "quality"
            ],
            "properties": {
              "image": {
                "type": "string",
                "format": "binary",
                "description": "Image file (PNG, JPEG, WebP, AVIF, max 10MB)"
              },
              "quality": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Compression quality (1 = smallest file, 100 = best quality)"
              }
            }
          },
          "type": "http",
          "method": "POST",
          "bodyType": "form-data"
        },
        "output": {
          "type": "json",
          "example": "<binary JPEG data \u00e2\u0080\u0094 compressed image at target quality>"
        }
      }
    }
  ],
  "origin": {
    "slug": "nanoapi-org",
    "host": "nanoapi.org",
    "title": "NanoAPI \u2014 Pay-per-use APIs for AI agents (image processing + Solana data)",
    "description": "Pay-per-use APIs for AI agents: image processing and Solana data endpoints. $0.001-$0.01 USDC per call on Base or Solana via x402 protocol. No signup or API keys required.",
    "url": "https://nanoapi.org",
    "favicon": "https://nanoapi.org/favicon.png"
  },
  "json_ld": {
    "@id": "https://x402all.com/resource/nanoapi-org-image-compress",
    "url": "https://x402all.com/resource/nanoapi-org-image-compress",
    "name": "NanoAPI \u00b7 Image compression",
    "@type": "WebAPI",
    "offers": [
      {
        "url": "https://x402all.com/resource/nanoapi-org-image-compress",
        "@type": "Offer",
        "price": "0.01",
        "availability": "https://schema.org/InStock",
        "priceCurrency": "USDC",
        "priceSpecification": {
          "@type": "UnitPriceSpecification",
          "price": "0.010000",
          "unitText": "call",
          "priceCurrency": "USDC"
        },
        "eligibleCustomerType": "Agent",
        "additionalProperty": [
          {
            "@type": "PropertyValue",
            "name": "paymentNetwork",
            "value": "base"
          },
          {
            "@type": "PropertyValue",
            "name": "paymentAsset",
            "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
          }
        ]
      },
      {
        "url": "https://x402all.com/resource/nanoapi-org-image-compress",
        "@type": "Offer",
        "price": "0.01",
        "availability": "https://schema.org/InStock",
        "priceCurrency": "USDC",
        "priceSpecification": {
          "@type": "UnitPriceSpecification",
          "price": "0.010000",
          "unitText": "call",
          "priceCurrency": "USDC"
        },
        "eligibleCustomerType": "Agent",
        "additionalProperty": [
          {
            "@type": "PropertyValue",
            "name": "paymentNetwork",
            "value": "solana"
          },
          {
            "@type": "PropertyValue",
            "name": "paymentAsset",
            "value": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
          }
        ]
      }
    ],
    "sameAs": "https://nanoapi.org/image/compress",
    "@context": "https://schema.org",
    "provider": {
      "@id": "https://x402all.com/server/nanoapi-org",
      "url": "https://nanoapi.org",
      "name": "NanoAPI \u2014 Pay-per-use APIs for AI agents (image processing + Solana data)",
      "@type": "Organization"
    },
    "identifier": "nanoapi-org-image-compress",
    "description": "Compress images via x402. $0.01 USDC on Base or Solana. Supports PNG, JPEG, WebP, AVIF up to 10MB. Adjustable quality 1-100.",
    "potentialAction": {
      "@type": "BuyAction",
      "target": "https://axon402.com/test-buy?resource=nanoapi-org-image-compress",
      "description": "Test-buy this endpoint on AXON"
    },
    "applicationCategory": "media"
  },
  "axon_deep_link": "https://axon402.com/test-buy?resource=nanoapi-org-image-compress"
}
