Wan API
Comprehensive video and image suite — text-to-video, image-to-video, video editing, and storyboards.
curl -X POST https://runapi.ai/api/v1/wan/image_to_video \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan-2.7-text-to-video",
"image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
"prompt": "Generate a 5-second video of a cat jumping onto a bookshelf, natural indoor lighting, handheld camera feel."
}'
import { WanClient } from "@runapi.ai/wan";
const client = new WanClient();
const result = await client.imageToVideo.run({
model: "wan-2.7-text-to-video",
image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
prompt: "Generate a 5-second video of a cat jumping onto a bookshelf, natural indoor lighting, handheld camera feel.",
});
<?php
require __DIR__ . "/vendor/autoload.php";
use RunApi\Wan\WanClient;
$client = new WanClient();
$result = $client->imageToVideo->run([
'model' => 'wan-2.7-text-to-video',
'image_url' => 'https://cdn.runapi.ai/public/samples/image.jpg',
'prompt' => 'Generate a 5-second video of a cat jumping onto a bookshelf, natural indoor lighting, handheld camera feel.',
]);
require "runapi/wan"
client = RunApi::Wan::Client.new
result = client.image_to_video.run(
model: "wan-2.7-text-to-video",
image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
prompt: "Generate a 5-second video of a cat jumping onto a bookshelf, natural indoor lighting, handheld camera feel."
)
npx skills add runapi-ai/wan -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
# Codex
codex plugin install runapi-mcp@agents
# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
Wan is Alibaba's comprehensive video and image generation suite covering text-to-video, image-to-video, video editing, speech-to-video, and storyboard generation. It spans multiple model versions optimized for quality, speed, and specialized creative tasks.
- عدة إصدارات لمستويات مختلفة من السرعة / الجودة
- يتضمن model skill التوثيق والـschemas وملاحظات الإعداد
- يعمل مع workflows موجهة لتطوير التطبيقات
- لا يتم احتساب رسوم على عمليات التوليد الفاشلة
قارن جميع إصدارات API
| Variant | Billing | From | |
|---|---|---|---|
| wan-2.2-a14b-image-to-video-turbo | call | $0.400 | عرض → |
| wan-2.2-a14b-speech-to-video-turbo | second | $0.240 | عرض → |
| wan-2.2-a14b-text-to-video-turbo | call | $0.400 | عرض → |
| wan-2.2-animate-move | second | $0.130 | عرض → |
| wan-2.2-animate-replace | second | $0.130 | عرض → |
| wan-2.5-image-to-video | second | $0.120 | عرض → |
| wan-2.5-text-to-video | second | $0.120 | عرض → |
| wan-2.6-edit-video | second | $0.140 | عرض → |
| wan-2.6-flash-edit-video | call | $0.300 | عرض → |
| wan-2.6-flash-image-to-video | call | $0.300 | عرض → |
| wan-2.6-image-to-video | second | $0.140 | عرض → |
| wan-2.6-text-to-video | second | $0.140 | عرض → |
| wan-2.7-edit-video | second | $0.160 | عرض → |
| wan-2.7-image | call | $0.050 | عرض → |
| wan-2.7-image-pro | call | $0.120 | عرض → |
| wan-2.7-image-to-video | second | $0.160 | عرض → |
| wan-2.7-r2v | second | $0.160 | عرض → |
| wan-2.7-text-to-video | second | $0.160 | عرض → |
ثبّت skill Wan لتطوير التطبيقات
حمّل توثيق النموذج والـschemas وملاحظات الأسعار وخطوات الإعداد إلى مساحة عمل الكود.
# Install the model skill for app development workflows
npx skills add runapi-ai/wan -g
Install the Wan skill for this app: 1. Add runapi-ai/wan with the skills installer. 2. Load SKILL.md in this workspace. 3. Use its docs, schemas, pricing notes, and setup steps when adding model features. 4. Confirm the install path when done.
من model skill إلى أول نتيجة في أربع خطوات
اختر النموذج
اختر النموذج والإصدار المناسبين لنوع المخرجات ومستوى الجودة وزمن الاستجابة المستهدف.
الإعداد
اضبط مفتاح RunAPI وثبّت model skill في مساحة عمل الكود.
التنفيذ
استخدم تعليمات المهارة لإضافة ميزة النموذج داخل تطبيقك.
الاستلام
استعلم عبر task ID أو استخدم البث عند دعمه أو عالج webhook callback.
ما هي Wan API؟
Wan is Alibaba's full-spectrum video and image model suite, one of the most complete open-weight video families available. Through RunAPI, all Wan versions share a single key and unified billing.
لماذا تستخدم Wan API عبر RunAPI
مصادقة واحدة لكل مزود
مفتاح RunAPI واحد يفتح الوصول إلى الكتالوج بالكامل. لا حسابات منفصلة، ولا تدوير مفاتيح لكل تكامل.
تسعير وفوترة موحّدان
تسعير لكل استدعاء بالدولار الأمريكي، ويُفوتر شهريًا. لا تُحتسب التوليدات الفاشلة.
Skill مع schemas
تأتي الـschemas المعرّفة وملاحظات الإعداد داخل model skill حتى يبدأ التنفيذ من العقد الصحيح.
أسئلة شائعة
How many Wan versions are available?
Versions 2.2, 2.5, 2.6, and 2.7, each adding new capabilities. 2.7 is the latest with first-and-last-frame control and multi-reference video generation.
What is speech-to-video?
The speech-to-video endpoint on Wan 2.2 takes audio input and generates video with lip-synced motion driven by the speech content.
Does Wan support video editing?
Yes — Wan 2.6+ includes video editing and Wan 2.7 adds a dedicated video editing endpoint with subject and camera control.
Is Wan open source?
Partly — Wan 2.1 and 2.2 are released as open weights under the Apache 2.0 license. The later versions (2.5, 2.6, and 2.7) are closed, API-only models.
What is the R2V endpoint?
Wan 2.7 R2V uses the text-to-video endpoint with reference image, video, and audio inputs to anchor a character's appearance and voice across clips.
أي نسخة ينبغي أن أبدأ بها؟
اختر أرخص نسخة تفي بمعيار الجودة لديك. يبدأ معظم الفرق بالنسخة السريعة ثم ينتقلون إلى pro للإنتاج.
هل توجد خطة مجانية؟
تحصل الحسابات الجديدة على أول طلبات مجانية على كل نموذج. بعد ذلك، الدفع حسب كل طلب.
هل تدعمون البث المباشر للنتائج؟
حيث يتوفر البث المباشر، يوفّر RunAPI البث من البداية إلى النهاية.
كيف يتم احتساب الرسوم عند الفشل؟
لا يتم تحصيل رسوم على عمليات التوليد الفاشلة.
هل يتم تخزين المخرجات مؤقتًا؟
يتم حفظ المخرجات المولدة ويمكن استرجاعها بواسطة task ID. لا يتم تخزين المدخلات مؤقتًا.
هل يمكنني الاستخدام تجاريًا؟
نعم — يشمل كل إصدار الاستخدام التجاري ما لم يقيّده ترخيص النموذج صراحةً، ويُشار إلى ذلك في صفحة الإصدار.
ماذا عن حدود المعدل؟
تتدرج حدود المعدل لكل مفتاح وفق فئة الاستخدام. راجع صفحة الأسعار للاطلاع على الحدود الحالية.
أين يمكنني الإبلاغ عن المشاكل؟
افتح issue في مستودع GitHub العام أو راسل الدعم عبر البريد الإلكتروني.
إذا أعجبتك Wan API، فجرّب هذه الخيارات
ابدأ البناء باستخدام Wan API.
- Wan wan-2.2-a14b-image-to-video-turbo
- Wan wan-2.2-a14b-speech-to-video-turbo
- Wan wan-2.2-a14b-text-to-video-turbo
- Wan wan-2.2-animate-move
- Wan wan-2.2-animate-replace
- Wan wan-2.5-image-to-video
- Wan wan-2.5-text-to-video
- Wan wan-2.6-edit-video
- Wan wan-2.6-flash-edit-video
- Wan wan-2.6-flash-image-to-video
- Wan wan-2.6-image-to-video
- Wan wan-2.6-text-to-video
- Wan wan-2.7-edit-video
- Wan wan-2.7-image
- Wan wan-2.7-image-pro
- Wan wan-2.7-image-to-video
- Wan wan-2.7-r2v
- Wan wan-2.7-text-to-video