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

# upscale_image tool call

`POST /api/tools/upscale_image`

## Request

- Base URL: `https://studiomcphub.com`
- URL: `https://studiomcphub.com/api/tools/upscale_image`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Stripe-Payment-Intent`

Cost: 2 GCX ($0.20). Payment: GCX credits (Bearer token) or Stripe (X-Stripe-Payment-Intent header).

## Request body

- object
  - `image` string, required: Base64-encoded PNG/JPEG image
  - `model` 'realesrgan_x2plus' | 'realesrgan_x4plus' | 'realesrgan_x4plus_anime' | 'realesr_general_x4v3' | 'realesr_animevideov3': ESRGAN model to use. Options: 'realesrgan_x2plus' (2x, general — default), 'realesrgan_x4plus' (4x, general/photo), 'realesrgan_x4plus_anime' (4x, anime/illustrations), 'realesr_general_x4v3' (4x, fast general), 'realesr_animevideov3' (4x, anime video frames).
  - `scale` integer: Shorthand: 2 selects x2plus, 4 selects x4plus. Ignored if model is specified directly.

## Response `200`

Tool result

## Other responses

- `402`: Payment required — returns GCX credit info and Stripe checkout link

---

[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)
