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

CogVideoX-5B · Image to Video

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

मॉडल id cogvideox-5b/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/cogvideox-5b/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.46 इसे इस पेज पर चलाएँ

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

CogVideoX-5B का वैरिएंट, जो टेक्स्ट प्रॉम्प्ट से शुरुआती इमेज को एनिमेट करता है

Zhipu AI · वीडियो

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

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

अनुरोध बनाएँ

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

•आवश्यक

वीडियो निर्माण के आधार के रूप में उपयोग किया गया प्रॉम्प्ट।

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

वीडियो निर्माण के लिए source इमेज URL।

उन्नत negative_prompt · video_size · num_inference_steps · guidance_scale · export_fps · seed · use_rife · enable_safety_checker · loras
डिफ़ॉल्ट

वीडियो निर्माण के लिए negative प्रॉम्प्ट।

video_size डिफ़ॉल्ट {"height":480,"width"...

निर्मित वीडियो के आयाम।

डिफ़ॉल्ट 50

चलाए जाने वाले inference चरणों की संख्या।

डिफ़ॉल्ट 7

जब मॉडल प्रदर्शित करने के लिए संबंधित वीडियो खोजता है, तब प्रॉम्प्ट का पालन; इसे CFG scale (Classifier Free Guidance) के माध्यम से व्यक्त किया जाता है।

डिफ़ॉल्ट 16

वीडियो के लिए लक्षित फ़्रेम rate, FPS में।

दोहराए जा सकने वाले वीडियो निर्माण के लिए seed। हर रन में सटीक पुनरुत्पादन के लिए मॉडल संस्करण, प्रॉम्प्ट और seed अपरिवर्तित रहने चाहिए।

डिफ़ॉल्ट []

इमेज निर्माण के लिए एकल LoRA दें; एकाधिक LoRAs का वर्तमान में समर्थन नहीं है।

POST /run/cogvideox-5b/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/cogvideox-5b/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 कुंजी प्राप्त करें

CogVideoX-5B · Image to Video के बारे में

`image_url` से स्थिर चित्र को आवश्यक `prompt` के निर्देश पर वीडियो में बदलता है। इसमें परिवार के समान नियंत्रण हैं: प्रीसेट `video_size`, `negative_prompt`, 1 से 50 इन्फ़रेंस चरण, 20 तक `guidance_scale`, एक LoRA और वैकल्पिक RIFE इंटरपोलेशन के साथ 4 से 32 तक `export_fps`।

पैरामीटर

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

नामप्रकार डिफ़ॉल्टअनुमत विवरण
promptआवश्यक
प्रकारstring
वीडियो निर्माण के आधार के रूप में उपयोग किया गया प्रॉम्प्ट।
video_sizeवैकल्पिक
प्रकारobject
डिफ़ॉल्ट{"height":480,"width":720}
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
निर्मित वीडियो के आयाम।
negative_promptवैकल्पिक
प्रकारstring
डिफ़ॉल्ट
वीडियो निर्माण के लिए negative प्रॉम्प्ट।
lorasवैकल्पिक
प्रकारobject[]
डिफ़ॉल्ट[]
इमेज निर्माण के लिए एकल LoRA दें; एकाधिक LoRAs का वर्तमान में समर्थन नहीं है।
loras[].pathआवश्यक
प्रकारstring
LoRA weights का स्थान, URL या path के रूप में निर्दिष्ट।
loras[].scaleवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट1
0 – 4
LoRA weight को base मॉडल में मर्ज करने से पहले उस पर लागू किया गया multiplier।
num_inference_stepsवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट50
1 – 50
चलाए जाने वाले inference चरणों की संख्या।
seedवैकल्पिक
प्रकारinteger | null
दोहराए जा सकने वाले वीडियो निर्माण के लिए seed। हर रन में सटीक पुनरुत्पादन के लिए मॉडल संस्करण, प्रॉम्प्ट और seed अपरिवर्तित रहने चाहिए।
guidance_scaleवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट7
0 – 20
जब मॉडल प्रदर्शित करने के लिए संबंधित वीडियो खोजता है, तब प्रॉम्प्ट का पालन; इसे CFG scale (Classifier Free Guidance) के माध्यम से व्यक्त किया जाता है।
use_rifeवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
RIFE के साथ वीडियो interpolation सक्षम करता है।
export_fpsवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट16
4 – 32
वीडियो के लिए लक्षित फ़्रेम rate, FPS में।
enable_safety_checkerवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
यदि कॉलर अधिकृत है, तो false सेट करके स्क्रीनिंग में ढील दी जा सकती है।
image_urlआवश्यक image
प्रकारurl · image
वीडियो निर्माण के लिए source इमेज URL।
आवश्यक कैनोनिकल नाम, यह भी स्वीकार्य है

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

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "cogvideox-5b/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
    },
    "timings": {},
    "seed": 42,
    "prompt": "string"
  },
  "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}निर्मित वीडियो की ओर संकेत करने वाला URL।
timings
object
seed
integerवीडियो निर्माण में वास्तव में उपयोग किया गया seed, जिसमें इनपुट में seed न देने पर चुना गया यादृच्छिक मान भी शामिल है। अन्यथा, यह इनपुट seed से मेल खाता है।
prompt
stringवीडियो बनाने के लिए उपयोग किया गया प्रॉम्प्ट।

और मॉडल: इमेज से वीडियो

AI एजेंट के लिए: इस पेज का Markdown यहाँ है https://doitong.com/hi/developers/models/cogvideox-5b/image-to-video.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt