輸出解析度
支援公開 endpoint 架構中的 720p, 1080p。
Prompted source-video edits with optional reference images
curl -X POST https://runapi.ai/api/v1/happyhorse/edit_video \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "happyhorse-edit-video",
"video_url": "https://cdn.runapi.ai/public/samples/video.mp4",
"prompt": "Generate a 5-second 1080p cinematic clip of a paper horse galloping through a miniature cardboard city at night."
}'
import { HappyhorseClient } from "@runapi.ai/happyhorse";
const client = new HappyhorseClient();
const result = await client.editVideo.run({
model: "happyhorse-edit-video",
video_url: "https://cdn.runapi.ai/public/samples/video.mp4",
prompt: "Generate a 5-second 1080p cinematic clip of a paper horse galloping through a miniature cardboard city at night.",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/happyhorse/edit_video",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"happyhorse-edit-video","video_url":"https://cdn.runapi.ai/public/samples/video.mp4","prompt":"Generate a 5-second 1080p cinematic clip of a paper horse galloping through a miniature cardboard city at night."}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/happyhorse/edit_video");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'happyhorse-edit-video',
'video_url' => 'https://cdn.runapi.ai/public/samples/video.mp4',
'prompt' => 'Generate a 5-second 1080p cinematic clip of a paper horse galloping through a miniature cardboard city at night.',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.editVideo().run({"model":"happyhorse-edit-video","video_url":"https://cdn.runapi.ai/public/samples/video.mp4","prompt":"Generate a 5-second 1080p cinematic clip of a paper horse galloping through a miniature cardboard city at night."});
task.waitForResult();
require "runapi/happyhorse"
client = RunApi::Happyhorse::Client.new
result = client.edit_video.run(
model: "happyhorse-edit-video",
video_url: "https://cdn.runapi.ai/public/samples/video.mp4",
prompt: "Generate a 5-second 1080p cinematic clip of a paper horse galloping through a miniature cardboard city at night."
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.editVideo.Run({"model":"happyhorse-edit-video","video_url":"https://cdn.runapi.ai/public/samples/video.mp4","prompt":"Generate a 5-second 1080p cinematic clip of a paper horse galloping through a miniature cardboard city at night."})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model happyhorse-edit-video \
--endpoint edit_video \
--wait
7 個版本可用
選擇任一模型,幾秒內即可開始生成。
選擇任一模型,幾秒內即可開始生成。
| 提供者 | Alibaba |
| 模型 ID | happyhorse-edit-video |
| 模態 | Video |
| 任務類型 | Asynchronous |
| API 端點 | /api/v1/happyhorse/edit_video |
| 計費單位 | second |
| 輸入參數 | audio_setting, output_resolution, reference_image_urls, source_video_url |
| 最大解析度 | 720p, 1080p |
| 目錄狀態 | 可直接上線 |
免費註冊後,從控制台建立 happyhorse-edit-video 的 API 金鑰。
向 /api/v1/happyhorse/edit_video 傳送 POST 請求,並傳入 happyhorse-edit-video 模型 ID 與參數。
輪詢工作或依照回呼取得已完成的 happyhorse-edit-video 結果。
支援公開 endpoint 架構中的 720p, 1080p。
可設定 4 個已記錄的參數,包括 audio_setting, output_resolution, reference_image_urls, source_video_url。
公開 1 個公共 endpoint:edit_video。
依 second 計量,無需訂閱。
audio_setting暫無描述。 (auto, original)
source_video_url暫無描述。
output_resolution暫無描述。 (720p, 1080p)
reference_image_urls暫無描述。
根據文字簡報生成產品上市短片與短影音廣告,將製作時間從數週縮短到數小時。
無需攝影機或團隊,即可大規模將課程腳本轉為動畫解說影片。
直接從 prompt 產生適合社群平台的爆紅短影音內容。
傳入 quickstart 顯示的 model ID。
每個金鑰的速率限制會依使用方案而調整。請查看定價頁面以了解目前限制。
可以——variant 只是旗標。只要變更 model 參數即可切換。
只要支援串流,RunAPI 就會端到端串流。
請在公開 GitHub repo 提交 issue,或寄信給支援。