{"uid":"cap_1EhKGsc_shVZk050iG9-G","slug":"x402-image-tools-edit-multi-operation-pipeline-750cd2c6","name":"x402 Image Tools – Edit (Multi-Operation Pipeline)","description":"Apply up to 10 operations in order: rotate (angle), flip, flop, grayscale, blur (sigma), sharpen, negate, trim (cut uniform borders), tint (color), modulate (brightness, saturation, hue).","url":"https://image.kagurazaka.dev/v1/edit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ops":{"type":"array","items":{"type":"object"},"description":"operations in order, each {op: rotate|flip|flop|grayscale|blur|sharpen|negate|trim|tint|modulate, ...}"},"url":{"type":"string","description":"https URL of a JPEG, PNG, WebP, AVIF, GIF, TIFF or SVG image (up to 20 MB, 40 megapixels)"},"format":{"enum":["webp","avif","png","jpeg","gif","tiff"],"type":"string","description":"output format (default: the input's)"},"inline":{"type":"boolean","description":"also return the image as a data URL when it is at most 1 MB"}}},"responseSchema":{"type":"json","example":{"url":"https://dn8i8p8knpn68.cloudfront.net/results/images/3f1c2b9e.webp?Expires=...","bytes":48213,"width":800,"format":"webp","height":600,"expires_in":3600,"input_bytes":912345}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j6WZ4LYrZLM6jTsuDx-vv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Apply a sequential pipeline of up to 10 image transformation operations (rotate, flip, flop, grayscale, blur, sharpen, negate, trim, tint, modulate) to an image at a URL and return the edited result.","exampleAgentPrompt":"Take the image at https://example.com/photo.jpg, rotate it 90 degrees, then apply a blur with sigma 3, and convert the output to WebP format.","exampleUseCases":[{"title":"Grayscale and sharpen product photo","prompt":"Take the product image at https://mystore.com/product.jpg, convert it to grayscale, then sharpen it, and give me the result as a PNG."},{"title":"Rotate and trim social media banner","prompt":"I need to rotate the image at https://assets.mybrand.com/banner.png by 180 degrees and trim the white borders off the edges — output it as WebP please."},{"title":"Adjust brightness and tint for brand colors","prompt":"Can you take the image at https://cdn.example.com/hero.jpg, tint it with a blue color, boost the brightness a bit using modulate, and flip it horizontally, saving the result as JPEG?"}],"resultDescription":"Returns a JSON object with a temporary CDN URL to the edited image, the output image dimensions (width, height), file size in bytes, output format, and an expiry duration in seconds. Optionally includes the image as an inline data URL if it is under 1 MB and inline is requested.","failureModes":["Image URL is unreachable or returns a non-200 response — results in an error","Image exceeds 20 MB or 40 megapixels size limit — rejected with an error","Unsupported image format at source URL — rejected","Invalid operation name or missing required operation parameters — validation error","More than 10 operations specified — may be rejected or truncated","Output CDN URL expires after the returned expires_in seconds — link becomes invalid"],"whenToPreferThis":"Choose this endpoint when you need to apply multiple sequential image transformations in a single API call rather than chaining separate endpoints. It is ideal for pipelines combining rotation, color adjustment, blur, sharpen, flip, trim, tint, or modulate steps on a remote image URL. Prefer it over single-purpose image endpoints when two or more operations must be applied in order to the same image.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:37:33.842Z","isFirstParty":false,"canonicalSlug":"x402-image-tools-edit-multi-operation-pipeline-750cd2c6"}