सामग्री पर जाएँ

Cosmos Predict 2.5 2B · Image to Video

इंटीग्रेट करें

मॉडल id cosmos-predict-2.5/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.ru/v1/run/cosmos-predict-2.5/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

यह अनुरोध: $0.20 200 API क्रेडिट · ≈ ₽21.52 इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें

इनपुट इमेज को पहले फ़्रेम के रूप में उपयोग करके Cosmos Predict 2.5 2B क्लिप जनरेशन

NVIDIA · वीडियो

आपका पहला परिणाम यहाँ आएगा

नीचे एक अनुरोध बनाएँ और उसे अपनी API कुंजी से चलाएँ। आउटपुट हमारे स्टोरेज में कॉपी किए जाते हैं और हमेशा के लिए या 7 दिन तक मुफ़्त में रखे जाते हैं।

अनुरोध बनाएँ

कंट्रोल मॉडल स्कीमा से जनरेट होते हैं। इन्हें बदलने पर कोड और कीमत अपडेट होती है।

•आवश्यक

वांछित वीडियो का टेक्स्ट विवरण।

•आवश्यक image_url
फ़ाइल ड्रॉप करें, या

आरंभिक फ़्रेम के रूप में उपयोग की जाने वाली इमेज की ओर संकेत करने वाला URL।

उन्नत 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

क्लासिफ़ायर-फ़्री गाइडेंस का स्केल; इसे बढ़ाने पर निर्माण प्रॉम्प्ट का अधिक निकटता से पालन करता है।

निर्माण को पुनरुत्पादित करने योग्य बनाने वाला रैंडम seed।

POST /run/cosmos-predict-2.5/image-to-video?wait=20 कोटेशन → $0.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/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

यह अनुरोध चलाएँ

आपकी key इसी ब्राउज़र में रहती है: इसे केवल Doitong API को भेजा जाता है और केवल तभी (localStorage) में सेव किया जाता है जब आप Remember चुनते हैं। API कुंजी प्राप्त करें

Cosmos Predict 2.5 2B · Image to Video के बारे में

पहले फ़्रेम के रूप में उपयोग की गई `image_url` को टेक्स्ट `prompt` के अनुसार एनिमेट करता है। `num_frames` 9 से 93, `num_inference_steps` अधिकतम 50 (डिफ़ॉल्ट 35) और `guidance_scale` 1 से 20 तक होता है। आउटपुट फ़ॉर्मैट mp4, webm, mov या GIF हैं, जिनमें चार गुणवत्ता स्तर होते हैं।

पैरामीटर

कैनोनिकल नाम या नेटिव नाम में से कोई एक भेजें, दोनों नहीं। कैनोनिकल नाम

नामप्रकार डिफ़ॉल्टअनुमत विवरण
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
निर्माण के लिए फ़्रेम की संख्या, 9 से 93 तक।
num_inference_stepsवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट35
1 – 50
डीनॉइज़िंग चरणों की संख्या; संख्या बढ़ने पर प्रोसेसिंग अधिक समय लेती है, लेकिन गुणवत्ता बेहतर होती है।
guidance_scaleवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट7
1 – 20
क्लासिफ़ायर-फ़्री गाइडेंस का स्केल; इसे बढ़ाने पर निर्माण प्रॉम्प्ट का अधिक निकटता से पालन करता है।
seedवैकल्पिक
प्रकारinteger | null
निर्माण को पुनरुत्पादित करने योग्य बनाने वाला रैंडम seed।
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 सेट करके स्क्रीनिंग में ढील दी जा सकती है।
image_urlआवश्यक image
प्रकारurl · image
आरंभिक फ़्रेम के रूप में उपयोग की जाने वाली इमेज की ओर संकेत करने वाला URL।
आवश्यक कैनोनिकल नाम, यह भी स्वीकार्य है

फ़ाइल पैरामीटर में सार्वजनिक https:// URL, 10 MB तक का data: URI, या अपलोड का file_url लिया जाता है। फ़ाइलें

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "cosmos-predict-2.5/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": 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",
    "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
  },
  "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-माह भुगतान) या 7 दिन तक मुफ़्त में, आपके अकाउंट की सेटिंग या ?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/hi/developers/models/cosmos-predict-2.5/image-to-video.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt