Wan 2.7 VideoEdit API
指示ベースのビデオ編集。プロンプトでリスタイル・置換・変換。
Wan 2.7 VideoEdit を1回のAPIコールで統合できます。1つのキー、1つの統一エンドポイント、そしてApiframe上のすべてのモデルで共通の請求。
model: "wan-2.7-videoedit" Wan 2.7 VideoEdit の特長
- 720p / 1080p で出力。
- auto, 16:9, 9:16 を含む 6 種類のアスペクト比に対応。
- 2秒から10秒のクリップを生成。
- 画像からの動画生成と参照画像に対応。
- 高速処理 — 1回の生成あたり平均約180秒。
- Alibaba のアカウント不要の従量課金。成功した生成分だけお支払いいただきます。
- Apiframe のすべてのモデルで、1つのAPIキー・統一請求・冪等性・Webhookに対応。
Wan 2.7 VideoEdit で作成
Apiframeの Wan 2.7 VideoEdit API で生成した出力例です。
概要
- エンドポイント
- POST /v2/videos/edit
- モデルID
- wan-2.7-videoedit
- パラメータキー
- wan27VideoeditParams
- モダリティ
- 動画
- プロバイダー
- Alibaba
- 平均完了時間
- ~180s
機能
クイックスタート
APIキーを添えて POST /v2/videos/edit に1回リクエストを送るだけで Wan 2.7 VideoEdit による生成が始まります。レスポンスには、ポーリングまたはWebhookで受け取れる jobId が返ります。
curl -X POST https://api.apiframe.ai/v2/videos/edit \
-H "X-API-Key: afk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"model": "wan-2.7-videoedit",
"wan27VideoeditParams": {
"video": "https://example.com/input.jpg",
"reference_image": "https://example.com/input.jpg",
"resolution": "720p",
"aspect_ratio": "auto"
}
}'import requests
response = requests.post(
"https://api.apiframe.ai/v2/videos/edit",
headers={
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
json={
"model": "wan-2.7-videoedit",
"wan27VideoeditParams": {
"video": "https://example.com/input.jpg",
"reference_image": "https://example.com/input.jpg",
"resolution": "720p",
"aspect_ratio": "auto"
}
},
)
print(response.json()) # { "jobId": "...", "status": "QUEUED" }const response = await fetch("https://api.apiframe.ai/v2/videos/edit", {
method: "POST",
headers: {
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "wan-2.7-videoedit",
"wan27VideoeditParams": {
"video": "https://example.com/input.jpg",
"reference_image": "https://example.com/input.jpg",
"resolution": "720p",
"aspect_ratio": "auto"
}
}),
});
const { jobId } = await response.json();
console.log(jobId);レスポンスとジョブのライフサイクル
生成は非同期で行われます。送信が成功すると 202 Accepted と jobId が返ります。ステータスが COMPLETED になるまで GET /v2/jobs/{id} をポーリングする(または webhook_url を指定する)と、result フィールドに出力URLが格納されます。
1. 送信レスポンス (202)
{
"jobId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"status": "QUEUED"
}2. 結果をポーリング
curl https://api.apiframe.ai/v2/jobs/JOB_ID \
-H "X-API-Key: afk_your_api_key_here"import requests, time
while True:
job = requests.get(
"https://api.apiframe.ai/v2/jobs/JOB_ID",
headers={"X-API-Key": "afk_your_api_key_here"},
).json()
if job["status"] in ("COMPLETED", "FAILED"):
break
time.sleep(2)
print(job["result"])let job;
do {
await new Promise((r) => setTimeout(r, 2000));
job = await fetch("https://api.apiframe.ai/v2/jobs/JOB_ID", {
headers: { "X-API-Key": "afk_your_api_key_here" },
}).then((r) => r.json());
} while (job.status !== "COMPLETED" && job.status !== "FAILED");
console.log(job.result);入力スキーマ
Wan 2.7 VideoEdit エンドポイントが受け付けるリクエストパラメータです。モデル固有のオプションは、下記のパラメータオブジェクトの中にネストされます。
| パラメータ | 型 | 必須 | デフォルト | 許可値 / 範囲 | 説明 |
|---|---|---|---|---|---|
| model | string | 必須 | "wan-2.7-videoedit" | "wan-2.7-videoedit" | このエンドポイントのモデル識別子。 |
| wan27VideoeditParams.video | string (URL) | 任意 | — | — | Video to edit (mp4 / mov, 2–10s). |
| wan27VideoeditParams.reference_image | string (URL) | 任意 | — | — | Optional style / appearance reference for the edit. |
| wan27VideoeditParams.resolution | string | 任意 | "720p" | "720p", "1080p" | Resolution |
| wan27VideoeditParams.aspect_ratio | string | 任意 | "auto" | "auto", "16:9", "9:16", "1:1", "4:3", "3:4" | Aspect ratio |
| wan27VideoeditParams.audio_setting | string | 任意 | "auto" | "auto", "origin" | Audio |
| wan27VideoeditParams.negative_prompt | string | 任意 | — | — | Negative prompt |
| wan27VideoeditParams.seed | number | 任意 | — | step 1 | Reuse a number to reproduce the same result. |
よくある質問
Wan 2.7 VideoEdit APIに関するよくある質問をまとめました。
Wan 2.7 VideoEdit の API はありますか?
はい。Apiframe は単一の REST エンドポイント(`POST /v2/videos/edit`、`model: "wan-2.7-videoedit"`)で Wan 2.7 VideoEdit を提供します。対応するすべてのモデルで、統一されたAPI・キー・請求をご利用いただけ、Alibaba の個別アカウントは不要です。
Wan 2.7 VideoEdit API の料金はいくらですか?
Wan 2.7 VideoEdit は Apiframe のシンプルな従量課金制で、成功した生成分のみお支払いいただきます。プランと数量割引は料金ページをご覧ください。
Wan 2.7 VideoEdit API はどのように呼び出しますか?
`X-API-Key` と、`model: "wan-2.7-videoedit"` を含む JSON ボディを添えて `/v2/videos/edit` に POST リクエストを送ります。レスポンスで返る `jobId` を `GET /v2/jobs/{id}` でポーリングするか、Webhook で結果を受け取ります。
Wan 2.7 VideoEdit はどんなパラメータに対応していますか?
Wan 2.7 VideoEdit は、共通の `prompt`・`webhook_url` に加えて、`wan27VideoeditParams` の下にネストされた 7 個のモデル固有パラメータを受け付けます。型やデフォルト値を含む一覧は上記の入力スキーマをご覧ください。
解決しませんでしたか?
Wan 2.7 VideoEdit API で開発を始めよう
APIキーを取得すれば数分で Wan 2.7 VideoEdit を統合できます — 従量課金。
ご質問はありますか? Discordに参加 または 営業に問い合わせる。