> ## 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 画像から動画生成

これは非同期 API であり、非同期の task\_id のみを返します。生成結果を取得するには、task\_id を使用してタスク結果照会 API を呼び出す必要があります。

<Tip>
  これは**非同期**API であり、非同期タスクの task\_id のみを返します。この task\_id を使用して [タスク結果照会 API](/ja/docs/models/reference-get-async-task-result) にリクエストし、生成結果を取得してください。
</Tip>

## リクエストヘッダー

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

<ParamField header="Authorization" type="string" required={true}>
  Bearer 認証形式: Bearer \{\{API Key}}。
</ParamField>

## リクエストボディ

<ParamField body="image" type="string" required={true}>
  先頭フレームは最初のフレームです
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  生成用のポジティブプロンプト
</ParamField>

<ParamField body="duration" type="integer" default={5}>
  生成されるメディアの長さ（秒）

  指定可能な値：`5`, `10`
</ParamField>

<ParamField body="last_image" type="string">
  末尾フレームは最後のフレームです
</ParamField>

<ParamField body="aspect_ratio" type="string" default="16:9">
  生成される動画のアスペクト比

  指定可能な値：`16:9`, `9:16`, `1:1`
</ParamField>

## レスポンス情報

<ResponseField name="task_id" type="string" required={true}>
  task\_id を使用して [タスク結果照会 API](/ja/docs/models/reference-get-async-task-result) にリクエストし、生成された出力を取得します。
</ResponseField>
