{
"input": "https://example.com/photo.jpg",
"width": 800,
"height": 600,
"fit": "cover"
}
curl -X POST https://api.ringbee.dev/v1/image/resize \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@photo.jpg" \
-F "width=800" \
-F "height=600" \
-F "fit=cover"
{
"id": "job_abc123",
"status": "pending"
}{
"error": "<string>"
}{
"error": "<string>"
}Image
Resize
Resize an image to specific dimensions
POST
/
v1
/
image
/
resize
{
"input": "https://example.com/photo.jpg",
"width": 800,
"height": 600,
"fit": "cover"
}
curl -X POST https://api.ringbee.dev/v1/image/resize \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@photo.jpg" \
-F "width=800" \
-F "height=600" \
-F "fit=cover"
{
"id": "job_abc123",
"status": "pending"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"input": "https://example.com/photo.jpg",
"width": 800,
"height": 600,
"fit": "cover"
}
curl -X POST https://api.ringbee.dev/v1/image/resize \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@photo.jpg" \
-F "width=800" \
-F "height=600" \
-F "fit=cover"
| Param | Type | Description |
|---|---|---|
| width | integer | Target width in pixels |
| height | integer | Target height in pixels |
| fit | string | Resize mode: cover, contain, fill, inside, outside |
Authorizations
Body
application/jsonmultipart/form-data