クリエイティブ
Alphacreative_timeline_compose
Compose a saved still image and video in one frame when the connected workspace has the Creative flag.
操作 書き込み。
パラメーター
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
body | object | はい | タイムラインの指定です。 |
body.operation | string | はい | 領域を分ける場合は stack、動画に静止画を重ねる場合は overlay を指定します。 |
body.image | object | はい | 保存済み静止画の url を指定します。 |
body.video | object | はい | 保存済み動画の url と、必要に応じて秒単位の source_in と duration を指定します。 |
body.layout | object | いいえ | stack は split、image_region、ratio、image_fit、video_fit を受け付けます。overlay は position、width_ratio、margin_ratio、video_fit を受け付けます。 |
body.output | object | いいえ | width と height は 256〜2160 の偶数で指定します。fps は 24、25、30、60 から選べます。 |
body.mode | string | いいえ | async はジョブ ID を即時に返します。sync と subscribe は上限付き待機、webhook は終端通知です。 |
body.wait_timeout_seconds | integer | いいえ | sync または subscribe の待機時間です。0〜30 秒。 |
body.webhook_url | string | いいえ | 終端通知を受け取る公開 HTTPS URL。 |
body.project_id | string | いいえ | 同じワークスペース内の保存先プロジェクト ID。 |
body.metadata | object | いいえ | ジョブに保存する呼び出し元の補足情報。 |
idempotency_key | string | はい | 同じリクエストの再試行時に同じキーを使います。 |
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.