API Reference

Retrieves an image from R2 storage and applies specified manipulations.

Log in to see full request history
Path Params
string
required

The slug associated with the image.

string
required

The key of the image in R2 storage.

Query Params
integer

The desired width of the image.

integer

The desired height of the image.

string

The desired format of the image (e.g., 'webp', 'jpeg', 'png').

string

The filter to apply to the image (e.g., 'grayscale', 'sepia', 'blur').

integer

The quality of the output image (1-100).

string

The resize mode to apply (e.g., 'large', 'medium', 'small', 'thumbnail', 'pinterest', 'portrait', 'landscape').

Responses

400

Bad request. The resize mode is invalid or conflicts with width/height.

404

Image not found.

500

Internal server error.

Language
Click Try It! to start a request and see the response here! Or choose an example:
image/*