שפּרינגען צו אינהאַלט

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"

דער דאָזיקער ריקוועסט: ⁨$ 0.20⁩ 200 API־קרעדיטן · ≈ ⁨₽ 21.52⁩ לויפֿן עס אויף דער דאָזיקער בלאַט

באַקומען אַן API שליסל
NVIDIA · ווידעא

דאָ קומט אײַער ערשטער רעזולטאַט

בויט אונטן אַ בקשה און לויפט זי מיט אײַער API שליסל. רעזולטאַטן ווערן קאַפּירט צו אונדזער סטאָרידזש, געהאַלטן אויף אייביק אָדער 7 טעג אומזיסט.

בויען אַ בעטן

קאָנטראָלן ווערן דזשענערירט פֿון דעם מאָדעל־סכעמע. דער קאָד און דער פּרײַז דערהײַנטיקן זיך ווען איר ענדערט זיי.

•פארלאנגט

טעקסט־באַשרײַבונג פֿונעם געוווּנטשענעם ווידעא.

פֿאָרגעשריטן 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 פּרײַז → ⁨$ 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/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 און אָפּגעהיט (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
ראַם־צאָל פֿאַר גענערירונג, פֿון 9 ביז 93.
num_inference_stepsאָפּציאָנעל
טיפּinteger
סטאַנדאַרט35
1 – 50
דענאָיזינג־סטעפּ־צאָל, וואָס וועקסלט לענגערע פּראַסעסירונג קעגן בעסערע קוואַליטעט ווען די צאָל וואַקסט.
guidance_scaleאָפּציאָנעל
טיפּnumber
סטאַנדאַרט7
1 – 20
סקאַלע פֿאַר 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־חודש) אָדער 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/yi/developers/models/cosmos-predict-2.5/text-to-video.md. אַלע מאָדעלן און גוידעס: https://doitong.com/developers/llms.txt