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

Wan 2.2 A14B Turbo API ইন্টিগ্রেশন

Rivya Public API v1 দিয়ে Wan 2.2 A14B Turbo ব্যবহার করুন: model id wan-2-2-a14b-turbo, সমর্থিত ইনপুট, প্যারামিটার, Files API নিয়ম, ক্রেডিট এবং response উদাহরণসহ।

API দিয়ে উপলভ্যটেক্সট বা URL প্রস্তুত; reference modes Files API ব্যবহার করেভিডিও
API model id

wan-2-2-a14b-turbo

ইনপুট

text, file

Files API

reference mode-এর জন্য প্রয়োজন

বেস ক্রেডিট

12

ক্ষমতা

ভিডিও

বিলিং

FIXED

প্রম্পট সীমা

5000 অক্ষর

রিকোয়েস্ট contract

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

Keyধরনপ্রয়োজনীয়ডিফল্টবিবরণ
modelstringহ্যাঁwan-2-2-a14b-turbowan-2-2-a14b-turbo API model id ব্যবহার করুন।
promptstringহ্যাঁ-এই model-এর জন্য সর্বোচ্চ 5000 অক্ষর।
paramsobjectনা-মডেল-নির্দিষ্ট প্যারামিটার object। অনুমোদিত key-এর জন্য নিচের row ব্যবহার করুন।
client_request_idstringনা-আপনার সিস্টেমে request trace করার ঐচ্ছিক client-side id।

মডেল প্যারামিটার

Keyধরনপ্রয়োজনীয়ডিফল্টপরিসরবিকল্পবিবরণ
resolutionselectনা720p-480p, 580p, 720pText এবং image run বর্তমানে `480p / 720p`-এ থাকে, আর image-plus-audio-driven path অতিরিক্ত `580p` expose করে। Rivya current mode অনুযায়ী unsupported tier automatically filter করে।
aspect_ratioselectনা16:9-16:9, 9:16এটি শুধু text-to-video-তে available থাকে, কারণ current public image এবং image-plus-audio-driven endpoints stable `aspect_ratio` field expose করে না।
enable_prompt_expansionselectনাfalse-false, trueGeneration-এর আগে upstream service যেন rough text prompt expand করে, সেটি চাইলে এটি on করুন। এটি text এবং image run-এ limited থাকে।
seednumberনা-min 0 / max 2147483647-প্রতিবার নতুন random result চাইলে empty রাখুন। একই integer reuse করলে আগের result reproduce বা fine-tune করা সহজ হয়। Prompt এবং অন্য key setting একই রকম থাকলেই শুধু result কাছাকাছি থাকে, এবং এটি guaranteed 1:1 match নয়।
accelerationselectনাnone-none, regularPublic text এবং image mode-এ limited থাকা একটি lighter acceleration control।
num_framesnumberনা80min 40 / max 120 / step 1-Image-plus-audio-driven only। Valid values 40 থেকে 120, এবং number অবশ্যই 4 দিয়ে divisible হতে হবে। Typical starting point 80।
frames_per_secondnumberনা16min 4 / max 60 / step 1-Image-plus-audio-driven only। Valid values 4 থেকে 60। Higher FPS সাধারণত smoother লাগে, কিন্তু generation pressure-ও বাড়ায়।
negative_prompttextনা---Image-plus-audio-driven only। Motion failure, unwanted artifact বা avoid করতে চান এমন visual element describe করতে এটি ব্যবহার করুন।
num_inference_stepsnumberনা27min 2 / max 40 / step 1-Image-plus-audio-driven only। Valid values 2 থেকে 40। Higher steps quality improve করতে পারে, কিন্তু runtime-ও বাড়ায়।
guidance_scalenumberনা3.5min 1 / max 10 / step 0.1-Image-plus-audio-driven only। Valid values 1 থেকে 10। Higher values prompt বেশি closely follow করে, কিন্তু motion stiff লাগতেও পারে।
shiftnumberনা5min 1 / max 10 / step 0.1-Image-plus-audio-driven only। Valid values 1 থেকে 10। এটি generation-এর temporal offset feel বদলায়, তাই default-এর কাছাকাছি থেকে শুরু করা safest।
enable_safety_checkerselectনাtrue-true, falseImage-plus-audio-driven only। Generation-এর আগে safety checks চালাতে on করুন, অথবা কম filtering দরকার হলে এবং trade-off accept করলে off করুন।

আপলোড নীতি

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

রেফারেন্স নিয়ম

Reference media: সর্বোচ্চ 2টি asset upload করুন। Text mode-এ কিছু লাগে না, image-to-video 1টি image ব্যবহার করে, আর image-plus-audio-driven path 1টি image plus 1টি audio clip ব্যবহার করে।

সর্বোচ্চ ফাইল

2

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

image, audio

Duration token

duration verification প্রয়োজন হলে video এবং audio reference /api/v1/files থেকে durationToken বহন করবে।

kindসর্বোচ্চ আকারMIME types
image10 MBimage/jpeg, image/png, image/webp
audio10 MBaudio/mpeg, audio/mp4, audio/wav, audio/x-wav, audio/aac, audio/ogg, audio/flac, audio/x-ms-wma

ন্যূনতম request

{
  "model": "wan-2-2-a14b-turbo",
  "prompt": "A cinematic product reveal with smooth camera movement",
  "params": {
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "enable_prompt_expansion": "false",
    "seed": 0,
    "acceleration": "none",
    "num_frames": 80,
    "frames_per_second": 16,
    "negative_prompt": "এড়াতে চান এমন optional exclusion বা failure mode.",
    "num_inference_steps": 27,
    "guidance_scale": 3.5,
    "shift": 5,
    "enable_safety_checker": "true"
  }
}

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

{
  "model": "wan-2-2-a14b-turbo",
  "prompt": "A cinematic product reveal with smooth camera movement",
  "params": {
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "enable_prompt_expansion": "false",
    "seed": 0,
    "acceleration": "none",
    "num_frames": 80,
    "frames_per_second": 16,
    "negative_prompt": "এড়াতে চান এমন optional exclusion বা failure mode.",
    "num_inference_steps": 27,
    "guidance_scale": 3.5,
    "shift": 5,
    "enable_safety_checker": "true",
    "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 ফেরত দেয়। task succeeded বা failed না হওয়া পর্যন্ত status endpoint poll করুন।

{
  "id": "task_wan_2_2_a14b_turbo_example",
  "status": "queued",
  "model": "wan-2-2-a14b-turbo",
  "reserved_credits": 12,
  "final_credits": 0,
  "created_at": "2026-05-11T00:00:00.000Z",
  "updated_at": "2026-05-11T00:00:00.000Z",
  "result": null,
  "error": null
}

সাধারণ ত্রুটি

validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found

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