{"uid":"cap_DJ1V5rVC7Q1hMcdZt_9j1","slug":"agent402-tools-image-thumbnail-generator-11cea8f8","name":"agent402.tools Image Thumbnail Generator","description":"Make a square thumbnail of an image - scales and center-crops to NxN (default 128). Send a base64 image and optional size. Returns the thumbnail. Deterministic, no network.","url":"https://agent402.tools/api/image-thumbnail","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"type":"number","description":"square edge in px, 1-1024 (default 128)"},"image":{"type":"string","description":"base64 image, optionally a data: URL"},"format":{"type":"string","description":"output format: png (default), jpeg, bmp"}}},"responseSchema":{"type":"json","example":{"__note":"returns the square thumbnail as binary"}},"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_j6dofWYk3hnOTMoeSljzL","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":"Scales and center-crops a base64-encoded image into a square NxN thumbnail (default 128px), returning the result in PNG, JPEG, or BMP format.","exampleAgentPrompt":"Take this base64 image and make me a square thumbnail at 256px, output it as a JPEG.","exampleUseCases":null,"resultDescription":"Returns a base64-encoded square thumbnail image (default PNG) cropped and scaled to the requested NxN dimensions (default 128px). Fully deterministic and self-contained — no external network calls.","failureModes":["Invalid or malformed base64 image data returns an error","Size out of range (not 1-1024) returns a validation error","Unsupported format string returns an error","Extremely large images may time out or be rejected"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, offline-safe square thumbnail from a base64 image without any cloud storage or external dependencies. Ideal for profile pictures, preview generation, or any scenario requiring center-cropped square output at a specific pixel size.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:05.147Z","isFirstParty":false}