Reference Video Endpoint

Generate a video using Kling O1 Reference Image to Video. Creates a container scene with the generated video.

This endpoint uses reference images and elements to generate videos with consistent characters/objects. Use @Image1, @Image2... and @Element1, @Element2... references in the prompt.

Args: request: JSON body containing: - project_id (str, required): Project ID to add the video to - prompt (str, required): Prompt with @Image1, @Image2... and @Element1, @Element2... references - image_urls (list[str], optional): List of reference image URLs - elements (list[dict], optional): List of element dicts (characters/objects) Each element dict commonly includes: - "reference_image_urls": list[str] - "frontal_image_url": str - duration (str, optional): Duration. Only "5" and "10" supported. Default: "5" - aspect_ratio (str, optional): Aspect ratio. One of "16:9", "9:16", "1:1". Default: "16:9" - max_retries (int, optional): Max retry attempts. Default: 3 - initial_delay (float, optional): Initial backoff delay. Default: 1.0

Returns: Success response with scene and video data

post/api/videos/reference

Request

  • Base URL: https://api.latted.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.latted.com/api/videos/reference
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Request body

object required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 20 revisions of this API.