← Back to Models

google/upscaler

Google Upscaler: upscale an input image by 2x or 4x.

image image-processing

Pricing

Base: 2 credits per image

Adjustments:

upscale_factor multiplier:
x2: 1x
x4: 1.5x

Example Pricing:

Base request: 3 credits
Range: 3 - 5 credits

Input Parameters

Image required string

Image to upscale

upscale_factor string

Factor by which to upscale the image

Default: x2

Options: x2, x4

Compression Quality integer

Compression quality for output (1-100)

Default: 80

Directives

Advanced Keys:
compression_quality
Hidden Keys:
Raw JSON
{
    "identifier": "google/upscaler",
    "type": "image",
    "category": "image-processing",
    "description": "Google Upscaler: upscale an input image by 2x or 4x.",
    "pricing": {
        "version": 1,
        "base": {
            "unit": "image",
            "credits": 2
        },
        "adjustments": [
            {
                "type": "multiplier_map",
                "key": "upscale_factor",
                "map": {
                    "x2": 1,
                    "x4": 1.5
                },
                "default": 1
            }
        ],
        "display": {
            "min_credits": 3,
            "max_credits": 5
        }
    },
    "directives": {
        "imageKeys": [
            "image"
        ],
        "advancedKeys": [
            "compression_quality"
        ],
        "hiddenKeys": []
    },
    "inputSchema": {
        "type": "object",
        "title": "Input",
        "required": [
            "image"
        ],
        "properties": {
            "image": {
                "type": "string",
                "title": "Image",
                "format": "uri",
                "x-order": 0,
                "description": "Image to upscale"
            },
            "upscale_factor": {
                "enum": [
                    "x2",
                    "x4"
                ],
                "type": "string",
                "title": "upscale_factor",
                "description": "Factor by which to upscale the image",
                "default": "x2",
                "x-order": 1
            },
            "compression_quality": {
                "type": "integer",
                "title": "Compression Quality",
                "default": 80,
                "maximum": 100,
                "minimum": 1,
                "x-order": 2,
                "description": "Compression quality for output (1-100)"
            }
        }
    },
    "outputSchema": {
        "type": "string",
        "title": "Output",
        "format": "uri"
    }
}