Skip to main content
Glama

Upscale an image

upscale_image

Upscale an image. Pass a public URL, a URL from create_upload, or (small images only, under about 2.25 MB) a base64 data URI. model auto looks at the image and picks the model, settings and size itself (the faithful pick of recommend_upscale; set intent to detail for the add-detail pick). Otherwise choose one:

  • flux: Upscale an image with Flux. 1 credit per output megapixel. Required: imageUrl, inputImageType, upscaleFactor, globalCreativity, detail.

  • gan: Upscale an image with GAN. 0.25 credits per output megapixel. Required: imageUrl, inputImageType, upscaleFactor.

  • stable-diffusion: Upscale an image with Stable Diffusion. 1 credit per output megapixel. Required: imageUrl, inputImageType, upscaleFactor, globalCreativity, resemblance, detail.

  • seed-vr-2: Upscale an image with Seed VR 2 Small. 0.25 credits per output megapixel. Required: imageUrl, upscaleFactor.

  • seed-vr-2-large: Upscale an image with Seed VR 2 Large. 0.5 credits per output megapixel. Required: imageUrl, upscaleFactor.

  • p-image-upscale: Upscale an image with P Image Upscale. 0.25 credits per output megapixel. Required: imageUrl, upscaleFactor.

  • krea-2: Upscale an image with Krea 2. 1 credit per output megapixel. Required: imageUrl, upscaleFactor. Faithful, cheap upscales: seed-vr-2 or gan. Creative upscales that add new detail: krea-2, flux or stable-diffusion (raise globalCreativity for more invention). Charges credits from the connected Upsampler account; a failed job is refunded automatically. Result URLs expire after 3 hours (get_job reissues fresh ones) and jobs are deleted after 7 days.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "model": "<model>",
      "imageUrl": "<imageUrl>"
    },
    "name": "upscale_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoWait up to about 50 seconds for the result before returning (default true). If the job is still running, call get_job with the returned id.
modelYesWhich upscaling model to run, or auto to let Upsampler pick from the image.
detailNoA higher value enhances detail, but can lead to unwanted artifacts or noise in the image. Integer between 0-10. Used by: flux, stable-diffusion, krea-2 (required by some of them, see the model list above).
intentNoOnly with model auto: faithful (default) keeps the image as it is, detail lets the model redraw fine detail.
imageUrlYesURL of the image to upscale, or the image encoded as a base64 data URI. Must be a publicly accessible URL (http/https) or a base64 data URI (e.g., data:image/png;base64,...). Supported formats are png, jpeg, jpg, and webp. Base64 images have a 3MB size limit.
descriptionNoText prompt to guide the creative upscaling process. Used by: flux, stable-diffusion, krea-2.
resemblanceNoResemblance to the original image structure. Higher values adhere more closely. Integer, 0-10. Used by: stable-diffusion (required by some of them, see the model list above).
outputFormatNoFormat of the delivered image. Allowed values: "png", "webp". Defaults to "png". Used by: seed-vr-2, seed-vr-2-large, p-image-upscale, krea-2.
upscaleFactorNoFactor by which to upscale. Number, 1-4. Output image must not exceed 100 megapixels (100,000,000 pixels). Required unless model is auto.
inputImageTypeNoStyle that best matches the image. Allowed values: "realism", "anime", "universal". Used by: flux, gan, stable-diffusion, krea-2 (required by some of them, see the model list above).
globalCreativityNoThe creativity value determines how much the AI can change the original image. Integer between 0-10. Used by: flux, stable-diffusion, krea-2 (required by some of them, see the model list above).
shouldEnhanceFacesNoIf true, attempts to better preserve and enhance facial features.
regionalCreativityImageUrlNoURL of a black and white mask image that defines creativity levels per pixel, or the image encoded as a base64 data URI. White areas (255) receive maximum creativity, black areas (0) receive minimum creativity, with grayscale values interpolated. Must be a publicly accessible URL (http/https) or a base64 data URI. Supported formats are png, jpeg, jpg, and webp. Must have the same aspect ratio as the main image (within 5% tolerance). Base64 images have a 3MB size limit. Used by: flux, stable-diffusion, krea-2.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag the mutation profile (readOnlyHint=false, openWorldHint=true, non-idempotent, non-destructive), and the description adds substantive context beyond that: per-megapixel credit pricing for each model, automatic refund on failed jobs, 3-hour result URL expiry with get_job reissue, and 7-day job retention.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and input rules, then structured as a scannable model list followed by a decision heuristic. The repeated 'Upscale an image with X' phrasing in all seven bullets is redundant padding, but the credits and required-field data in each bullet justifies the length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter, credit-charging, non-idempotent generation tool with no output schema, the description covers cost, refunds, expiry, and model choice well. It does not describe the return payload shape (e.g. that job ids and result URLs come back) beyond the expiry note, which is the remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema cannot express: which parameters are required for each model variant (e.g. flux needs globalCreativity and detail, stable-diffusion also needs resemblance) and how to tune creativity for more invention. It does not explain shouldEnhanceFaces or regionalCreativityImageUrl beyond the schema, keeping it short of a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (upscale an image) and immediately scopes the accepted inputs (public URL, create_upload URL, small base64 data URI). It also distinguishes itself from recommend_upscale by explaining that model=auto is the faithful pick of that sibling, so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit selection rules: auto for hands-off, intent=detail for the add-detail variant, then a per-model cost/requirement list plus a summary rule of thumb (seed-vr-2/gan for faithful cheap, krea-2/flux/stable-diffusion for creative, raise globalCreativity for more invention). It also names the correct follow-up (get_job) and input source (create_upload).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources