PopNowAPI ドキュメント
本文

Video Sound Effects API リファレンス

動画に合わせた効果音と環境音

PopNow の API キー 1 つで、Video Sound Effects を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりのクレジット、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。

パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。

概要

開発元
PopNow
出力
音声
最安
0.18 クレジット 出力 1 秒あたり ($0.0018)

1 クレジット = 0.01 米ドル。タスクの受付時に上限額を確保し、完了時に実際の使用量で精算します(整数クレジットに切り上げ、差額は返却)。失敗したタスクには課金されません。実行前に正確な金額を知りたいときは POST /api/v1/jobs/quote を呼んでください。

動画から音声

popnow/foley-v1/video-to-audio

料金

オプションクレジット (出力 1 秒あたり)米ドル
既定0.18$0.0018

パラメーター

フィールド型既定値指定できる値説明
video_url必須string——Clip to add sound to. The picture is kept; the returned clip carries the generated sound as its audio.
prompt任意string—1,000 文字までThe sounds you want, as a short list. If omitted, a general request for sounds that match the on-screen action is used.
duration_seconds任意integer81〜30Seconds of sound to generate, from 1 to 30. The returned clip is cut to this length and these seconds are billed.
negative_prompt任意string—1,000 文字までSounds to keep out, such as music or speech.
ignore_visual_semantics任意booleanfalse—Choose the sounds from the prompt alone instead of from what the picture shows; timing still follows the motion.
guidance_scale任意number4.50〜20How closely the sound follows the description, from 0 to 20.
steps任意integer254〜50Refinement passes, from 4 to 50. More passes take longer.

リクエスト例

このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。

例の video_url には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。

POST /api/v1/jobs/createTask
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/foley-v1/video-to-audio",
  "input": {
    "prompt": "Soft wind, rustling petals and distant birdsong",
    "video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
    "duration_seconds": 8
  }
}'

レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

次に読む

このページの内容