{"uid":"cap_wsRZXTB88jZ3Eob-M8mHh","slug":"fastapi-online-image-crop-26a32a0b","name":"fastapi.online Image Crop","description":"Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.","url":"https://api.fastapi.online/image-crop","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"x":{"type":"string"},"y":{"type":"string"},"file":{"type":"string","format":"binary","description":"Image file (PNG/JPEG/WebP)"},"width":{"type":"string"},"height":{"type":"string"}}},"responseSchema":null,"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":"down","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_WBBWjWipU8zLVFlFCxDsZ","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":"Crops an uploaded image (PNG/JPEG/WebP) to a specified rectangle defined by x/y origin and width/height dimensions","exampleAgentPrompt":"Crop this image starting at x=50, y=100 with a width of 400 and height of 300 pixels — just send back the cropped PNG.","exampleUseCases":[{"title":"Extract product photo from banner","prompt":"I have a banner image and I want to crop out just the product in the center — it starts at x=200, y=150 and is 600 pixels wide and 400 pixels tall. Can you crop that region for me?"},{"title":"Remove watermark border from scan","prompt":"This scanned document has a big black border around it. Can you crop it starting at x=40, y=40 with width 720 and height 1000 to cut off the border?"},{"title":"Isolate face region from group photo","prompt":"I need to pull out just the face region from this group photo — it's roughly at x=320, y=80, width 180, height 220. Please crop it to that rectangle."}],"resultDescription":"Returns the cropped image file as binary image data (PNG/JPEG/WebP), containing only the rectangular region specified by the x/y origin and width/height parameters.","failureModes":["Crop coordinates or dimensions out of bounds — returns error if x+width or y+height exceeds image dimensions","Unsupported file format — only PNG, JPEG, and WebP are accepted","Missing required parameters — x, y, width, or height not provided returns a validation error","Payment failure — if USDC payment not included, returns HTTP 402","File too large — server may reject oversized uploads"],"whenToPreferThis":"Choose this endpoint when you need a simple, no-signup, pay-per-call image crop operation with crypto payment. Ideal for agents that need to programmatically extract rectangular regions from images on a per-call basis without managing API keys or subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T11:29:01.257Z","isFirstParty":false}