MotionLab for developers # AI image and video upscaling API Upscale images and videos or double frame rate with live engines, source rules and measured pricing. ## Choose an engine for your media motionlab\_upscale raises the resolution of an image or video; some video engines can also double the frame rate. Read result.models.upscale from GET /api/v1/models. Each engine states whether it handles image or video, its scaleFactors or resolutions, maxDurationSeconds, maxSourceBytes and acceptedContentTypes, and whether it supports a prompt or a creative mode. Restoration engines keep the source faithful. Generative engines re-render the clip and can add detail; those are the ones reporting supportsPrompt or supportsCreativeMode. ## Point at the source Give exactly one source. Use sourceJobId to upscale the output of one of your completed MotionLab jobs without downloading it; a completed job lists upscale\_source in reusableAs when it qualifies. Use mediaKey for a file you uploaded with motionlab\_create\_upload. Sending both, or neither, is rejected. ## Upscale an image Image engines take a scaleFactor from the engine's scaleFactors list. ``` POST /api/v1/actions/motionlab_upscale { "engine": "IMAGE_ENGINE_FROM_DISCOVERY", "sourceJobId": "YOUR_COMPLETED_IMAGE_JOB_ID", "scaleFactor": 2, "idempotencyKey": "YOUR_SAVED_UNIQUE_REQUEST_ID" } ``` ## Upscale a video Video engines need the source clip length in durationSeconds. When the source is a MotionLab video job, the length is read from the job and you can omit it. Engines with a resolutions list take resolution (2k or 4k); MotionLab engines take scaleFactor instead, where 1 means frame-rate doubling only. Generative engines price by output pixels, so they also require sourceWidth and sourceHeight. ``` POST /api/v1/actions/motionlab_upscale { "engine": "VIDEO_ENGINE_FROM_DISCOVERY", "mediaKey": "OWNED_UPLOAD_KEY", "resolution": "4k", "durationSeconds": 8, "idempotencyKey": "YOUR_SAVED_UNIQUE_REQUEST_ID" } ``` Optional controls apply only where the engine supports them: doubleFps and detailStrength (0.3 to 1) for MotionLab engines, creativeDetail for an engine with creative mode, and prompt for engines reporting supportsPrompt. ## Estimate with the same numbers Call motionlab\_estimate\_cost with kind: upscale, the engine and the same source figures. The price is always computed from the file itself: the server measures the real duration, frame size and frame rate, so the numbers you send shape validation and the estimate but cannot lower the charge. If your figures were wrong, the created job's reservedCredits shows the actual amount. ``` POST /api/v1/actions/motionlab_estimate_cost { "kind": "upscale", "engine": "VIDEO_ENGINE_FROM_DISCOVERY", "resolution": "4k", "durationSeconds": 8 } ``` Poll motionlab\_get\_job for the result and download outputUrl before outputExpiresAt. See the [API reference](https://www.motionlab.art/motionlab-api/reference) for statuses, error codes and upload limits. ## Continue building - [AI generation API quickstart](https://www.motionlab.art/motionlab-api/quickstart) Create an API key, discover models, estimate credits and submit your first image with Node.js and cURL. - [AI video generation API](https://www.motionlab.art/motionlab-api/video-generation) Integrate text-to-video and image-to-video with model discovery, owned uploads, cost estimates and asynchronous results. - [AI image generation and editing API](https://www.motionlab.art/motionlab-api/image-generation) Build image generation and reference-image editing with live model settings and fractional-credit pricing. - [AI music and audio generation API](https://www.motionlab.art/motionlab-api/audio-generation) Generate music and use song tools through one action, with live model controls, per-operation pricing and multi-track results. - [Image-to-3D API](https://www.motionlab.art/motionlab-api/image-to-3d) Turn one uploaded image into a textured GLB model: source image tips, cost estimate, job creation and download. - [fal.ai vs Higgsfield API: Pricing Compared Side by Side](https://www.motionlab.art/motionlab-api/compare) fal.ai vs Higgsfield API prices for the same model and settings, with dated official sources. Plus authentication, polling, webhooks and migration steps. - [MotionLab API reference](https://www.motionlab.art/motionlab-api/reference) Endpoints, actions, job statuses, error codes, rate limits, upload limits and the OpenAPI document for the MotionLab generation API. [Explore live models and prices](https://www.motionlab.art/motionlab-api#models) ยท [Create your API key](https://www.motionlab.art/settings/api)