Op den Inhalt sprangen

Cosmos Predict 2.5 2B · Image to Video

Integréieren

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

Dës Ufro: 0,20 $ 200 API-Kreditter · ≈ 21,52 ₽ Op dëser Säit ausféieren

API-Schlëssel kréien
NVIDIA · Video

Äin éischt Resultat kënnt hei hin

Baut hei drënner eng Ufro a féiert se mat Ärem API-Schlëssel aus. Output gëtt an eis Späicherung kopéiert, fir ëmmer oder 7 Deeg gratis gespäichert.

Eng Ufro erstellen

D'Kontrolle ginn aus dem Modellschema generéiert. De Code an de Präis aktualiséiere sech, wann s du se ännerst.

•obligatoresch

Textuell Beschreiwung vum gewënschte Video.

•obligatoresch image_url
Fichier erofzéien, oder

URL, déi op d'Bild weist, dat als éischte Frame benotzt gëtt.

Erweidert negative_prompt · video_output_type · video_quality · num_frames · num_inference_steps · guidance_scale · seed · enable_safety_checker
Standard The video captures a ...

Negativen Prompt, deen ongewollten Inhalt ugëtt, vun deem d'Generatioun ewechgefouert soll ginn.

video_output_type Standard X264 (.mp4)

Format vum resultéierende Video.

video_quality Standard high

Qualitéitsastellung fir de resultéierende Video.

Standard 93

Unzuel vu Frames fir d'Generatioun, am Beräich vun 9 bis 93.

Standard 35

Unzuel vun den Entnoise-Schrëtt; méi Schrëtt bedeite méi laang Veraarbechtung, awer besser Qualitéit.

Standard 7

Skala fir classifier-free Guidance; wann Dir se erhéicht, follegt d'Generatioun dem Prompt méi genee.

Zoufällege Seed, deen d'Generatioun reproduzéierbar mécht.

POST /run/cosmos-predict-2.5/image-to-video?wait=20 Präis → 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"

Dës Ufro ausféieren

Äre Schlëssel bleift an dësem Browser: e gëtt nëmmen un d'Doitong API geschéckt an nëmme gespäichert (localStorage), wann s du „Erënneren“ aktivéiers. En API-Schlëssel kréien

Iwwer Cosmos Predict 2.5 2B · Image to Video

Animéiert `image_url`, dat als éischte Frame benotzt gëtt, no engem Text-`prompt`. `num_frames` ass 9 bis 93, `num_inference_steps` bis 50 (Standard 35) an `guidance_scale` 1 bis 20. Ausgabformater si mp4, webm, mov oder GIF, mat véier Qualitéitsstufen.

Parameteren

Schéck entweder den kanoneschen Numm oder den natierlechen Numm, net béid. Kanonesch Nimm

NummTyp StandardErlaabt Beschreiwung
promptobligatoresch
Typstring
Textuell Beschreiwung vum gewënschte Video.
negative_promptoptional
Typstring
StandardThe 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.
Negativen Prompt, deen ongewollten Inhalt ugëtt, vun deem d'Generatioun ewechgefouert soll ginn.
num_framesoptional
Typinteger
Standard93
9 – 93
Unzuel vu Frames fir d'Generatioun, am Beräich vun 9 bis 93.
num_inference_stepsoptional
Typinteger
Standard35
1 – 50
Unzuel vun den Entnoise-Schrëtt; méi Schrëtt bedeite méi laang Veraarbechtung, awer besser Qualitéit.
guidance_scaleoptional
Typnumber
Standard7
1 – 20
Skala fir classifier-free Guidance; wann Dir se erhéicht, follegt d'Generatioun dem Prompt méi genee.
seedoptional
Typinteger | null
Zoufällege Seed, deen d'Generatioun reproduzéierbar mécht.
video_output_typeoptional
Typenum
StandardX264 (.mp4)
X264 (.mp4)VP9 (.webm)PRORES4444 (.mov)GIF (.gif)
Format vum resultéierende Video.
video_qualityoptional
Typenum
Standardhigh
lowmediumhighmaximum
Qualitéitsastellung fir de resultéierende Video.
enable_safety_checkeroptional
Typboolean
Standardtrue
D'Kontroll kann duerch false gelackert ginn, wann den Uruffer autoriséiert ass.
image_urlobligatoresch image
Typurl · image
URL, déi op d'Bild weist, dat als éischte Frame benotzt gëtt.
obligatoresch Kanoneschen Numm, och akzeptéiert

Fichierparameter akzeptéieren eng ëffentlech https:// URL, eng data: URI bis zu 10 MB oder de file_url vun engem Upload. Fichieren

Output

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"
  }
}
Är Fichieren, Är WielAll outputs[].url ass eng Kopie an eiser Späicherung: fir ëmmer gespäichert (bezuelbar pro GB-Mount) oder 7 Deeg gratis, jee no Ärer Kontastellung oder ?storage=.
D'selwecht Struktur bei all Modelltype, url, content_type, width, height an duration, fir Biller, Video an Audio gläichermoossen. output ass dem Modell säin eegent Resultatobjet.
Output-Felder
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}Video-Datei, déi duerch d'Generatioun erstallt gouf.
seed
integerSeed, deen d'Zoufällegkeet während der Generatioun gesteiert huet.

Méi Modeller: Bild zu Video

Fir AI-Agenten: dës Säit als Markdown ass ënner https://doitong.com/lb/developers/models/cosmos-predict-2.5/image-to-video.md. All Modeller a Guiden: https://doitong.com/developers/llms.txt