Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

Black Forest Labs のロゴ

FLUX Video Upscale

動画から動画 • Black Forest Labs

Markdown で表示Agent セットアップ
  • サードパーティ

FLUX Video Upscale は動画の解像度を上げます。ソースに忠実な precise モードと、ディテールを強く強調する creative モードがあります。最大 20 秒のクリップに対応し、音声は保持します。

モデル情報
利用規約とライセンスリンク
詳細情報リンク
料金Cloudflare ダッシュボードで料金を見る

使い方

const response = await env.AI.run(
  'black-forest-labs/flux-video-upscale',
  {
    input_video: 'https://replicate.delivery/pbxt/PetLEVcclEkT5H9A3tYETZyAMT5GE2Sa4m6sQqPDpj8vgHga/animatediff.B572L3lv.mp4',
    upscale_factor: 2,
    creativity: 0,
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "black-forest-labs/flux-video-upscale",
  "input": {
    "input_video": "https://replicate.delivery/pbxt/PetLEVcclEkT5H9A3tYETZyAMT5GE2Sa4m6sQqPDpj8vgHga/animatediff.B572L3lv.mp4",
    "upscale_factor": 2,
    "creativity": 0
  }
}'
{
  "state": "Completed",
  "result": {
    "video": "https://examples.aig.cloudflare.com/black-forest-labs/flux-video-upscale/precise-video-upscale.mp4"
  },
  "gatewayMetadata": {
    "keySource": "Unified"
  }
}

クリエイティブな動画アップスケール — クリエイティブモードで、元クリップの細かいディテールを強調します。
const response = await env.AI.run(
  'black-forest-labs/flux-video-upscale',
  {
    input_video: 'https://replicate.delivery/xezq/q1XccP3m8V4HMBNDY3LBkaiKjPdJ6e7t74ICqq2wbfWHJNFXA/tmpq8inl7pd.mp4',
    upscale_factor: 2,
    creativity: 1,
    prompt: 'A cinematic travel video with detailed natural scenery and crisp texture',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "black-forest-labs/flux-video-upscale",
  "input": {
    "input_video": "https://replicate.delivery/xezq/q1XccP3m8V4HMBNDY3LBkaiKjPdJ6e7t74ICqq2wbfWHJNFXA/tmpq8inl7pd.mp4",
    "upscale_factor": 2,
    "creativity": 1,
    "prompt": "A cinematic travel video with detailed natural scenery and crisp texture"
  }
}'
{
  "state": "Completed",
  "result": {
    "video": "https://examples.aig.cloudflare.com/black-forest-labs/flux-video-upscale/creative-video-upscale.mp4"
  },
  "gatewayMetadata": {
    "keySource": "Unified"
  }
}

パラメーター

input_video
string必須HTTP(S) URL または Base64 エンコードの MP4 動画です。最大 20 秒、50MB です。
upscale_factor
numberminimum: 1.5maximum: 3元の解像度に対する出力スケールです。1.5 倍から 3 倍です。
prompt
string創造的なディテール強調を案内する、クリップの任意の説明です。
safety_tolerance
integerminimum: 0maximum: 4モデレーションの厳しさです。0(最も厳しい)から 4 です。
video
stringformat: uriアップスケールした MP4 の署名付き URL です。期限切れ前にダウンロードしてください。

API スキーマ(Raw)

Input
Output

役に立ちましたか?