HappyHorse 1.1 API リファレンス
9種類の縦横比で、音声つき1080pクリップ
PopNow の API キー 1 つで、HappyHorse 1.1 を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりのクレジット、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。
パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。
概要
- 開発元
- Alibaba
- 出力
- 動画
- 最安
- 21 クレジット 出力 1 秒あたり ($0.21)
1 クレジット = 0.01 米ドル。タスクの受付時に上限額を確保し、完了時に実際の使用量で精算します(整数クレジットに切り上げ、差額は返却)。失敗したタスクには課金されません。実行前に正確な金額を知りたいときは POST /api/v1/jobs/quote を呼んでください。
動画を作成
alibaba/happyhorse-1.1/text-to-video
料金
| オプション | クレジット (出力 1 秒あたり) | 米ドル |
|---|---|---|
720p | 21 | $0.21 |
1080p | 27 | $0.27 |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
prompt必須 | string | — | 2,500 文字まで | Describe the scene, action, camera movement, and timing. |
aspect_ratio任意 | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 4:5, 5:4, 9:21, 21:9 | Output aspect ratio. |
resolution任意 | string | 720p | 720p, 1080p | Output video resolution. |
duration_seconds任意 | integer | 5 | 3〜15 | Output duration in seconds. Any integer from 3 to 15 is accepted; longer clips cost proportionally more. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
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": "alibaba/happyhorse-1.1/text-to-video",
"input": {
"prompt": "A paper boat drifts down a rain-soaked street at dusk, neon signs reflecting in the water, slow tracking shot at ground level",
"duration_seconds": 5,
"resolution": "720p"
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"画像から動画
alibaba/happyhorse-1.1/image-to-video
料金
| オプション | クレジット (出力 1 秒あたり) | 米ドル |
|---|---|---|
720p | 21 | $0.21 |
1080p | 27 | $0.27 |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
prompt必須 | string | — | 2,500 文字まで | Describe the scene, action, camera movement, and timing. |
image_url必須 | string (uri) | — | — | Image used as the first video frame. |
resolution任意 | string | 720p | 720p, 1080p | Output video resolution. |
duration_seconds任意 | integer | 5 | 3〜15 | Output duration in seconds. Any integer from 3 to 15 is accepted; longer clips cost proportionally more. |
seed任意 | integer | — | 0〜2147483647 | Random seed for controlled comparisons. Omit it to let each run pick its own. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
例の image_url には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。
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": "alibaba/happyhorse-1.1/image-to-video",
"input": {
"prompt": "He lands softly on the rooftop, laughs and turns toward the camera while the balloons sway in the evening breeze; slow push-in",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"duration_seconds": 5,
"resolution": "720p"
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"参照から動画
alibaba/happyhorse-1.1/reference-to-video
料金
| オプション | クレジット (出力 1 秒あたり) | 米ドル |
|---|---|---|
720p | 21 | $0.21 |
1080p | 27 | $0.27 |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
prompt必須 | string | — | 2,500 文字まで | Describe the scene, action, camera movement, and timing. |
reference_image_urls必須 | array<string (uri)> | — | 9 件まで | Reference images in the order used by the prompt. |
aspect_ratio任意 | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 4:5, 5:4, 9:21, 21:9 | Output aspect ratio. |
resolution任意 | string | 720p | 720p, 1080p | Output video resolution. |
duration_seconds任意 | integer | 5 | 3〜15 | Output duration in seconds. Any integer from 3 to 15 is accepted; longer clips cost proportionally more. |
seed任意 | integer | — | 0〜2147483647 | Random seed for controlled comparisons. Omit it to let each run pick its own. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
例の reference_image_urls には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。
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": "alibaba/happyhorse-1.1/reference-to-video",
"input": {
"prompt": "The man from the reference image jogs across a sunlit rooftop at golden hour and smiles at the camera; smooth tracking shot",
"reference_image_urls": [
"https://media.popnow.ai/influencer/examples/ava.webp"
],
"duration_seconds": 5,
"resolution": "720p"
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
