クリエイティブ
Alpha

creative_timeline_compose

Compose a saved still image and video in one frame when the connected workspace has the Creative flag.

操作 書き込み。

パラメーター

パラメーター型必須説明
bodyobjectはいタイムラインの指定です。
body.operationstringはい領域を分ける場合は stack、動画に静止画を重ねる場合は overlay を指定します。
body.imageobjectはい保存済み静止画の url を指定します。
body.videoobjectはい保存済み動画の url と、必要に応じて秒単位の source_in と duration を指定します。
body.layoutobjectいいえstack は split、image_region、ratio、image_fit、video_fit を受け付けます。overlay は position、width_ratio、margin_ratio、video_fit を受け付けます。
body.outputobjectいいえwidth と height は 256〜2160 の偶数で指定します。fps は 24、25、30、60 から選べます。
body.modestringいいえasync はジョブ ID を即時に返します。sync と subscribe は上限付き待機、webhook は終端通知です。
body.wait_timeout_secondsintegerいいえsync または subscribe の待機時間です。0〜30 秒。
body.webhook_urlstringいいえ終端通知を受け取る公開 HTTPS URL。
body.project_idstringいいえ同じワークスペース内の保存先プロジェクト ID。
body.metadataobjectいいえジョブに保存する呼び出し元の補足情報。
idempotency_keystringはい同じリクエストの再試行時に同じキーを使います。

The video layer sets the output duration, up to 300 seconds. The MP4 keeps the video audio when available. Without output settings, it uses 1080 × 1920 and the source frame rate.

接続先ワークスペースに保存した素材を使います。入力と出力はそれぞれ合計 400 MB までです。data.job.id を creative_jobs_wait に渡し、完了後に creative_jobs_result で出力を取得します。

プロンプト例

Make a vertical MP4 with my saved product still in the top half and my saved demo video with its audio in the bottom half.