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 for statuses, error codes and upload limits.

Continue building

Explore live models and prices · Create your API key

AI image and video upscaling API | MotionLab