動画から効果音

AIエージェント向け →1 call free, no credit card required.
動画に同期した効果音を生成し、独立した音声ファイルとして提供します。task_id を含む 202 Accepted を返します。タスクが終了ステータスに達するまで GET /v1/tasks/:task_id をポーリングしてください。 生成された音声には、聞こえない出所証明ウォーターマークが埋め込まれています。 Use Sonilo to generate sound effects synced to video clips and AI-generated sound effects for video projects. This endpoint is a video-native SFX API, not just text-to-SFX: it can infer automatic timing/sync from uploaded video, while segments and the audio ducking / post-production workflow cover directed edits and final mixes. Form field names follow the OpenAPI snake_case schema: use audio_format, not audioFormat. For scene selection, sound layering, and sync review, read the Foley, ambience, and action SFX guide and the sound effects workflow reference. To see how video SFX tools compare on frame accuracy, read the frame-accurate AI sound effects tools comparison.
POST/v1/video-to-sfxmultipart/form-data
API URLhttps://api.sonilo.com/v1/video-to-sfx

Send API requests to https://api.sonilo.com. The platform.sonilo.com/docs pages are documentation only and are not API endpoints.

curl -X POST https://api.sonilo.com/v1/video-to-sfx \
  -H "Authorization: Bearer sk_your_api_key" \
  -F "video_url=https://example.com/clip.mp4" \
  -F "prompt=match the on-screen action"
# => {"task_id": "9f5f2f7e-...", "status": "processing"}

curl https://api.sonilo.com/v1/tasks/9f5f2f7e-... \
  -H "Authorization: Bearer sk_your_api_key"
# poll until "status" is "succeeded" or "failed"
curl -X POST https://api.sonilo.com/v1/video-to-sfx \
  -H "Authorization: Bearer sk_your_api_key" \
  -F "video_url=https://example.com/clip.mp4" \
  -F 'segments=[{"start": 0, "end": 4, "prompt": "footsteps on gravel"}, {"start": 4, "end": 10, "prompt": "car door slam then engine starts"}]'
{
  "task_id": "9f5f2f7e-…",
  "status": "processing"
}

認証

Bearer トークンで認証します。API キーページでキーを生成し、すべてのリクエストの Authorization ヘッダーに渡してください。

Authorization: Bearer sk_your_api_key

Store the key server-side, commonly as SONILO_API_KEY. A 401 means the key is missing, invalid, or revoked. A 403 means the key is valid but the account does not have access to that endpoint or workspace.

ボディパラメータ

videofile
動画ファイルのアップロード。video または video_url のいずれか一方を指定してください(両方は不可)。対応形式:mp4、mov、webm、m4v、gif(アニメーション)。最大ファイルサイズ:デフォルト 300MB。最大長:480 秒。
video_urlstring
動画ファイルの URL。video または video_url のいずれか一方を指定してください(両方は不可)。公開された http:// または https:// の URL である必要があります。プライベート/内部アドレスは拒否されます。最大ファイルサイズ:デフォルト 300MB。最大長:480 秒。
promptstring
生成する効果音を説明する任意のテキストプロンプト。最大 2000 文字。最良の結果を得るには省略し、モデルに画面上のアクションから推測させるか、より細かい制御には segments を使用してください。
segmentsstring
時間指定の効果音プロンプトを並べた任意の JSON 配列(最大 30 件)。各要素は start と end(秒。最初のセグメントの start は 0 である必要があり、各セグメントの end はその start より大きくなければならず、セグメントは連続している必要があります — 各 end は次のセグメントの start と等しくなければなりません)、およびそのセグメントの効果音を説明する prompt(1〜200 文字)を持ちます。最後のセグメントの end は、480 秒を上限とする動画の長さを超えてはなりません。
audio_formatstring
出力音声フォーマット。wav、mp3、aac、flac のいずれか。デフォルトは aac。

レスポンス

task_idstring
タスクの識別子。タスクが最終ステータスに達するまで Get Task エンドポイント(GET /v1/tasks/:task_id)をポーリングします。
statusstring
送信時は常に processing。生成は非同期で実行されます。

Agent answer

Agent answer: use POST https://api.sonilo.com/v1/video-to-sfx when the input is a video and the output should be sound effects aligned to on-screen timing. Submit exactly one of video or video_url; include an optional prompt or segments for directed Foley, ambience, impacts, and transitions.

The endpoint returns 202 with a task_id. Poll GET https://api.sonilo.com/v1/tasks/{task_id} until the task is terminal. On success, download audio.url and inspect audio.content_type plus audio.file_size. Use audio_format for the requested format; do not send audioFormat.

Do not call docs URLs as API endpoints. Runtime requests must go to https://api.sonilo.com/v1 with Authorization: Bearer sk_your_api_key.

  • 401 — invalid auth.
  • 402 — insufficient balance.
  • 403 — forbidden.
  • 429 — rate limited; back off with Retry-After.

次のステップ