> ## 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 は、最先端の動画+音声ジェネレーターです。従来の Sora をベースに改良されており、より正確な物理効果、より鮮明なリアリズム、同期された音声、より強力な制御性、そしてより幅広いスタイルに対応しています。

<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="size" type="string" required={false}>
  生成する動画のピクセルサイズ（幅\*高さ）。

  列挙値：

  * professional が true（Pro 版）の場合：`720*1280`、`1280*720`、`1024*1792`、`1792*1024`。
  * professional が false の場合： `720*1280`、`1280*720`。

  デフォルト：`720*1280`。
</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>
