Crop Image
Crop a precise rectangular region using pixel coordinates.
POST /api/free/crop-imageUse Crop Image online
Upload, configure, preview and download without an API key.
1. Upload and settings
Use this tool online without an API key. Files are sent only when you run the request.
2. Preview and download
Preview, size changes and download controls are shown here
Paid batch option
When the same operation must run across several files, open the matching paid batch page.
Integrate with the API
Only programmatic calls require an API key. Parameters, responses and errors are documented below.
POST /api/free/crop-imageOnline use is keyless. Programmatic calls to this endpoint require an APIAny key.
- Coordinates are measured from the top-left corner.
- The crop rectangle must remain inside the source image.
Response
A successful request returns a image response with the Content-Type described by this page.
Common errors
- 400
- A file or parameter is missing, invalid or outside the documented limit.
- 401
- The API key is missing, invalid or disabled for programmatic API calls.
- 429
- The online or authenticated shared rate limit has been reached.
Parameters and limits
| Parameter | Requirement | Default | Accepted values |
|---|---|---|---|
imageImage file | Required | — | file |
leftLeft offset | Required | 0 | number |
topTop offset | Required | 0 | number |
widthCrop width | Required | 500 | number |
heightCrop height | Required | 500 | number |
formatOutput format | Optional | webp | webp, png, jpeg |
API example
Use this authenticated example in code. The online Playground above intentionally does not request or expose your key.
curl -X POST "https://apiany.ai/api/free/crop-image" \ -H "Authorization: Bearer $API_KEY" \ -F "image=@input.jpg" \ -F "left=0" \ -F "top=0" \ -F "width=500" \ -F "height=500" \ --output cropped.webp
Frequently asked questions
Do I need an API key for Crop Image?
No key is required in the online Playground. Programmatic requests use Authorization: Bearer or X-API-Key.
What are the limits for Crop Image?
Online use is limited to 3 requests per minute and 30 per day. Authenticated free accounts receive 5 RPM and paid accounts receive 500 RPM across free APIs.
Which inputs does Crop Image accept?
Use the required and optional fields in the parameter table. Unsupported formats and out-of-range values are rejected.
What does Crop Image return?
Successful requests return a image response. Errors use the HTTP status codes listed above.