Video Generation

Generate, transform, upscale, and process videos with AI models.


POST/api/v1/video/generate

Request Body

ParameterTypeRequiredDescription
modelstringYesModel key (see models below)
promptstringNoText prompt (required for most models)
paramsobjectNoModel-specific parameters
attachmentMediaIdsstring[]NoPositional media attachment IDs

Response

{
  "inferenceJobId": "ij_..."
}

Example

POST/api/v1/video/generate
{
  "model": "sora2",
  "prompt": "A drone shot flying over a misty forest at sunrise",
  "params": { "aspectRatio": "16:9", "duration": "8" }
}

Models

sora2

Text-to-video generation. Prompt required.

ParameterTypeRequiredDescription
aspectRatiostringNo16:9, 9:16
resolutionstringNo720p only
durationstringNo"4", "8", "12", "16", or "20" seconds (default "8")
omitFirstScenebooleanNoOmit the first scene from the output

Attachments: 1 optional image.

sora2pro

Pro-tier text-to-video. Prompt required.

ParameterTypeRequiredDescription
aspectRatiostringNo16:9, 9:16
resolutionstringNo720p, 1024p, 1080p (default 720p)
durationstringNo"4", "8", "12", "16", or "20" seconds (default "8")
omitFirstScenebooleanNoOmit the first scene from the output

Attachments: 1 optional image.

veo3_1-fast

Fast video generation with fixed 8-second duration. Prompt required.

ParameterTypeRequiredDescription
aspectRatiostringNo16:9, 9:16
resolutionstringNo720p, 1080p

Duration: Fixed at 8 seconds.

Attachments: Up to 2 images (first_frame, last_frame). last_frame requires first_frame to be provided.

kling2_5-pro

Kling 2.5 Pro video generation. Prompt required.

ParameterTypeRequiredDescription
aspectRatiostringNo16:9, 9:16, 1:1
durationnumberNo5 or 10 seconds

Attachments: Up to 2 optional images.

kling_2_6_pro

Kling 2.6 Pro with automatic image-to-video. Prompt required.

ParameterTypeRequiredDescription
aspectRatiostringNo16:9, 9:16, 1:1
durationnumberNo5 or 10 seconds

Attachments: 1 optional image (auto image-to-video when provided).

kling_2_6_motion_control

Motion-controlled video from a reference image and video. Prompt required.

ParameterTypeRequiredDescription
characterOrientationstringNoimage, video
keepOriginalSoundbooleanNoKeep the original audio from the reference video

Attachments: 2 required -- reference_image + reference_video.

kling_3_pro

Text-to-video and image-to-video with fine-grained controls. Prompt required.

ParameterTypeRequiredDescription
aspectRatiostringNoAspect ratio of the output video
durationnumberNo3 to 15 seconds
generateAudiobooleanNoGenerate audio for the video
multiPromptbooleanNoEnable multi-prompt mode
negativePromptstringNoNegative prompt to guide generation away from
cfgScalenumberNoClassifier-free guidance scale (0 to 1)

Attachments: Optional start_image, end_image, and up to 2 element slots.

sync-lipsync-v2-pro

Lip-sync a video to an audio track. No prompt needed.

ParameterTypeRequiredDescription
syncModestringNocut_off, loop, bounce, silence, remap
videoDurationSecondsnumberNo1 to 600 seconds

Attachments: 2 required -- video + audio.

bria-video-background-removal

Remove background from video. No prompt or params needed.

Params: None.

Attachments: 1 required video.

veed-video-background-removal

VEED-powered video background removal. No prompt needed.

ParameterTypeRequiredDescription
subjectIsPersonbooleanNoWhether the subject is a person (optimizes removal)

Attachments: 1 required video.

veed-video-background-removal-fast

Fast variant of VEED video background removal. No prompt needed.

ParameterTypeRequiredDescription
subjectIsPersonbooleanNoWhether the subject is a person (optimizes removal)

Attachments: 1 required video.

seedance-2

Text-to-video and image-to-video generation. Routes automatically based on image attachment.

ParameterTypeRequiredDescription
aspectRatiostringNo16:9, 9:16, 4:3, 3:4
durationstringNo"5", "10", or "15" (default "5")
qualitystringNohigh (standard), basic (fast)

Attachments: 1 optional image (triggers image-to-video mode).

seedance-2-omni

Reference-based video generation. Use @image1, @audio1 in prompt.

ParameterTypeRequiredDescription
aspectRatiostringNo16:9, 9:16, 1:1, 4:3, 3:4, 21:9
durationstringNo"4" to "15" seconds (default "5")

Attachments: Up to 3 images and 1 audio clip (all optional).

seedance-2-video-edit

Edit an existing video using text prompts.

ParameterTypeRequiredDescription
aspectRatiostringNo16:9, 9:16, 4:3, 3:4
qualitystringNobasic, high (default basic)

Attachments: 1 required video.

grok-imagine-video

Video generation by xAI. Text-to-video and image-to-video. Prompt required.

ParameterTypeRequiredDescription
aspectRatiostringNo9:16, 16:9, 1:1, 4:3, 3:4, 3:2, 2:3 (default 9:16)
durationstringNo5, 8, 10, or 15 seconds (default 8)
resolutionstringNo480p, 720p (default 720p)

Attachments: 1 optional start image for image-to-video.

topaz-video-upscale

Upscale video resolution with Topaz. No prompt needed.

ParameterTypeRequiredDescription
upscaleFactornumberNo1 to 4
targetFpsstring | numberNo"original" or 16 to 60
codecstringNoh265, h264

Attachments: 1 required video.