{"uid":"cap_BSHI0iGwJBH2bIdPD6kCL","slug":"delx-commerce-image-transform-api-e4e863d5","name":"Delx Commerce Image Transform API","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/image-transform?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"quality":{"type":"integer","default":85,"maximum":95,"minimum":40,"description":"JPEG/WebP quality. PNG ignores this field."},"image_base64":{"type":"string","maxLength":8388608,"minLength":1,"description":"One base64-encoded PNG, JPEG, or WebP image; decoded input is limited to 6 MiB. Data-URI prefixes are accepted."},"max_dimension":{"enum":[256,512,768,1024,1536,2048],"type":"integer","default":1024},"output_format":{"enum":["webp","png","jpeg"],"type":"string","default":"webp"}}},"responseSchema":{"type":"json","example":{"bytes":42132,"model":"pillow","width":1024,"height":576,"sha256":"2d6c7c2b3f3c8e1e7b0d3a5b6e7f8a9b1234567890abcdef1234567890abcdef","provider":"first-party","image_url":"https://api.delx.ai/api/v1/generated-image-transforms/2d6c7c2b3f3c8e1e7b0d3a5b6e7f8a9b.webp","media_type":"image/webp","transform_id":"8e2f4a7d4f3d42b5a2c8f4ecb2b6d5a1","output_format":"webp","sale_price_usdc":0.001}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8QWgfrBEIosqij2qtitSc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resizes and re-encodes a base64-encoded image to a specified format (WebP, PNG, JPEG) and maximum dimension, returning a hosted URL and SHA256 hash, paid per-call via USDC on Base or Solana.","exampleAgentPrompt":"Take this base64-encoded PNG image, resize it so the longest side is at most 1024 pixels, convert it to WebP at quality 85, and give me back the hosted URL and SHA256 hash.","exampleUseCases":[{"title":"Optimize product images for e-commerce","prompt":"I have a base64-encoded JPEG of a product photo — can you resize it to a max of 512 pixels and convert it to WebP at quality 80 so it loads faster on our storefront?"},{"title":"Convert screenshots for documentation","prompt":"Take this base64 PNG screenshot, keep it at up to 1024 pixels on the longest side, and convert it to WebP format so I can embed it in the docs with a shareable URL."},{"title":"Thumbnail generation for a content pipeline","prompt":"Resize this base64-encoded image down to 256 pixels max dimension as a JPEG at quality 75, and give me back the hosted image URL and the SHA256 so I can verify it later."}],"resultDescription":"A JSON object containing the hosted URL of the transformed image, its width and height in pixels, file size in bytes, SHA256 hash for verification, media type, output format, transform ID, and the exact sale price in USDC ($0.001). The image is immediately accessible at the returned URL.","failureModes":["Image base64 payload exceeds 8 MiB decoded limit — returns validation error","Invalid base64 string or unsupported image format — returns parse/decode error","Requested max_dimension not in allowed enum [256,512,768,1024,1536,2048] — returns validation error","Quality value outside 40–95 range — returns validation error","Payment via x402 not completed or insufficient USDC — returns 402 Payment Required","Image is corrupt or cannot be processed by Pillow — returns processing error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call image resize and format conversion with no subscription or signup, a verifiable SHA256 hash on output, and a hosted CDN URL returned immediately. Ideal for agent pipelines that process images on-demand and want deterministic per-image pricing in USDC. Prefer this over general-purpose image generation APIs when you already have a source image and only need resizing/re-encoding, not AI-generated content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:44.804Z","isFirstParty":false,"canonicalSlug":"delx-commerce-image-transform-api-e4e863d5"}