> ## 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 Image-to-Video

This is an asynchronous API and only returns an async task\_id. You need to call the task result query API with the task\_id to obtain 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="image" type="string" required={true}>
  The starting frame is the first frame
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  The positive prompt for generation
</ParamField>

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

  Optional values: `5`, `10`
</ParamField>

<ParamField body="last_image" type="string">
  The ending frame is the last frame
</ParamField>

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

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

## Response

<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>
