Video Enhance

Topaz Starlight Precise

Changed on

A diffusion-based AI upscaler from Topaz that transforms low-resolution and degraded video into HD quality. Max 4K.

post/generate/enhance/topaz/starlight-precise

Request

  • Base URL: https://api.krea.ai
  • URL: https://api.krea.ai/generate/enhance/topaz/starlight-precise
  • Auth: HTTP bearer

Headers

X-Webhook-URLstring uri

URL to receive a POST request when the job completes. The webhook will receive the job data including results. When signing is configured, deliveries are signed with ECDSA P-256 (ES256); verify them with the keys at https://api.krea.ai/.well-known/jwks.json (see X-Krea-Webhook-* headers). Treat requests without these headers as unauthenticated.

Request body

target_widthnumber

Output width in pixels. Defaults to the source width; output is scaled proportionally to at least 1920x1080 pixels in area.

target_heightnumber

Output height in pixels. Defaults to the source height; output is scaled proportionally to at least 1920x1080 pixels in area.

crop_to_fitboolean

Crop the video to fill the target dimensions instead of preserving the source aspect ratio.

video_urlstring uri required

Can be an external URL, base64 data URI, or uploaded asset URL.

frame_interpolationboolean

Interpolate extra frames to raise the output frame rate.

frame_interpolation_fpsinteger

Target output frame rate (frame interpolation only).

frame_interpolation_model'apo-8' | 'apf-2' | 'chr-2' | 'chf-3'

Frame interpolation model.

frame_interpolation_slowmointeger

Slow-motion factor, 1 keeps the original speed (frame interpolation only).

frame_interpolation_fix_duplicate_framesboolean

Detect and drop duplicate frames before interpolating.

frame_interpolation_duplicate_sensitivitynumber

Sensitivity of duplicate-frame detection (only when fix duplicate frames is on).

video_output_preset'h264-high' | 'h265-main' | 'h265-main10' | 'prores-422-proxy' | 'prores-422-lt' | 'prores-422-std' | 'prores-422-hq' | 'av1-8-bit' | 'av1-10-bit' | 'vp9-good' | 'vp9-best'

Output encoder profile: codec, container, and bit depth.

Response

The resulting job data. This will be returned in a pending state until the job is completed. See /jobs/{id} for retrieving the results.

job_idstring uuid required
status'backlogged' | 'queued' | 'scheduled' | 'processing' | 'sampling' | 'intermediate-complete' | 'completed' | 'failed' | 'cancelled' required
created_atstring date-time required
completed_atunknown required
resultunknown required
progressnumber nullable

Changes