Video Enhance

Creative diffusion-based video upscaler with prompt guidance, creativity, and sharpness controls. Max 4K.

post/generate/enhance/topaz/astra-2

Request

  • Base URL
    https://api.krea.ai
  • Auth
    HTTP bearer

Headers

X-Webhook-URL, string uri

URL to receive a POST request when the job completes. The webhook will receive the job data including results. Deliveries are signed with Ed25519 (EdDSA); 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

object required
target_width, number

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

target_height, number

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

crop_to_fit, boolean

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

creativity, 'low' | 'middle' | 'high'

How much creative detail Astra 2 adds while enhancing.

sharp, number

Sharpening strength (0 to 1).

realism, number

Realism strength (0 to 1); higher pushes toward photoreal detail.

video_url, string uri required

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

prompt, string

Optional prompt guiding the enhancement.

frame_interpolation, boolean

Interpolate extra frames to raise the output frame rate.

frame_interpolation_fps, integer

Target output frame rate (frame interpolation only).

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

Frame interpolation model.

frame_interpolation_slowmo, integer

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

frame_interpolation_fix_duplicate_frames, boolean

Detect and drop duplicate frames before interpolating.

frame_interpolation_duplicate_sensitivity, number

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.

object required
job_id, string uuid required
status, 'backlogged' | 'queued' | 'scheduled' | 'processing' | 'sampling' | 'intermediate-complete' | 'finalizing' | 'completed' | 'failed' | 'cancelled' required
created_at, string date-time required
completed_at, unknown required
result, unknown required
error, object
progress, number nullable
export_progress, object

Motion exports only, while running: frames rendered of the total, then finishing while the sound is added, then saving while the MP4 is filed.

Changes