কনটেন্টে যান

Cosmos Predict 2.5 2B · Text to Video

ইন্টিগ্রেট করুন

মডেল id cosmos-predict-2.5/text-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/cosmos-predict-2.5/text-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"
  }'

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

এই অনুরোধ: ০.২০$ ২০০ API ক্রেডিট · ≈ ২১.৫২₽ এই পেজে চালান

API কী পান
NVIDIA · ভিডিও

আপনার প্রথম ফলাফল এখানে আসবে

নিচে একটি রিকোয়েস্ট তৈরি করে আপনার API কী দিয়ে চালান। আউটপুট আমাদের স্টোরেজে কপি করা হয়, চিরকাল বা বিনামূল্যে ৭ দিন পর্যন্ত রাখা হয়।

একটি অনুরোধ তৈরি করুন

মডেল স্কিমা থেকে কন্ট্রোল তৈরি করা হয়। এগুলো পরিবর্তন করলে কোড ও মূল্য আপডেট হয়।

•আবশ্যক

পছন্দসই ভিডিওর টেক্সট বিবরণ।

অ্যাডভান্সড negative_prompt · video_output_type · video_quality · num_frames · num_inference_steps · guidance_scale · seed · enable_safety_checker
ডিফল্ট The video captures a ...

জেনারেশনকে এড়িয়ে চলার জন্য অনাকাঙ্ক্ষিত কনটেন্ট নির্দিষ্ট করা নেগেটিভ প্রম্পট।

video_output_type ডিফল্ট X264 (.mp4)

ফলস্বরূপ ভিডিওর ফরম্যাট।

video_quality ডিফল্ট high

ফলস্বরূপ ভিডিওর গুণমানের সেটিং।

ডিফল্ট 93

জেনারেশনের ফ্রেম সংখ্যা, 9 থেকে 93 পর্যন্ত।

ডিফল্ট 35

ডিনয়েজিং ধাপের সংখ্যা; সংখ্যা বাড়লে প্রসেসিং সময় বাড়ে, তবে গুণমান উন্নত হয়।

ডিফল্ট 7

classifier-free guidance-এর স্কেল; এটি বাড়ালে জেনারেশন প্রম্পট আরও ঘনিষ্ঠভাবে অনুসরণ করে।

জেনারেশন পুনরুৎপাদনযোগ্য করে এমন এলোমেলো সিড।

POST /run/cosmos-predict-2.5/text-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.ru/v1/run/cosmos-predict-2.5/text-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"
  }'

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

এই অনুরোধ চালান

আপনার key এই ব্রাউজারেই থাকে: এটি শুধু Doitong API-তে পাঠানো হয় এবং Remember টিক দিলে কেবল localStorage-এ সংরক্ষিত হয়। একটি API কী পান

Cosmos Predict 2.5 2B · Text to Video সম্পর্কে

শুধু একটি টেক্সট `prompt` থেকে ভিডিও তৈরি করে। `num_frames` 9 থেকে 93, `num_inference_steps` সর্বোচ্চ 50 (ডিফল্ট 35) এবং `guidance_scale` 1 থেকে 20-এর মধ্যে নির্ধারণ করুন। `negative_prompt` ব্যবহার করা যায়, এবং আউটপুট mp4, webm, mov অথবা GIF হতে পারে, low থেকে maximum গুণমান পর্যন্ত।

প্যারামিটার

নামধরন ডিফল্টঅনুমোদিত বিবরণ
promptআবশ্যক
ধরনstring
পছন্দসই ভিডিওর টেক্সট বিবরণ।
negative_promptঐচ্ছিক
ধরনstring
ডিফল্টThe video captures a series of frames showing ugly scenes, static with no motion, motion blur, over-saturation, shaky footage, low resolution, grainy texture, pixelated images, poorly lit areas, underexposed and overexposed scenes, poor color balance, washed out colors, choppy sequences, jerky movements, low frame rate, artifacting, color banding, unnatural transitions, outdated special effects, fake elements, unconvincing visuals, poorly edited content, jump cuts, visual noise, and flickering. Overall, the video is of poor quality.
জেনারেশনকে এড়িয়ে চলার জন্য অনাকাঙ্ক্ষিত কনটেন্ট নির্দিষ্ট করা নেগেটিভ প্রম্পট।
num_framesঐচ্ছিক
ধরনinteger
ডিফল্ট93
৯ – ৯৩
জেনারেশনের ফ্রেম সংখ্যা, 9 থেকে 93 পর্যন্ত।
num_inference_stepsঐচ্ছিক
ধরনinteger
ডিফল্ট35
১ – ৫০
ডিনয়েজিং ধাপের সংখ্যা; সংখ্যা বাড়লে প্রসেসিং সময় বাড়ে, তবে গুণমান উন্নত হয়।
guidance_scaleঐচ্ছিক
ধরনnumber
ডিফল্ট7
১ – ২০
classifier-free guidance-এর স্কেল; এটি বাড়ালে জেনারেশন প্রম্পট আরও ঘনিষ্ঠভাবে অনুসরণ করে।
seedঐচ্ছিক
ধরনinteger | null
জেনারেশন পুনরুৎপাদনযোগ্য করে এমন এলোমেলো সিড।
video_output_typeঐচ্ছিক
ধরনenum
ডিফল্টX264 (.mp4)
X264 (.mp4)VP9 (.webm)PRORES4444 (.mov)GIF (.gif)
ফলস্বরূপ ভিডিওর ফরম্যাট।
video_qualityঐচ্ছিক
ধরনenum
ডিফল্টhigh
lowmediumhighmaximum
ফলস্বরূপ ভিডিওর গুণমানের সেটিং।
enable_safety_checkerঐচ্ছিক
ধরনboolean
ডিফল্টtrue
কলকারী অনুমোদিত হলে false সেট করে স্ক্রিনিং শিথিল করা যায়।
আবশ্যক

আউটপুট

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "cosmos-predict-2.5/text-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": 200,
    "usd": "0.20",
    "charged": 200,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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জেনারেশনের সময় এলোমেলোতা নিয়ন্ত্রণ করা সিড।

আরও মডেল: টেক্সট থেকে ভিডিও

AI এজেন্টদের জন্য: এই পৃষ্ঠাটি Markdown হিসেবে এখানে আছে https://doitong.com/bn/developers/models/cosmos-predict-2.5/text-to-video.md. সব মডেল ও গাইড: https://doitong.com/developers/llms.txt