モデル

happyhorse-1.1-t2v

Markdown · JSON

happyhorse-1.1-t2v

テキストの説明から音声付きの短い動画を作成するモデルです。動き、構図、ビジュアルスタイルを言葉で指定するシーンに適しています。

モデルについて

この説明はモデルの機能を紹介するものです。Ailootで利用できる入力、出力、オプションは、選択したメソッドごとに以下に記載されています。

HappyHorse-1.1-T2Vは、テキストから短い動画シーンを作成するAlibabaのモデルです。説明文で登場人物、動作、状況、視覚的な表現を指定します。このモードでは元の画像は不要です。モデルは映像を生成し、それに伴う音声も生成できます。

メーカーは、シーンの意味の理解、映画的な演出、動きの表現力を特徴として挙げています。テキストで雰囲気、登場人物の動作、物体の挙動、物理的な動きを指定できます。何が起きるべきかを中心にシーンを組み立て、照明、アングル、カメラの動きで演出を導けます。

言葉による演出

指示は必須で、どの言語でも入力できます。中国語以外は5000文字、中国語は2500文字までで、超過部分は切り捨てられます。動作、周囲の環境、重要な視覚的要素はこの範囲内で説明する必要があります。この指定方法は、完成済みの最初のフレームを与えるのではなく、モデルに新しいシーンを作る余地を残します。

このモードでは、テキストが主な制御材料になります。登場人物や物体の具体的な外観は言葉で説明できます。別の画像でその外観を伝える機能は、このファミリーの別モードに属します。結果は指示全体に左右されるため、同じ初期乱数シードは似たバリエーションを得るのに役立ちますが、厳密な再現は保証しません。

動画と音声

HappyHorse-1.1では、動画の長さを3〜15秒の整数で選択します。解像度は480P、720P、1080Pに対応しています。完成ファイルはMP4で、フレームレートは毎秒24フレームです。モデルは映像とともに音声を生成し、シーン内の出来事に音声を結び付けられます。

画面の形はあらかじめ指定できます。16:9、9:16、1:1、4:3、3:4、4:5、5:4、9:21、21:9に対応し、映画的な横長の画面から細長い縦動画まで選べます。解像度、形式、長さが結果のサイズを決め、内容と動きはテキストで指定します。

このバージョンは、言葉で表した構想から新しいシーンを作るためのものです。演出をテキストで表現する短いエピソード、視覚的なアイデア、雰囲気を重視した動画に適しています。

Ailoot · 動画 POST /v1/videos/generations happyhorse-1.1-t2v

happyhorse-1.1-t2v

Alibaba /happyhorse-1.1-t2v
モデルID
  • happyhorse-1.1-t2v
  • happyhorse-t2v
  • happyhorse-t2v-latest

はじめに

テキストの説明から音声付きの短い動画を作成するモデルです。動き、構図、ビジュアルスタイルを言葉で指定するシーンに適しています。

対応する入力
テキスト
結果
動画

Ailootで利用可能 · 入力とメソッド

Ailoot · 動画 POST /v1/videos/generations
入力の種類
text
出力の種類
video
出力形式
mp4
フィールド種類要件値と制限デフォルト
フィールドmodel種類string要件必須値と制限
happyhorse-1.1-t2v
デフォルト—
フィールドprompt種類string要件必須値と制限
最小の長さ: 1
デフォルト—
フィールドduration種類integer要件任意値と制限
最小値: 3
最大値: 15
単位: 秒
デフォルト5
フィールドresolution種類string要件任意値と制限
480P, 720P, 1080P
デフォルト720P
フィールドratio種類string要件任意値と制限
16:9, 9:16, 1:1, 4:3, 3:4, 4:5, 5:4, 9:21, 21:9
デフォルト16:9
フィールドimage_urls種類https_url|data_image_url[]要件任意値と制限
最小項目数: 0
最大項目数: 0
デコード後の最大バイト数: 20,971,520
MIMEタイプ: image/jpeg, image/png, image/webp
デフォルト—
入力素材の組み合わせ

テキストから動画へ · 必須: prompt

メソッドのパラメータとライフサイクル
パラメータ仕様
パラメータcontent_type仕様application/json
パラメータrequired仕様model, prompt
パラメータmaterial_types仕様text
パラメータoptional仕様duration, resolution, ratio
パラメータduration_integer_range仕様3, 15
パラメータdefault_duration仕様5
パラメータresolution仕様480P, 720P, 1080P
パラメータdefault_resolution仕様720P
パラメータratio仕様16:9, 9:16, 1:1, 4:3, 3:4, 4:5, 5:4, 9:21, 21:9
パラメータratio_must_omit仕様false
パラメータimage_urls仕様{"max_count":0}

ライフサイクル: submit_once_poll_original

GET /v1/videos/{request_id}

GET /v1/videos/generations/{request_id}

GET /v1/videos/{request_id}/content

GET /v1/videos/generations/{request_id}/content

メソッドの形式とIDは正確に記載しています。供給元の対応能力とリクエストの受け入れは別です。

料金

Ailootのメソッド料金

Ailoot 動画POST /v1/videos/generations
出力
$0.18 1080p・1秒あたり
出力
$0.07 480p・1秒あたり
出力
$0.14 720p・1秒あたり

Ailootはリクエスト前に見積額を確保します。結果の取得後、実測使用量に基づいて最終料金を精算します。ストリーミング時の精算には最終の使用量記録を使用します。金額の確保と精算の仕組み →

リクエスト例

Ailoot · 動画

シーンのサンプル
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_PROMPT_FILE:?Set your actual UTF-8 scene brief}"
export AILOOT_PROMPT_FILE
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "happyhorse-1.1-t2v", "prompt": "", "duration": 5, "resolution": "720P", "ratio": "16:9"}')
f=Path(os.environ["AILOOT_PROMPT_FILE"])
if not f.is_file():raise SystemExit("Choose your actual UTF-8 brief")
p['prompt']=f.read_text(encoding="utf-8")
if not p['prompt'].strip():raise SystemExit("Brief must contain text")
Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/videos/generations \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import json
from pathlib import Path
print(json.dumps(json.loads(Path("result.json").read_text()),ensure_ascii=False,indent=2))
PY_RESULT

結果を受け取って保存

Ailoot · 動画

mp4

  • GET /v1/videos/{request_id}
  • GET /v1/videos/generations/{request_id}
  • GET /v1/videos/{request_id}/content
  • GET /v1/videos/generations/{request_id}/content
ジョブのステータスを確認
GET · ステータス取得
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_OPERATION_ID:?Set the actual Ailoot operation ID returned by creation}"
export AILOOT_OPERATION_ID
operation_id=$(python3 -c 'import os,urllib.parse;print(urllib.parse.quote(os.environ["AILOOT_OPERATION_ID"],safe=""))')
curl --fail-with-body --silent --show-error "https://api.ailoot.ai/v1/videos/generations/$operation_id" \
  -H "Authorization: Bearer $AILOOT_API_KEY" -o status.json
python3 - <<'PY_STATUS'
import json
from pathlib import Path
r=json.loads(Path("status.json").read_text())
print(json.dumps(r))
if r.get("status")=="completed":
    for x in r.get("data",[]):print(x)
PY_STATUS
完了したアセットをすべて保存
GET · 完了した全アセットの取得
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_STATUS_FILE:?Set the actual completed status JSON file}"
export AILOOT_STATUS_FILE
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
from urllib.parse import urlsplit,urljoin
f=Path(os.environ["AILOOT_STATUS_FILE"])
if not f.is_file():raise SystemExit("Choose the actual completed status file")
r=json.loads(f.read_text())
if r.get("status")!="completed" or not isinstance(r.get("data"),list) or not r["data"]:raise SystemExit("Wait for a completed status with asset paths")
urls=[]
for x in r["data"]:
    if not isinstance(x,str) or "\n" in x or "\r" in x:raise SystemExit("Invalid asset path")
    u=urljoin("https://api.ailoot.ai",x)
    z=urlsplit(u)
    if z.scheme!="https" or z.netloc!="api.ailoot.ai" or z.username or z.password:raise SystemExit("Use the actual Ailoot asset paths from status")
    urls.append(u)
Path("asset-urls.txt").write_text("\n".join(urls)+"\n")
PY_REQUEST
index=0
while IFS= read -r asset_url; do
  curl --fail-with-body --silent --show-error "$asset_url" \
    -H "Authorization: Bearer $AILOOT_API_KEY" -o "video-${index}.mp4"
  index=$((index + 1))
done < asset-urls.txt
その他のコンテンツ取得
GET · コンテンツの取得
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_OPERATION_ID:?Set the actual Ailoot operation ID returned by creation}"
export AILOOT_OPERATION_ID
operation_id=$(python3 -c 'import os,urllib.parse;print(urllib.parse.quote(os.environ["AILOOT_OPERATION_ID"],safe=""))')
curl --fail-with-body --silent --show-error "https://api.ailoot.ai/v1/videos/generations/$operation_id/content" \
  -H "Authorization: Bearer $AILOOT_API_KEY" -o video.mp4
完了した結果をすべて保存

完了した動画や返されたファイルをすべて保存し、実際に返されたすべてのアセットURLから取得してください。

返されたすべてのデータ項目/出力インデックスを保持してください。content_urlは最初の出力のみです。実際のすべてのコンテンツパス/アセットを取得してください。indexなしのコンテンツGETでは、全出力は取得できません。

元のレスポンスを確認する場合

既存の元のジョブを読み取ってください。結果不明の送信を決して再実行しないでください。

レスポンスのフィールド
フィールド種類
フィールドid種類string
フィールドobject種類string
フィールドmodel種類string
フィールドstatus種類string
フィールドcontent_url種類signed URL
フィールドdata[]種類signed URL
フィールドusage種類object
フィールドresult_pending_check種類boolean
エラーと次の手順
レスポンス条件次の手順
レスポンス400 · invalid_request_error条件必須フィールド、素材の表現形式、またはパラメーター値が不正です次の手順新しい生成リクエストを送る前に、指定されたフィールドを修正してください。
レスポンス409 · video_not_ready条件元の結果のコンテンツはまだ利用できません次の手順元の返却IDをポーリングし、Retry-Afterに従ってください。
レスポンスserver_error条件返されたレスポンスは、操作または結果の確認が必要であることを示しています次の手順最初に返された操作/タスク ID、リクエストヘッダー、レスポンスを保存し、その元の操作に対してサポートされている読み取りを継続してください。作成リクエストを再送しないでください。

エイリアス

モデルのエイリアス

Ailoot happyhorse-1.1-t2v, happyhorse-t2v, happyhorse-t2v-latest

メソッドパスのエイリアス

上記に表示されたメソッドパスを使用してください。

関連する呼び出し用ID

happyhorse-1.1-t2v, happyhorse-t2v, happyhorse-t2v-latest

Ailoot · 動画 POST /v1/videos/generations happyhorse-t2v

happyhorse-t2v

Alibaba /happyhorse-t2v
モデルID
  • happyhorse-1.1-t2v
  • happyhorse-t2v
  • happyhorse-t2v-latest

はじめに

テキストの説明から音声付きの短い動画を作成するモデルです。動き、構図、ビジュアルスタイルを言葉で指定するシーンに適しています。

対応する入力
テキスト
結果
動画

Ailootで利用可能 · 入力とメソッド

Ailoot · 動画 POST /v1/videos/generations
入力の種類
text
出力の種類
video
出力形式
mp4
フィールド種類要件値と制限デフォルト
フィールドmodel種類string要件必須値と制限
happyhorse-t2v
デフォルト—
フィールドprompt種類string要件必須値と制限
最小の長さ: 1
デフォルト—
フィールドduration種類integer要件任意値と制限
最小値: 3
最大値: 15
単位: 秒
デフォルト5
フィールドresolution種類string要件任意値と制限
480P, 720P, 1080P
デフォルト720P
フィールドratio種類string要件任意値と制限
16:9, 9:16, 1:1, 4:3, 3:4, 4:5, 5:4, 9:21, 21:9
デフォルト16:9
フィールドimage_urls種類https_url|data_image_url[]要件任意値と制限
最小項目数: 0
最大項目数: 0
デコード後の最大バイト数: 20,971,520
MIMEタイプ: image/jpeg, image/png, image/webp
デフォルト—
入力素材の組み合わせ

テキストから動画へ · 必須: prompt

メソッドのパラメータとライフサイクル
パラメータ仕様
パラメータmaterial_types仕様text
パラメータrequired仕様null
パラメータoptional_controls仕様null

ライフサイクル: submit_once_poll_original

GET /v1/videos/{request_id}

GET /v1/videos/generations/{request_id}

GET /v1/videos/{request_id}/content

GET /v1/videos/generations/{request_id}/content

メソッドの形式とIDは正確に記載しています。供給元の対応能力とリクエストの受け入れは別です。

料金

Ailootのメソッド料金

Ailoot 動画POST /v1/videos/generations
出力
$0.18 1080p・1秒あたり
出力
$0.07 480p・1秒あたり
出力
$0.14 720p・1秒あたり

Ailootはリクエスト前に見積額を確保します。結果の取得後、実測使用量に基づいて最終料金を精算します。ストリーミング時の精算には最終の使用量記録を使用します。金額の確保と精算の仕組み →

リクエスト例

Ailoot · 動画

シーンのサンプル
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_PROMPT_FILE:?Set your actual UTF-8 scene brief}"
export AILOOT_PROMPT_FILE
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "happyhorse-t2v", "prompt": "", "duration": 5, "resolution": "720P", "ratio": "16:9"}')
f=Path(os.environ["AILOOT_PROMPT_FILE"])
if not f.is_file():raise SystemExit("Choose your actual UTF-8 brief")
p['prompt']=f.read_text(encoding="utf-8")
if not p['prompt'].strip():raise SystemExit("Brief must contain text")
Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/videos/generations \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import json
from pathlib import Path
print(json.dumps(json.loads(Path("result.json").read_text()),ensure_ascii=False,indent=2))
PY_RESULT

結果を受け取って保存

Ailoot · 動画

mp4

  • GET /v1/videos/{request_id}
  • GET /v1/videos/generations/{request_id}
  • GET /v1/videos/{request_id}/content
  • GET /v1/videos/generations/{request_id}/content
ジョブのステータスを確認
GET · ステータス取得
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_OPERATION_ID:?Set the actual Ailoot operation ID returned by creation}"
export AILOOT_OPERATION_ID
operation_id=$(python3 -c 'import os,urllib.parse;print(urllib.parse.quote(os.environ["AILOOT_OPERATION_ID"],safe=""))')
curl --fail-with-body --silent --show-error "https://api.ailoot.ai/v1/videos/generations/$operation_id" \
  -H "Authorization: Bearer $AILOOT_API_KEY" -o status.json
python3 - <<'PY_STATUS'
import json
from pathlib import Path
r=json.loads(Path("status.json").read_text())
print(json.dumps(r))
if r.get("status")=="completed":
    for x in r.get("data",[]):print(x)
PY_STATUS
完了したアセットをすべて保存
GET · 完了した全アセットの取得
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_STATUS_FILE:?Set the actual completed status JSON file}"
export AILOOT_STATUS_FILE
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
from urllib.parse import urlsplit,urljoin
f=Path(os.environ["AILOOT_STATUS_FILE"])
if not f.is_file():raise SystemExit("Choose the actual completed status file")
r=json.loads(f.read_text())
if r.get("status")!="completed" or not isinstance(r.get("data"),list) or not r["data"]:raise SystemExit("Wait for a completed status with asset paths")
urls=[]
for x in r["data"]:
    if not isinstance(x,str) or "\n" in x or "\r" in x:raise SystemExit("Invalid asset path")
    u=urljoin("https://api.ailoot.ai",x)
    z=urlsplit(u)
    if z.scheme!="https" or z.netloc!="api.ailoot.ai" or z.username or z.password:raise SystemExit("Use the actual Ailoot asset paths from status")
    urls.append(u)
Path("asset-urls.txt").write_text("\n".join(urls)+"\n")
PY_REQUEST
index=0
while IFS= read -r asset_url; do
  curl --fail-with-body --silent --show-error "$asset_url" \
    -H "Authorization: Bearer $AILOOT_API_KEY" -o "video-${index}.mp4"
  index=$((index + 1))
done < asset-urls.txt
その他のコンテンツ取得
GET · コンテンツの取得
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_OPERATION_ID:?Set the actual Ailoot operation ID returned by creation}"
export AILOOT_OPERATION_ID
operation_id=$(python3 -c 'import os,urllib.parse;print(urllib.parse.quote(os.environ["AILOOT_OPERATION_ID"],safe=""))')
curl --fail-with-body --silent --show-error "https://api.ailoot.ai/v1/videos/generations/$operation_id/content" \
  -H "Authorization: Bearer $AILOOT_API_KEY" -o video.mp4
完了した結果をすべて保存

完了した動画や返されたファイルをすべて保存し、実際に返されたすべてのアセットURLから取得してください。

返されたすべてのデータ項目/出力インデックスを保持してください。content_urlは最初の出力のみです。実際のすべてのコンテンツパス/アセットを取得してください。indexなしのコンテンツGETでは、全出力は取得できません。

元のレスポンスを確認する場合

既存の元のジョブを読み取ってください。結果不明の送信を決して再実行しないでください。

レスポンスのフィールド
フィールド種類
フィールドid種類string
フィールドobject種類string
フィールドmodel種類string
フィールドstatus種類string
フィールドcontent_url種類signed URL
フィールドdata[]種類signed URL
フィールドusage種類object
フィールドresult_pending_check種類boolean
エラーと次の手順
レスポンス条件次の手順
レスポンス400 · invalid_request_error条件必須フィールド、素材の表現形式、またはパラメーター値が不正です次の手順新しい生成リクエストを送る前に、指定されたフィールドを修正してください。
レスポンス409 · video_not_ready条件元の結果のコンテンツはまだ利用できません次の手順元の返却IDをポーリングし、Retry-Afterに従ってください。
レスポンスserver_error条件返されたレスポンスは、操作または結果の確認が必要であることを示しています次の手順最初に返された操作/タスク ID、リクエストヘッダー、レスポンスを保存し、その元の操作に対してサポートされている読み取りを継続してください。作成リクエストを再送しないでください。

エイリアス

モデルのエイリアス

Ailoot happyhorse-1.1-t2v, happyhorse-t2v, happyhorse-t2v-latest

メソッドパスのエイリアス

上記に表示されたメソッドパスを使用してください。

関連する呼び出し用ID

happyhorse-1.1-t2v, happyhorse-t2v, happyhorse-t2v-latest

Ailoot · 動画 POST /v1/videos/generations happyhorse-t2v-latest

happyhorse-t2v-latest

Alibaba /happyhorse-t2v-latest
モデルID
  • happyhorse-1.1-t2v
  • happyhorse-t2v
  • happyhorse-t2v-latest

はじめに

テキストの説明から音声付きの短い動画を作成するモデルです。動き、構図、ビジュアルスタイルを言葉で指定するシーンに適しています。

対応する入力
テキスト
結果
動画

Ailootで利用可能 · 入力とメソッド

Ailoot · 動画 POST /v1/videos/generations
入力の種類
text
出力の種類
video
出力形式
mp4
フィールド種類要件値と制限デフォルト
フィールドmodel種類string要件必須値と制限
happyhorse-t2v-latest
デフォルト—
フィールドprompt種類string要件必須値と制限
最小の長さ: 1
デフォルト—
フィールドduration種類integer要件任意値と制限
最小値: 3
最大値: 15
単位: 秒
デフォルト5
フィールドresolution種類string要件任意値と制限
480P, 720P, 1080P
デフォルト720P
フィールドratio種類string要件任意値と制限
16:9, 9:16, 1:1, 4:3, 3:4, 4:5, 5:4, 9:21, 21:9
デフォルト16:9
フィールドimage_urls種類https_url|data_image_url[]要件任意値と制限
最小項目数: 0
最大項目数: 0
デコード後の最大バイト数: 20,971,520
MIMEタイプ: image/jpeg, image/png, image/webp
デフォルト—
入力素材の組み合わせ

テキストから動画へ · 必須: prompt

メソッドのパラメータとライフサイクル
パラメータ仕様
パラメータmaterial_types仕様text
パラメータrequired仕様null
パラメータoptional_controls仕様null

ライフサイクル: submit_once_poll_original

GET /v1/videos/{request_id}

GET /v1/videos/generations/{request_id}

GET /v1/videos/{request_id}/content

GET /v1/videos/generations/{request_id}/content

メソッドの形式とIDは正確に記載しています。供給元の対応能力とリクエストの受け入れは別です。

料金

Ailootのメソッド料金

Ailoot 動画POST /v1/videos/generations
出力
$0.18 1080p・1秒あたり
出力
$0.07 480p・1秒あたり
出力
$0.14 720p・1秒あたり

Ailootはリクエスト前に見積額を確保します。結果の取得後、実測使用量に基づいて最終料金を精算します。ストリーミング時の精算には最終の使用量記録を使用します。金額の確保と精算の仕組み →

リクエスト例

Ailoot · 動画

シーンのサンプル
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_PROMPT_FILE:?Set your actual UTF-8 scene brief}"
export AILOOT_PROMPT_FILE
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "happyhorse-t2v-latest", "prompt": "", "duration": 5, "resolution": "720P", "ratio": "16:9"}')
f=Path(os.environ["AILOOT_PROMPT_FILE"])
if not f.is_file():raise SystemExit("Choose your actual UTF-8 brief")
p['prompt']=f.read_text(encoding="utf-8")
if not p['prompt'].strip():raise SystemExit("Brief must contain text")
Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/videos/generations \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import json
from pathlib import Path
print(json.dumps(json.loads(Path("result.json").read_text()),ensure_ascii=False,indent=2))
PY_RESULT

結果を受け取って保存

Ailoot · 動画

mp4

  • GET /v1/videos/{request_id}
  • GET /v1/videos/generations/{request_id}
  • GET /v1/videos/{request_id}/content
  • GET /v1/videos/generations/{request_id}/content
ジョブのステータスを確認
GET · ステータス取得
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_OPERATION_ID:?Set the actual Ailoot operation ID returned by creation}"
export AILOOT_OPERATION_ID
operation_id=$(python3 -c 'import os,urllib.parse;print(urllib.parse.quote(os.environ["AILOOT_OPERATION_ID"],safe=""))')
curl --fail-with-body --silent --show-error "https://api.ailoot.ai/v1/videos/generations/$operation_id" \
  -H "Authorization: Bearer $AILOOT_API_KEY" -o status.json
python3 - <<'PY_STATUS'
import json
from pathlib import Path
r=json.loads(Path("status.json").read_text())
print(json.dumps(r))
if r.get("status")=="completed":
    for x in r.get("data",[]):print(x)
PY_STATUS
完了したアセットをすべて保存
GET · 完了した全アセットの取得
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_STATUS_FILE:?Set the actual completed status JSON file}"
export AILOOT_STATUS_FILE
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
from urllib.parse import urlsplit,urljoin
f=Path(os.environ["AILOOT_STATUS_FILE"])
if not f.is_file():raise SystemExit("Choose the actual completed status file")
r=json.loads(f.read_text())
if r.get("status")!="completed" or not isinstance(r.get("data"),list) or not r["data"]:raise SystemExit("Wait for a completed status with asset paths")
urls=[]
for x in r["data"]:
    if not isinstance(x,str) or "\n" in x or "\r" in x:raise SystemExit("Invalid asset path")
    u=urljoin("https://api.ailoot.ai",x)
    z=urlsplit(u)
    if z.scheme!="https" or z.netloc!="api.ailoot.ai" or z.username or z.password:raise SystemExit("Use the actual Ailoot asset paths from status")
    urls.append(u)
Path("asset-urls.txt").write_text("\n".join(urls)+"\n")
PY_REQUEST
index=0
while IFS= read -r asset_url; do
  curl --fail-with-body --silent --show-error "$asset_url" \
    -H "Authorization: Bearer $AILOOT_API_KEY" -o "video-${index}.mp4"
  index=$((index + 1))
done < asset-urls.txt
その他のコンテンツ取得
GET · コンテンツの取得
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_OPERATION_ID:?Set the actual Ailoot operation ID returned by creation}"
export AILOOT_OPERATION_ID
operation_id=$(python3 -c 'import os,urllib.parse;print(urllib.parse.quote(os.environ["AILOOT_OPERATION_ID"],safe=""))')
curl --fail-with-body --silent --show-error "https://api.ailoot.ai/v1/videos/generations/$operation_id/content" \
  -H "Authorization: Bearer $AILOOT_API_KEY" -o video.mp4
完了した結果をすべて保存

完了した動画や返されたファイルをすべて保存し、実際に返されたすべてのアセットURLから取得してください。

返されたすべてのデータ項目/出力インデックスを保持してください。content_urlは最初の出力のみです。実際のすべてのコンテンツパス/アセットを取得してください。indexなしのコンテンツGETでは、全出力は取得できません。

元のレスポンスを確認する場合

既存の元のジョブを読み取ってください。結果不明の送信を決して再実行しないでください。

レスポンスのフィールド
フィールド種類
フィールドid種類string
フィールドobject種類string
フィールドmodel種類string
フィールドstatus種類string
フィールドcontent_url種類signed URL
フィールドdata[]種類signed URL
フィールドusage種類object
フィールドresult_pending_check種類boolean
エラーと次の手順
レスポンス条件次の手順
レスポンス400 · invalid_request_error条件必須フィールド、素材の表現形式、またはパラメーター値が不正です次の手順新しい生成リクエストを送る前に、指定されたフィールドを修正してください。
レスポンス409 · video_not_ready条件元の結果のコンテンツはまだ利用できません次の手順元の返却IDをポーリングし、Retry-Afterに従ってください。
レスポンスserver_error条件返されたレスポンスは、操作または結果の確認が必要であることを示しています次の手順最初に返された操作/タスク ID、リクエストヘッダー、レスポンスを保存し、その元の操作に対してサポートされている読み取りを継続してください。作成リクエストを再送しないでください。

エイリアス

モデルのエイリアス

Ailoot happyhorse-1.1-t2v, happyhorse-t2v, happyhorse-t2v-latest

メソッドパスのエイリアス

上記に表示されたメソッドパスを使用してください。

関連する呼び出し用ID

happyhorse-1.1-t2v, happyhorse-t2v, happyhorse-t2v-latest

FAQ · happyhorse-1.1-t2v
利用できる入力と結果は何ですか?

POST /v1/videos/generations · happyhorse-1.1-t2v: text → video

POST /v1/videos/generations · happyhorse-t2v: text → video

POST /v1/videos/generations · happyhorse-t2v-latest: text → video

リクエストはどの項目を使用しますか?

POST /v1/videos/generations · happyhorse-1.1-t2v: model, prompt, duration, resolution, ratio, image_urls

POST /v1/videos/generations · happyhorse-t2v: model, prompt, duration, resolution, ratio, image_urls

POST /v1/videos/generations · happyhorse-t2v-latest: model, prompt, duration, resolution, ratio, image_urls

どの制限が適用されますか?

POST /v1/videos/generations · happyhorse-1.1-t2v: duration.minimum: 3; duration.maximum: 15

POST /v1/videos/generations · happyhorse-t2v: duration.minimum: 3; duration.maximum: 15

POST /v1/videos/generations · happyhorse-t2v-latest: duration.minimum: 3; duration.maximum: 15

詳細を見る

AilootをClaude Code、OpenCode、Hermes、自分のアプリに接続しましょう。

企業とそのプロジェクト群

企業とそのプロジェクト群:数百万の顧客、毎月数十億規模の売上。

トークンを割引価格で購入。

継続利用にサブスクリプション割引。プロモコードでトークン購入が最大50%割引。

サブスクリプション
定期的なリクエストに合う割引プランを選びましょう。
最大50%のプロモコード
購入時にコードを入力すると、実施中のキャンペーンに沿って価格を再計算します。
支出を履歴で確認
各リクエストのモデル、トークン、金額が保存されます。

サブスクリプションを選ぶ · モデルの価格を見る

販売する製品に、 APIを組み込みましょう。

SaaS、アプリ、ボットをAilootの公式サービス提供条件とライセンス契約に基づいて接続できます。再販にはリセラーライセンスを申請できます。

商用アプリ
サービスの有料機能に、文章、画像、動画、音声の生成を組み込めます。
リセラーライセンス
プロジェクトの説明とアクセスの仕組みをお送りください。利用・再販条件の書面を申請できます。
サイトで契約文書を確認
接続前にサービス提供条件、ライセンス契約、データ処理ポリシーを読めます。

リセラーライセンスを申請 · サービス提供条件とライセンス契約