Skip to content
All API documentation

Image Upscaler API

Account and deployment availability

Requires eligible legacy billing and a configured image tool provider. Expanded USD generation excludes this tool. Look for this tool under tools in the account catalog.

Call GET /api/v1/models with your API key to see the models and options available to your account.

Request fields

toolId
imageUpscaler
Provider
fal
toolExecution
dedicated-v1
mode
image-to-image
referenceAssetIds
1
outputCount
1–4

Choose 2k, 4k, or 8k in upscaleOptions.target to set a longest edge of 2048, 4096, or 8192 pixels. The source must be at most 40 megapixels. The target must be between 1 and 8 times the source’s longest edge. Use a JPEG, PNG, or WebP image up to 10 MiB.

If the quote includes quote.funding, preserve it in the acknowledgement. The API and website share the daily free tool quota.

Quote examples

Replace any REPLACE_WITH_* asset IDs with IDs returned by your own completed uploads. Send the draft to the quote endpoint. Upload a reference

Image Upscaler

curl --fail-with-body "$GAPTI_ORIGIN/api/v1/quotes" \
  -H "Authorization: Bearer $GAPTI_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "draft": {
    "kind": "image",
    "modelPreset": "gpt-image-2",
    "mode": "image-to-image",
    "prompt": "Upscale the image.",
    "aspectRatio": "1:1",
    "resolution": "1k",
    "outputCount": 1,
    "toolId": "imageUpscaler",
    "negativePrompt": "",
    "referenceAssetIds": [
      "REPLACE_WITH_FIRST_IMAGE_ASSET_ID"
    ],
    "generationQuality": null,
    "seed": null,
    "imageSetMode": false,
    "toolExecution": "dedicated-v1",
    "upscaleOptions": {
      "target": "2k"
    }
  }
}'

Submit and download

Pass normalizedDraft as draft and the full quote as quoteAcknowledgement. Review the returned credits before submitting.

Submit the job