Crop an image
Crop a rectangular region from an image. Specify the top-left corner (x, y) and dimensions (width, height) in pixels.
Costs 0.02 in credits (EUR, excluding VAT; VAT is added when you buy credits) per call; see GET /v1/pricing.
Authorizations
Section titled “ Authorizations ”Request Body
Section titled “ Request Body ”object
Height of the crop area (pixels). Must be positive.
HTTPS URL of the image to crop.
Width of the crop area (pixels). Must be positive.
X coordinate of the top-left corner of the crop area (pixels).
Y coordinate of the top-left corner of the crop area (pixels).
Responses
Section titled “ Responses ”OK
object
When true, treat the output as AI-generated content (EU AI Act Art. 50). False when no AI marker was found in the input; this does not mean the input was not made with AI.
Remaining balance after this operation, in credits (EUR, excluding VAT). Omitted when it cannot be stated exactly (the charge could not be recorded, or the balance could not be read).
MIME type of the output image.
What this operation charged, in credits (EUR, excluding VAT): processing_cost_eur, or its override in processing_operation_costs (GET /v1/pricing). 0.00 when the charge could not be recorded; you are then not charged.
ISO 8601 expiry time of the signed URL.
Signed URL of the processed image. Expires in 1 hour.
Processing operation performed.
Bad Request
object
Unauthorized
object
Payment Required
object
Forbidden
object
Not Found
object
Conflict
object
Unprocessable Entity
object
Too Many Requests
object
Unavailable For Legal Reasons
object
Internal Server Error
object
Bad Gateway
object
Service Unavailable