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

# OpenAI Sora 2 画像から動画生成

OpenAI Sora 2 は、1枚の参照画像を同期音声付きの一貫性のある動画クリップに変換します。Sora 2 の主要な進歩に基づき、画像から動画へのフローでは、信頼性の高い動きとカメラダイナミクスを合成しながら、同一性、照明、構図を保持します。

<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="prompt" type="string" required={true}>
  動画生成のポジティブテキストプロンプト。
</ParamField>

<ParamField body="image" type="string" required={true}>
  入力画像は URL と Base64 形式に対応しており、対応する画像形式には .jpg、.jpeg、.png が含まれます。
</ParamField>

<ParamField body="resolution" type="string" required={false}>
  生成動画の解像度。

  列挙値：

  * professional が true（Pro 版）：`720p`, `1080p`。
  * professional が false：`720p`。

  デフォルト：`720p`。
</ParamField>

<ParamField body="duration" type="integer" required={false}>
  生成動画の長さ（秒）。

  列挙値：`4`、`8`、`12`。

  デフォルト：`4`。
</ParamField>

<ParamField body="professional" type="bool" default={false}>
  このパラメータは Pro バージョンを使用するかどうかを指定します。指定されない場合、デフォルト値は false です。
</ParamField>

## レスポンス情報

<ResponseField name="task_id" type="string" required={true}>
  非同期タスクの task\_id。この task\_id を使用して [タスク結果照会 API](/ja/docs/models/reference-get-async-task-result) にリクエストし、生成結果を取得してください
</ResponseField>
