{"uid":"cap_pZqD0hPhRv4i-U5WLKlLm","slug":"agentrxi-image-convert-resize-ce089cfd","name":"AgentRXI Image Convert & Resize","description":"Convert and resize images with ImageMagick: HEIC/AVIF/PNG/JPEG/WebP/GIF/TIFF/BMP in; PNG, JPEG, WebP, GIF, TIFF, BMP, ICO or AVIF out. Resize (contain, cover or fill), rotate, grayscale, quality, strip metadata; auto-orients phone photos. Also callable as GET with the same fields as query parameters.","url":"https://agentrxi.com/v1/image/convert?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"to":{"type":"string","description":"png, jpg, webp, gif, tiff, bmp, ico, avif"},"fit":{"type":"string","description":"contain (default), cover, fill"},"url":{"type":"string","description":"https URL of the file (max 20 MB)"},"store":{"type":"boolean","description":"Return 7-day share links instead of base64 (+$0.001); automatic above 3 MB"},"width":{"type":"integer"},"format":{"type":"string","description":"binary = raw file bytes (single output)"},"height":{"type":"integer"},"rotate":{"type":"integer","description":"90, 180, 270"},"quality":{"type":"integer"},"filename":{"type":"string","description":"Name with extension, helps detect the type"},"grayscale":{"type":"boolean"},"file_base64":{"type":"string","description":"Or the file as base64 / data URI"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_M6MDAQ8yHUR5HHWz7joYl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts and resizes images between HEIC, AVIF, PNG, JPEG, WebP, GIF, TIFF, BMP, and ICO formats using ImageMagick, with support for resizing, rotation, grayscale, quality control, and metadata stripping.","exampleAgentPrompt":"Take this image URL https://example.com/photo.heic, convert it to JPEG at quality 85, resize it to 800 pixels wide using contain mode, strip the metadata, and give me back a 7-day share link.","exampleUseCases":[{"title":"HEIC to JPEG for social sharing","prompt":"I just shot a bunch of photos on my iPhone and they're HEIC files — can you convert this one at https://example.com/shot.heic to a JPEG at quality 80 and give me a shareable link?"},{"title":"Favicon ICO from PNG logo","prompt":"Convert my company logo at https://cdn.example.com/logo.png to an ICO file at 64×64 pixels so I can use it as a favicon."},{"title":"Grayscale thumbnail for article cover","prompt":"Take this image at https://myblog.com/header.jpg, convert it to WebP in grayscale, resize it to 600 wide and 400 tall using cover mode, and return the base64 result."}],"resultDescription":"Returns the converted image as a base64-encoded string (or data URI) by default; for files over 3 MB or when store=true, returns 7-day temporary share links instead. Binary raw file bytes are available when format=binary is specified.","failureModes":["Input file exceeds 20 MB limit — returns an error","Unsupported input format — returns format detection error","Invalid output format string — returns validation error","URL unreachable or returns non-image content — returns fetch error","Width/height combination produces invalid dimensions — returns resize error","Rotation value not in 90/180/270 — may be ignored or cause error"],"whenToPreferThis":"Choose this endpoint when you need server-side image format conversion or resizing without requiring a full-featured image CDN subscription. It is ideal for one-off conversions, handling HEIC/AVIF from mobile devices, stripping metadata for privacy, or producing web-optimized WebP output. It is pay-per-call at $0.005 USDC, making it cost-effective for infrequent or agent-driven use without a monthly commitment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:19.323Z","isFirstParty":false,"canonicalSlug":"agentrxi-image-convert-resize-ce089cfd"}