Skip to content
هذه الصفحة غير متاحة بلغتك بعد، لذا تُعرض باللغة الإنجليزية.
Alibaba · Wan

wan2.5-preview API

Generate videos from text or a reference image with Alibaba’s wan2.5-preview on APISea.

إنشاء الفيديوالفيديومهمة غير متزامنة
معرّف النموذج
wan2.5-preview

تسعير API لنموذج wan2.5-preview

جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.

الخيارAPISeaرسميوفّر
1080P$0.1206$0.1389−13%
480P$0.03696$0.0417−11%
720P$0.07304$0.0833−12%

الأسعار لكل ثانية.

ما هو wan2.5-preview؟

wan2.5-preview is Alibaba’s Wan-family video generation model for turning text descriptions or a single reference image into short videos. It supports 5- or 10-second output at 480p, 720p, or 1080p. Describe the scene, action, and style in a prompt, or supply an image with an optional accompanying prompt. Controls include negative prompts, a random seed, smart prompt rewriting, and an optional “AI Generated” watermark. Text-to-video requests also support selectable aspect ratios; image-to-video uses the input image’s ratio. Automatic audio is supported, along with custom WAV or MP3 audio.

Call the model through APISea’s video generation endpoint using your API key. Billing is pay-as-you-go and applies only to successful requests, with rates determined by resolution: $0.03696 per second for 480P, $0.07304 per second for 720P, and $0.1206 per second for 1080P. The default configuration is about 13% below the provider list price.

أبرز مزايا wan2.5-preview

Text and image inputs

Generate video from a text prompt or one reference image. Image-to-video accepts a publicly accessible image URL or Base64-encoded image.

Resolution and duration controls

Choose 480p, 720p, or 1080p output and a duration of 5 or 10 seconds. Defaults are 720p and 5 seconds.

Automatic or custom audio

Generate matching audio automatically or provide a custom WAV or MP3 audio URL. Custom audio must be 3–30 seconds long and no larger than 15MB.

Prompt refinement controls

Use negative_prompt to describe unwanted content and prompt_extend for smart prompt rewriting. A nonnegative seed can help reproduce similar results.

كيفية استدعاء API الخاص بـ wan2.5-preview في 4 خطوات

  1. 01

    احصل على API key

    سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.

  2. 02

    اضبط عنوان URL الأساسي

    استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.

  3. 03

    أرسل الطلب

    استدعِ POST /v1/videos/generations مع "model": "wan2.5-preview" والمعلمات أدناه.

  4. 04

    تعامل مع الاستجابة

    تتضمن الاستجابة task_id. أرسل طلبات GET /v1/tasks/{task_id} دوريًا حتى تصبح الحالة completed، ثم نزّل روابط النتائج.

curl --request POST \
  --url https://api.apisea.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "wan2.5-preview",
    "prompt": "Sunset coastal highway, cinematic shot",
    "size": "16:9",
    "resolution": "720p",
    "duration": 5
  }'

المعلمات

المعلمةالنوعمطلوبافتراضيالوصف
modelstringمطلوب—Video generation model name, fixed as `wan2.5-preview`
nsfw_checkbooleanاختياريfalseWhether to run content moderation before submitting the video task.
promptstringاختياري—Video content description
image_urlsarray\<string\>اختياري—Reference image URL array (only 1 image supported)
negative_promptstringاختياري—Negative prompt, describes unwanted content
resolutionstringاختياري720pVideo resolution
durationintegerاختياري5Video duration (seconds)
sizestringاختياري16:9Aspect ratio, **only effective for text-to-video** (without `image_urls`)
seedintegerاختياري—Random seed (≥0), specifying the same seed can reproduce similar results
prompt_extendbooleanاختياريtrueWhether to enable smart prompt rewriting
audiobooleanاختياريtrueWhether to automatically add audio
audio_urlstringاختياري—Custom audio URL (wav/mp3, 3-30 seconds, ≤ 15MB)
watermarkbooleanاختياريfalseWhether to add an "AI Generated" watermark (bottom right)

ما الذي يمكنك إنشاؤه باستخدام wan2.5-preview

Short video concept tools

Build a workflow that turns written scene descriptions into 5- or 10-second clips for reviewing creative concepts.

Reference-image animation

Let users upload a single reference image and describe the action they want in an image-to-video request.

Social video creation

Generate portrait, landscape, or square text-to-video clips for different publishing layouts using supported aspect ratios.

Audio-led video workflows

Create clips with a supplied WAV or MP3 track, with audio automatically trimmed when it exceeds the selected video duration.

نصائح للحصول على نتائج أفضل

  • 01

    Select the input mode

    Omit image_urls for text-to-video and include a prompt. For image-to-video, provide exactly one image and omit size; the input image determines the aspect ratio.

  • 02

    Start with lower-cost output

    Use 480p at $0.03696 per second for initial iterations. At that resolution, choose only 16:9, 9:16, or 1:1 to avoid an unsupported-ratio error.

  • 03

    Describe scene and action

    Specify scenes, actions, and styles in your prompt. prompt_extend defaults to true and can improve shorter prompts, but increases processing time.

  • 04

    Configure moderation explicitly

    Set nsfw_check to true to review prompts and input images with omni-moderation-latest before submission. It defaults to false, which adds no moderation request cost or latency.

القيود ومعلومات مهمة

  • Only one reference image and durations of 5 or 10 seconds are supported.

  • Silent video generation with audio=false is not supported.

  • The preview designation indicates that the model may change.

الأسئلة الشائعة حول API الخاص بـ wan2.5-preview

How much does wan2.5-preview cost on APISea?

APISea charges $0.03696 per second for 480P, $0.07304 per second for 720P, and $0.1206 per second for 1080P. Billing is pay-as-you-go for successful requests only; the default configuration is about 13% below the provider list price.

How do I call wan2.5-preview through the API?

Send a POST request to https://api.apisea.ai/v1/videos/generations with Bearer Token authentication using your APISea API key. Set model to wan2.5-preview and provide a prompt for text-to-video or image_urls for image-to-video.

What resolutions, durations, and aspect ratios are supported?

The model supports 480p, 720p, and 1080p, with durations of 5 or 10 seconds. Text-to-video supports 16:9, 9:16, and 1:1 at all three resolutions, plus 4:3 and 3:4 at 720p and 1080p; image-to-video takes its ratio from the input image.

Can I use a reference image to generate video?

Yes. Pass one publicly accessible image URL or Base64-encoded image in image_urls, optionally with a prompt describing the intended scene or action. Do not pass size for image-to-video, as doing so returns an error.

Can wan2.5-preview generate silent video or use custom audio?

Setting audio=false is not supported. You can supply audio_url with a WAV or MP3 file lasting 3–30 seconds and no larger than 15MB; longer audio is trimmed, while shorter audio leaves the remaining video portion silent.

Can I use wan2.5-preview output commercially?

Commercial use is subject to the provider’s terms. Check the applicable terms before using generated videos in commercial products or campaigns.

نماذج ذات صلة

العمق: أكثر من 250 نموذجًا · الحد الأدنى لشحن الرصيد $50

ابدأ التطوير باستخدام wan2.5-preview

مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.