メインコンテンツへスキップ

概要

AI動画生成は急速に発展しています。Ace Data Cloudは、文章から動画生成や画像から動画生成など、さまざまなシーンをカバーする7種類の動画生成APIを提供しています。

利用可能な動画生成サービス

サービスエンドポイントモデル特徴
SoraPOST /sora/videossora-2, sora-2-proOpenAI製、映画品質の画質
VeoPOST /veo/videosveo3, veo3-fastGoogle製、4K対応
KlingPOST /kling/videoskling-v2-5-turbo快手製、速度が速い
LumaPOST /luma/videos始まりと終わりのフレーム制御
HailuoPOST /hailuo/videosminimax-t2vMiniMax製
SeedancePOST /seedance/videosdoubao-seedance-1-0-pro-250528バイトダンス製
WanPOST /wan/videoswan2.6-t2vアリババ製

クイックスタート

Sora動画生成

import requests

response = requests.post(
    "https://api.acedata.cloud/sora/videos",
    headers={
        "Authorization": "Bearer YOUR_API_TOKEN",
        "Content-Type": "application/json",
    },
    json={
        "prompt": "A cat playing in a sunny garden",
        "model": "sora-2",
        "duration": 10,
        "orientation": "landscape",
    },
)
print(response.json())

Kling動画生成

response = requests.post(
    "https://api.acedata.cloud/kling/videos",
    headers={
        "Authorization": "Bearer YOUR_API_TOKEN",
        "Content-Type": "application/json",
    },
    json={
        "action": "text2video",
        "prompt": "A white cat walking in the snow",
        "model": "kling-v2-5-turbo",
        "duration": 5,
        "aspect_ratio": "16:9",
    },
)
print(response.json())

Veo動画生成

response = requests.post(
    "https://api.acedata.cloud/veo/videos",
    headers={
        "Authorization": "Bearer YOUR_API_TOKEN",
        "Content-Type": "application/json",
    },
    json={
        "action": "text2video",
        "prompt": "A coffee mug rotating on a marble counter",
        "model": "veo3",
    },
)
print(response.json())

非同期タスク処理

動画生成は通常、時間がかかります。すべての動画APIは以下をサポートしています:
  1. コールバック通知:リクエストにcallback_urlを設定し、生成完了後に結果を自動でプッシュ
  2. ポーリング照会/tasksエンドポイントを通じてタスク進捗を照会
# コールバックURLを使用
data = {
    "prompt": "A sunrise over mountains",
    "model": "sora-2",
    "callback_url": "https://your-server.com/webhook",
}

# またはタスク状態をポーリング
task_response = requests.post("https://api.acedata.cloud/sora/tasks",
    headers={"Authorization": "Bearer YOUR_API_TOKEN"},
    json={"task_id": "your-task-id"})

選択のおすすめ

  • 最高画質:Sora(sora-2-pro)
  • 最速速度:Kling(kling-v2-5-turbo)
  • 最高解像度:Veo(4K対応)
  • 始まりと終わりのフレーム制御:Luma
  • コストパフォーマンス:Wan
platform.acedata.cloud にて無料体験が可能です。