Skip to main content
POST
Python

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <api_key>, where <api_key> is your API key. To get your API key, go to Developer Hub and click "Create new API Key".

Headers

Idempotency-Key
string

A unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.

Example:

"5f3c1b9e-8a41-4a0e-9d3e-2f6a1c7b9e10"

Body

application/json

Body

end_seconds
number<float>
required

End time of your clip in seconds. Must be greater than start_seconds. Allowed duration depends on model: gemini-omni-1.2: 3-15s, wan-3.0: 2-15s, ltx-2.5: 0.5-60s (30s at 1080p), kling-4.0: 3-30s.

Required range: x >= 0.1
Example:

5

style
object
required
assets
object
required

Provide the assets for video editing.

name
string
default:Video Editor - dateTime

Give your video a custom name for easy identification.

Example:

"My Video Editor video"

start_seconds
number<float>
default:0

Start time of your clip (seconds). Must be ≥ 0.

Required range: x >= 0
Example:

0

model
enum<string>

The AI model to use for video editing. Defaults to ltx-2.5 on free tiers and gemini-omni-1.2 on paid tiers.

  • gemini-omni-1.2: Best for precise clips up to 15s, references, and high-resolution output. Requires a paid tier.
  • wan-3.0: High-quality video with native audio, long clips, and end-frame control. Requires a paid tier.
  • ltx-2.5: Fastest for general scenes, long clips, audio, and rapid iteration.
  • kling-4.0: Create cinematic videos with image and video references and optional audio. Requires a paid tier.
Available options:
gemini-omni-1.1,
gemini-omni-1.2,
wan-3.0,
ltx-2.5,
kling-4.0,
gemini-omni,
ltx-2.3
Example:

"ltx-2.5"

resolution
enum<string>

Output resolution. Defaults to 480p for free tier and 720p for paid. Supported per model: gemini-omni-1.2: 360p, 720p, 1080p, 4k; wan-3.0: 480p, 720p, 1080p; ltx-2.5: 480p, 720p, 1080p; kling-4.0: 720p, 1080p.

Available options:
360p,
480p,
720p,
1080p,
4k
Example:

"480p"

references
object[]

Name references without @ and refer to them as @name in style.prompt. Names must be unique, ignoring case. Maximum 10 references total. Omit for no references.

Reference images for gemini-omni-1.2, wan-3.0, kling-4.0.

Maximum array length: 10

Response

Success

Success

id
string
required

Unique ID of the video. Use it with the Get video Project API to fetch status and downloads.

Example:

"cuid-example"

credits_charged
integer
required

The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video.

If video generation fails, credits will be refunded, and this field will be updated to include the refund.

Example:

450