Мазмұнға өту

Cosmos Predict 2.5 2B · Video to Video

Интеграциялау

Модель идентификаторы cosmos-predict-2.5/video-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/video-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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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 кілтін алу
NVIDIA · Бейне

Алғашқы нәтижеңіз осында пайда болады

Төменде сұрау құрып, оны API кілтіңізбен іске қосыңыз. Шығыстар сақтау орнымызға көшіріліп, мәңгі немесе 7 күн тегін сақталады.

Сұрау жасау

Басқару элементтері модель схемасынан жасалады. Оларды өзгерткен сайын код пен баға жаңартылады.

•міндетті

Қажетті бейненің мәтіндік сипаттамасы.

•міндетті video_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

Classifier-free guidance масштабы; оны арттыру генерацияның нұсқауды дәлірек орындауына әкеледі.

Генерацияны қайталауға мүмкіндік беретін кездейсоқ seed.

POST /run/cosmos-predict-2.5/video-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/video-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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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"

Осы сұрауды іске қосу

Кілтіңіз осы браузерде қалады: ол тек Doitong API-ге жіберіледі және Remember параметрін белгілеcеңіз ғана localStorage ішінде сақталады. API кілтін алу

Cosmos Predict 2.5 2B · Video to Video туралы

Жаңа бейне жасау үшін `video_url` арқылы алынған клипті `prompt` мәтінімен бірге шарт ретінде пайдаланады. Басқару элементтері: `num_frames` (9-дан 93-ке дейін), `num_inference_steps` (50-ге дейін), `guidance_scale` (1-ден 20-ға дейін) және `negative_prompt`. 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
Classifier-free guidance масштабы; оны арттыру генерацияның нұсқауды дәлірек орындауына әкеледі.
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 мәнін орнату арқылы тексеруді жеңілдетуге болады.
video_urlміндетті video
Түріurl · video
Шарттау үшін қолданылатын бастапқы бейнеге сілтейтін URL.
міндетті Канондық атау, бұл да қабылданады

Файл параметрлері жалпыға қолжетімді https:// URL мекенжайын, 10 MB-қа дейінгі data: URI мекенжайын немесе жүктеп салынған файлдың file_url мәнін қабылдайды. Файлдар

Шығыс

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "cosmos-predict-2.5/video-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",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "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= арқылы 7 күн тегін сақталады.
Әр модельдегі пішім бірдей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Генерация кезіндегі кездейсоқтықты басқарған seed.

Қосымша модельдер: Бейнеден бейнеге

AI агенттеріне: бұл беттің Markdown нұсқасы мына жерде: https://doitong.com/kk/developers/models/cosmos-predict-2.5/video-to-video.md. Барлық модельдер мен нұсқаулықтар: https://doitong.com/developers/llms.txt