Skip to main content
Glama

upscale

Enhance image resolution using AI upscaling to improve clarity and detail for media projects.

Instructions

Upscale/enhance an image to higher resolution using AI. Cost: $0.15. Requires Tier 1+.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
media_urlYesURL of the image to upscale
scaleNoUpscale factor (2x or 4x)

Implementation Reference

  • The implementation of the 'upscale' method in the asynchronous VAPE client, which sends a POST request to /v3/upscale.
    async def upscale(
        self,
        image_url: Optional[str] = None,
        image_base64: Optional[str] = None,
        scale: str = "2x",
    ) -> UpscaleResult:
        """Upscale an image using AI enhancement."""
        if not image_url and not image_base64:
            raise VAPEValidationError("Either image_url or image_base64 is required")
    
        payload = {"scale": scale}
        if image_url:
            payload["image_url"] = image_url
        if image_base64:
            payload["image_base64"] = image_base64
    
        data = await self._request("POST", "/v3/upscale", json=payload)
        return UpscaleResult.from_response(data)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elestirelbilinc-sketch/Media-infrastructure'

If you have feedback or need assistance with the MCP directory API, please join our Discord server