View as Markdown
DreamStudio (Stable Diffusion) icon

DreamStudio (Stable Diffusion) ACTION

Upscale Image

Create a higher resolution version of an input image. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's DreamStudio (Stable Diffusion) account once, then configure and run Upscale Image from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "dreamstudio-upscale-image",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    dreamstudio: { authProvisionId: "apn_xxxxxxx" },
    organizationId: "Organization Id",
    engineId: "Engine Id",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Upscale Image inputs
Property Type Description
organizationId Organization Id string
The id of the organization.
Required Dynamic
engineId Engine Id string
The id of the engine.
Required Dynamic
image Image Path Or Url string
Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/example.png)
Required
height Height integer
Height of the image in pixels. Must be in increments of 64 and pass the following validation: For 512 engines: 262,144 ≤ height * width ≤ 1,048,576. For 768 engines: 589,824 ≤ height * width ≤ 1,048,576. For SDXL Beta: can be as low as 128 and as high as 896 as long as width is not greater than 512. If width is greater than 512 then this can be at most 512. For SDXL v0.9: valid dimensions are 1024x1024, 1152x896, 1216x832, 1344x768, 1536x640, 640x1536, 768x1344, 832x1216, or 896x1152. For SDXL v1.0: valid dimensions are the same as SDXL v0.9
Optional
width Width integer
Width of the image in pixels. Must be in increments of 64 and pass the following validation: For 512 engines: 262,144 ≤ height * width ≤ 1,048,576. For 768 engines: 589,824 ≤ height * width ≤ 1,048,576. For SDXL Beta: can be as low as 128 and as high as 896 as long as height is not greater than 512. If height is greater than 512 then this can be at most 512. For SDXL v0.9: valid dimensions are 1024x1024, 1152x896, 1216x832, 1344x768, 1536x640, 640x1536, 768x1344, 832x1216, or 896x1152. For SDXL v1.0: valid dimensions are the same as SDXL v0.9
Optional
syncDir SyncDir dir
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
dreamstudio-upscale-image
Version
1.0.3
App
DreamStudio (Stable Diffusion)
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes