Rivya AI ডকস
মডেল API পেজ

Wan 2.5 Video API integration

Rivya Public API v1 দিয়ে Wan 2.5 Video ব্যবহার করুন: model id wan-2-5-video, supported inputs, parameters, Files API rules, credits এবং response examples সহ।

Available via APIText বা URL ready; reference modes Files API ব্যবহার করেভিডিও
API model id

wan-2-5-video

Inputs

text, file

Files API

reference modes-এর জন্য required

Base credits

60

Capability

ভিডিও

Billing

FIXED

প্রম্পট সীমা

5000 characters

Request contract

model id top level-এ পাঠান। Model-specific controls params-এ থাকবে।

KeyTypeRequiredDefaultবিবরণ
modelstringYeswan-2-5-videowan-2-5-video API model id ব্যবহার করুন।
promptstringYes-এই model-এর জন্য maximum 5000 characters।
paramsobjectNo-Model-specific parameter object। allowed keys-এর জন্য নিচের rows ব্যবহার করুন।
client_request_idstringNo-আপনার system-এ requests trace করার optional client-side id।

Model parameters

KeyTypeRequiredDefaultRangeOptionsবিবরণ
resolutionselectNo720p-720p, 1080pResolution
durationselectNo5-5, 10Duration
aspect_ratioselectNo16:9-16:9, 9:16, 1:1Aspect ratio
enable_prompt_expansionselectNofalse-false, trueEnabled হলে Rivya upstream model-কে original intent preserve করে extra detail সহ prompt expand করতে দেয়। আপনার prompt already tightly written হলে এটি off করুন।
seednumberNo-min 0 / max 2147483647-প্রতিবার নতুন random result চাইলে empty রাখুন। একই integer reuse করলে আগের result reproduce বা fine-tune করা সহজ হয়। Prompt এবং অন্য key setting একই রকম থাকলেই শুধু result কাছাকাছি থাকে, এবং এটি guaranteed 1:1 match নয়।
negative_prompttextNo---Negative prompt
nsfw_checkerselectNofalse-false, trueNSFW checker

Upload policy

প্রথমে reference files upload করুন, তারপর returned URL এবং duration token params.referenceMediaItems-এর মধ্যে দিন।

Reference rule

Reference image: Image-to-video mode-এর জন্য সর্বোচ্চ 1টি image file upload করুন।

Max files

1

সমর্থিত ফাইল ধরন

image

Duration token

duration verification required হলে video এবং audio references /api/v1/files থেকে durationToken carry করবে।

kindMax sizeMIME types
image10 MBimage/jpeg, image/png, image/webp

Minimal request

{
  "model": "wan-2-5-video",
  "prompt": "A cinematic product reveal with smooth camera movement",
  "params": {
    "resolution": "720p",
    "duration": "5",
    "aspect_ratio": "16:9",
    "enable_prompt_expansion": "false",
    "seed": 0,
    "negative_prompt": "এড়াতে চান এমন optional exclusion বা failure mode.",
    "nsfw_checker": "false"
  }
}

রেফারেন্স ফাইল রিকোয়েস্ট

{
  "model": "wan-2-5-video",
  "prompt": "A cinematic product reveal with smooth camera movement",
  "params": {
    "resolution": "720p",
    "duration": "5",
    "aspect_ratio": "16:9",
    "enable_prompt_expansion": "false",
    "seed": 0,
    "negative_prompt": "এড়াতে চান এমন optional exclusion বা failure mode.",
    "nsfw_checker": "false",
    "referenceMediaItems": [
      {
        "url": "https://cdn.example.com/reference-image.png",
        "kind": "image",
        "name": "reference-image.png",
        "mimeType": "image/png"
      }
    ]
  }
}

Create response

create endpoint public task id return করে। task succeeds বা fails না করা পর্যন্ত status endpoint poll করুন।

{
  "id": "task_wan_2_5_video_example",
  "status": "queued",
  "model": "wan-2-5-video",
  "reserved_credits": 60,
  "final_credits": 0,
  "created_at": "2026-05-11T00:00:00.000Z",
  "updated_at": "2026-05-11T00:00:00.000Z",
  "result": null,
  "error": null
}

Common errors

validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found

কিছু modes-এর জন্য Files API reference uploads দরকার।