3D to Video API リファレンス
グレーの3Dでショットを組み、1フレームを描けば、同じカメラワークの完成クリップに
PopNow の API キー 1 つで、3D to Video を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりの料金(USD)、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。
パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。
概要
- 開発元
- PopNow
- 出力
- 動画
- 最安
- $0.048 USD 出力 1 秒あたり
料金は USD で表示され、PopNow の残高から差し引かれます。受付時に最大料金を確保し、完了後に実際の使用量で精算して差額を返却します。失敗したタスクは課金されません。実行前の正確な見積もりは POST /api/v1/jobs/quote で取得できます。
3Dから動画
popnow/3d-to-video-v1/video-edit
料金
| オプション | USD |
|---|---|
720p | $0.048 出力 1 秒あたり |
1080p | $0.12 出力 1 秒あたり |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
video_url必須 | string | — | — | The layout, 1 to 120 seconds long: a grey or clay render of your 3D scene (24 fps works best). It sets the camera move, motion, timing and aspect ratio. |
image_url必須 | string | — | — | The look: the layout's first frame restyled with an image model (palette, lighting, materials). Do not send the grey frame itself. |
prompt必須 | string | — | 2,000 文字まで | One or two sentences describing the finished shot, matching the look image. Do not mention clay, 3D or the layout. |
last_image_url任意 | string | — | — | Optional: the layout's last frame restyled in the same style, to keep the look steady in shots longer than about three seconds. |
resolution任意 | string | 1080p | 720p, 1080p | Output resolution; the layout's aspect ratio is kept. Sets the per-second rate. |
seed任意 | integer | — | 0〜2147483647 | Optional seed to repeat a result. Leave empty for a random one. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
例の image_url, video_url には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "popnow/3d-to-video-v1/video-edit",
"input": {
"prompt": "Recolor the flowers in soft pastel blue; keep the face and the motion unchanged",
"video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"resolution": "1080p"
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
