---
title: Resize Image from URL API
slug: resize-image-from-url-api
url: https://apyhub.com/skycraft/service/resize-image-from-url-api
provider: Skycraft
auth: api_key
version: v1
service_type: sync
endpoints: 1
atoms: 20
mcp: true
---

# Resize Image from URL API

Resize images from a URL with the ApyHub API. Customize image width and height, crop images, and get resized images in binary format.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| GET | `https://api.eu.apyhub.com/skycraft/resize-image-from-url-api/rescale-image` | What it does Rescales an image from a source URL to the requested width and height, with optional c… | 20 |

## Endpoint reference

### Rescale Image API

`GET https://api.eu.apyhub.com/skycraft/resize-image-from-url-api/rescale-image` · 20 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | query | string | yes | Example: `https://fastly.picsum.photos/id/63/5000/2813.jpg?hmac=HvaeSK6WT-G9bYF_CyB2m1ARQ…`. |
| `crop` | query | boolean | yes | Example: `true`. |
| `width` | query | integer (int32) | yes | Example: `200`. |
| `height` | query | integer (int32) | yes | Example: `200`. |

#### Quickstart

Rescales an image from a URL using the required query parameters.

```bash
curl -X GET "https://api.eu.apyhub.com/skycraft/resize-image-from-url-api/rescale-image?url=https://assets.apyhub.com/samples/sample.png&width=200&height=200&crop=true" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a binary file response, which is the resized image data.

## About

## What it does
Resize Image lets you rescale any image from a public URL to the exact size you need. Send a `GET` request to `/rescale-image` with the source `url` and the target `width` and `height`, and the response is the resized image as binary data, ready to save or serve.

All four of `url`, `width`, `height`, and `crop` are required. The `url` can be up to 1000 characters long, and `width` and `height` each accept values from 1 to 5000 pixels. The `crop` parameter is a boolean that controls whether the image is cropped while it is rescaled.

Because the response is the image itself and not JSON, you can write it straight to a file, stream it to a client, or pass it to the next step of an image workflow without extra decoding.

Use Resize Image when you need thumbnails for listings and cards, fixed-size pictures for layouts, normalized image sizes in an upload pipeline, or lightweight resizing without hosting your own image processing.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/skycraft/service/resize-image-from-url-api
