---
title: Generate Image Thumbnails API
slug: generate-thumbnail
url: https://apyhub.com/apyhub/service/generate-thumbnail
provider: ApyHub
categories: [File Manipulation]
auth: api_key
---

# Generate Image Thumbnails API

Create thumbnails from an uploaded image or image URL. Set width and height, and get binary output or a signed URL back.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/generate/image/thumbnail/file/url` | What it does Generates a thumbnail from an uploaded image file and returns a JSON object containing… | 30 |
| POST | `/generate/image/thumbnail/url/file` | What it does Downloads an image from a URL and generates a thumbnail using the width and height que… | 30 |
| POST | `/generate/image/thumbnail/file-urls` | What it does Generates a thumbnail from a source image URL. The request sends the image URL in the… | 30 |
| POST | `/generate/image/thumbnail/file` | What it does Generates a thumbnail from an uploaded image and returns the resulting file as binary… | 30 |

## About

## What it does
Thumbnail Generator creates a thumbnail from an uploaded image or a remote image URL. Send `image` in a multipart request or `url` in the JSON body, and set `width` and `height` in the query string to control the output size.

Use `output` when you want a named file, and `preserve_format` if you need to keep the original image format. `auto_orientation` helps correct images with orientation metadata before the thumbnail is generated. The service supports both direct downloads and signed URL responses, so you can fit it into batch jobs or browser-driven workflows.

The response is intentionally simple. Depending on the endpoint, you either get binary thumbnail data or a JSON object with a `data` URI. That makes it easy to plug into upload flows, CMS pipelines, product galleries, or user-generated content moderation screens where you need a smaller preview version fast.

If you are resizing images for listings, previews, or email attachments, Thumbnail Generator gives you a consistent way to turn a source image into a smaller, usable thumbnail without adding image processing logic to your app.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/generate-thumbnail
