{"uid":"cap_HSvcXd-0746ZAVAbD2TFg","slug":"24k-labs-image-resize-632ad160","name":"24K Labs Image Resize","description":"Resize an image (base64 or URL) to target dimensions with fit modes contain/cover/stretch.","url":"https://api.24klabs.ai/api/v1/image-resize","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fit":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"},"image_b64":{"type":"string"}}},"responseSchema":{"type":"json","example":{"width":4}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dzHkKg1QFs0-dgW0DM0M7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resizes an image (supplied as base64 or URL) to target width/height using contain, cover, or stretch fit modes.","exampleAgentPrompt":"Can you resize this image — https://example.com/photo.jpg — to 800 by 600 pixels using contain mode so it fits without cropping?","exampleUseCases":[{"title":"Thumbnail generation for CMS","prompt":"Take this product image at https://store.example.com/images/shoe.jpg and resize it to 300 by 300 pixels using cover mode so it fills the thumbnail square."},{"title":"Avatar normalization pipeline","prompt":"I have a user-uploaded profile picture as base64 — resize it to 128 by 128 pixels with contain mode so nothing gets cropped before I store it."},{"title":"Banner image fitting for email template","prompt":"Resize this banner image URL to exactly 600 by 200 pixels using stretch mode to match our email header dimensions."}],"resultDescription":"Returns the resized image as a base64-encoded string along with the actual output dimensions, reflecting the applied fit mode (contain/cover/stretch).","failureModes":["Invalid or unreachable image URL returns an error","Malformed base64 data causes a parsing failure","Unsupported fit mode value returns a validation error","Requested dimensions are zero or negative — returns a bad request error","Image format not supported returns a conversion error","Network timeout fetching remote URL"],"whenToPreferThis":"Choose this endpoint when you need a simple, fast server-side image resize with explicit fit-mode control (contain/cover/stretch) and don't want to spin up your own image processing infrastructure. It accepts both URLs and base64 inputs, making it convenient for agentic pipelines where images may be in either form. Prefer it over client-side resizing when consistent output dimensions are required across environments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:49:10.724Z","isFirstParty":false}