رفتن به محتوا

Wan 2.5 Image to Video

یکپارچه‌سازی

شناسه مدل wan-25-preview/image-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/wan-25-preview/image-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

این درخواست: ⁨‎$۰٫۷۵⁩ ۷۵۰ اعتبار API اجرای آن در این صفحه

دریافت کلید API
Alibaba تصویر به ویدیو ۵–۱۰ ثانیهحداکثر 1080p

تبدیل تصویر به ویدئوی Wan 2.5 با کیفیت 480p تا 1080p، مدت 5 یا 10 ثانیه و صدای پس‌زمینه اختیاری

ساخته‌شده در Doitong

آثار عمومی ساخته‌شده با Wan 2.5 توسط جامعه Doitong. یک پرامپت را با یک کلیک دوباره استفاده کنید.

آثار عمومی نمایش‌داده‌شده: 2
Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... ویدیو

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scene takes place inside a modern passenger airplane during a daytime flight. Natural smartphone-like cinematography, realistic airplane cabin, authentic passengers, natural lighting, realistic skin...

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кух... ویدیو

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кухне, мужчина — в комнате и прихожей. Атмосфера обычной советской семьи перед приходом гостей. Голоса: все персонажи говорят по-русски с естественным, выразительным одесским говором. Характерная...

ساخت درخواست

کنترل‌ها از شِمای مدل تولید می‌شوند. با تغییر آن‌ها، کد و قیمت به‌روزرسانی می‌شوند.

•الزامی

دستورهای متنی برای تعیین حرکت مطلوب در ویدیو، حداکثر 1500 نویسه.

•الزامی image_url
یک فایل بیندازید، یا

یک URL تصویر قابل‌دسترسی عمومی یا URI داده base64 برای تأمین فریم اول ویدیو ارائه کنید.

duration ۵ s

طول ویدیوی خروجی؛ قابل انتخاب به‌صورت 5 یا 10 ثانیه.

resolution پیش‌فرض 1080p

وضوح ویدیوی خروجی: 480p، 720p یا 1080p را انتخاب کنید.

پیشرفته negative_prompt · audio · seed · enable_prompt_expansion · enable_safety_checker

پرامپت منفی برای مشخص‌کردن محتوای ناخواسته، حداکثر 500 نویسه.

audio_url
یک فایل بیندازید، یا

موسیقی پس‌زمینه از طریق URL صوتی عمومی، در قالب WAV یا MP3، با مدت 3 تا 30 ثانیه و حداکثر اندازه 15 MB. مدت انتخابی 5 یا 10 ثانیه نقطه برش را تعیین می‌کند: صوت اضافی حذف می‌شود و اگر قطعه کوتاه‌تر باشد، ادامه ویدیو بی‌صدا خواهد بود. برای نمونه، صوت 3‌ثانیه‌ای در ویدیوی 5‌ثانیه‌ای، 3 ثانیه نخست پخش و 2 ثانیه پایانی بی‌صداست.

Seed برای تکرارپذیر کردن تولید. تنظیم آن روی None، Seed را به‌صورت تصادفی انتخاب می‌کند.

POST /run/wan-25-preview/image-to-video?wait=20 قیمت → ⁨‎$۰٫۷۵⁩
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/wan-25-preview/image-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

اجرای این درخواست

کلید شما در این مرورگر باقی می‌ماند: فقط به Doitong API ارسال می‌شود و فقط در صورت فعال‌کردن گزینه «یادآوری»، در localStorage ذخیره می‌شود. دریافت کلید API

درباره Wan 2.5 Image to Video

یک تصویر ثابت ارائه‌شده با `image_url` را که به‌عنوان فریم اول استفاده می‌شود، مطابق پرامپت حرکت `prompt` با حداکثر 1500 نویسه متحرک می‌کند. 480p، 720p یا 1080p و `duration` برابر با 5 یا 10 ثانیه را انتخاب کنید. `audio_url` اختیاری موسیقی متن را ارائه می‌کند و اگر طولانی‌تر از کلیپ باشد کوتاه می‌شود. گسترش پرامپت، پرامپت منفی و سید پشتیبانی می‌شوند.

پارامترها

نام استاندارد یا نام بومی را ارسال کنید، نه هر دو. نام‌های استاندارد

نامنوع پیش‌فرضمجاز توضیحات
promptالزامی
نوعstring
دستورهای متنی برای تعیین حرکت مطلوب در ویدیو، حداکثر 1500 نویسه.
image_urlالزامی image
نوعurl · image
یک URL تصویر قابل‌دسترسی عمومی یا URI داده base64 برای تأمین فریم اول ویدیو ارائه کنید.
audio_urlاختیاری audio
نوعurl · audio
موسیقی پس‌زمینه از طریق URL صوتی عمومی، در قالب WAV یا MP3، با مدت 3 تا 30 ثانیه و حداکثر اندازه 15 MB. مدت انتخابی 5 یا 10 ثانیه نقطه برش را تعیین می‌کند: صوت اضافی حذف می‌شود و اگر قطعه کوتاه‌تر باشد، ادامه ویدیو بی‌صدا خواهد بود. برای نمونه، صوت 3‌ثانیه‌ای در ویدیوی 5‌ثانیه‌ای، 3 ثانیه نخست پخش و 2 ثانیه پایانی بی‌صداست.
resolutionاختیاری
نوعenum
پیش‌فرض1080p
480p720p1080p
وضوح ویدیوی خروجی: 480p، 720p یا 1080p را انتخاب کنید.
durationاختیاری
نوعenum
پیش‌فرض5
510
طول ویدیوی خروجی؛ قابل انتخاب به‌صورت 5 یا 10 ثانیه.
negative_promptاختیاری
نوعstring | null
پرامپت منفی برای مشخص‌کردن محتوای ناخواسته، حداکثر 500 نویسه.
enable_prompt_expansionاختیاری
نوعboolean
پیش‌فرضtrue
مشخص می‌کند آیا یک LLM پرامپت را بازنویسی کند یا نه.
seedاختیاری
نوعinteger | null
Seed برای تکرارپذیر کردن تولید. تنظیم آن روی None، Seed را به‌صورت تصادفی انتخاب می‌کند.
enable_safety_checkerاختیاری
نوعboolean
پیش‌فرضtrue
کلید بررسی ایمنی که حالت خاموش آن به مجوز حساب نیاز دارد. بدون این مجوز، هر درخواست صرف‌نظر از تنظیم بررسی می‌شود؛ true بررسی‌کننده را فعال می‌کند.
الزامی نام استاندارد، همچنین پذیرفته می‌شود

پارامترهای فایل یک URL عمومی https://، یک URI از نوع data: تا سقف 10 MB، یا file_url یک فایل بارگذاری‌شده را می‌پذیرند. فایل‌ها

خروجی

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-25-preview/image-to-video",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 750,
    "usd": "0.75",
    "charged": 750,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    },
    "seed": 42,
    "actual_prompt": "The white dragon warrior stands still in a grand cathedral-like structure, its glowing golden eyes fixed forward. The camera slowly moves closer, focusing on the warrior's armored chest and face. It then begins to circle around the warrior, capturing the intricate details of the white scale armor with gold accents. The warrior maintains a strong, determined posture. Ambient sounds and soft choral tones fill the background, enhancing the majestic atmosphere. The camera continues its slow circular motion, emphasizing the warrior's heroic presence before ending with a close-up of the face."
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
فایل‌های شما، انتخاب شماهر outputs[].url کپی‌ای در فضای ذخیره‌سازی ماست: برای همیشه (با هزینه به‌ازای هر GB-ماه) یا به‌مدت ۷ روز رایگان، بر اساس تنظیم حساب شما یا ?storage=.
ساختار یکسان در همه مدل‌هاtype، url، content_type، width، height و duration برای تصاویر، ویدیو و صدا یکسان هستند. output شیء نتیجه اختصاصی مدل است.
فیلدهای خروجی
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}فایل ویدیوی حاصل.
seed
integerمقدار Seed استفاده‌شده هنگام تولید.
actual_prompt
string | nullپرامپتی که هنگام فعال‌بودن بازنویسی واقعاً استفاده می‌شود.

مدل‌های بیشتر: تصویر به ویدیو

برای عامل‌های هوش مصنوعی: این صفحه به‌صورت Markdown در دسترس است https://doitong.com/fa/developers/models/wan-25-preview/image-to-video.md. همه مدل‌ها و راهنماها: https://doitong.com/developers/llms.txt