---
title: "resize_image tool call"
method: POST
path: "/api/tools/resize_image"
tags: ["Tools"]
---

# resize_image tool call

`POST /api/tools/resize_image`

## Request

- Base URL: `https://studiomcphub.com`
- URL: `https://studiomcphub.com/api/tools/resize_image`
- Auth: none required

Cost: 0 GCX ($0.00). Free tool — no auth needed.

## Request body

- object
  - `format` 'png' | 'jpeg' | 'webp': Output format
  - `height` integer, required: Target height in pixels (1-8192)
  - `image` string, required: Base64-encoded PNG/JPEG image
  - `mode` 'contain' | 'cover' | 'stretch': Resize mode: 'contain' (fit within bounds, preserve aspect ratio), 'cover' (crop to fill), 'stretch' (exact size, may distort)
  - `quality` integer: JPEG/WebP quality (1-100)
  - `width` integer, required: Target width in pixels (1-8192)

## Response `200`

Tool result

---

[API](https://skmtc.dev/studiomcphub/apis/studiomcphub-api.md) · [All operations](https://skmtc.dev/studiomcphub/apis/studiomcphub-api/llms.txt) · [OpenAPI document](https://skmtc.dev/studiomcphub/apis/studiomcphub-api/revisions/15995bc5ee2e?raw)
