> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jiekou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Kling-o1 Reference-to-Video

This is an asynchronous API that only returns an async task\_id. You need to use the task\_id to call the task result query API to get the generated result.

<Tip>
  This is an **asynchronous** API and will only return the async task's task\_id. You should use this task\_id to request the [Query Task Result API](/en/docs/models/reference-get-async-task-result) to retrieve the generated result.
</Tip>

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum value: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Key}}.
</ParamField>

## Request Body

<ParamField body="video" type="string">
  Video URL
</ParamField>

<ParamField body="images" type="string[]" default="[]">
  Reference images containing elements, scenes, styles, etc. Up to 7 images

  Array length: 0 - 7
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  Positive prompt
</ParamField>

<ParamField body="duration" type="integer" default={5}>
  Duration of the generated media (seconds)

  Available values: `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`
</ParamField>

<ParamField body="aspect_ratio" type="string" default="16:9">
  Aspect ratio of the generated video

  Available values: `16:9`, `9:16`, `1:1`
</ParamField>

<ParamField body="keep_original_sound" type="boolean" default={true}>
  Choose whether to preserve the video's original audio via this parameter
</ParamField>

## Response Information

<ResponseField name="task_id" type="string" required={true}>
  Use the task\_id to request the [Query Task Result API](/en/docs/models/reference-get-async-task-result) to retrieve the generated output.
</ResponseField>
