Saltar al cuntegna

Kandinsky5 Pro · Text to Video

Integrar

ID dal model kandinsky5-pro/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.com/v1/run/kandinsky5-pro/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Questa dumonda: $0,20 200 credits API Lantschar sin questa pagina

Obtegna ina clav API
Sber AI Text a video fin a 1024P

Kandinsky 5 Pro text-to-video a 512P u 1024P cun rapports d’aspect 3:2, 1:1 u 2:3

Sber AI · Video

Tes emprim resultat vegn qua

Construis ina dumonda sutvart e l'exequescha cun tia clav API. Outputs vegnan copiads en nossa memorisaziun, conservads per adina u 7 dis gratuitamain.

Construir ina dumonda

Ils controls vegnan generads dal schema dal model. Il code e ​​il pretsch s'actualiseschan durant che ti als midas.

•obligatori

Instrucziuns textualas che guidan la generaziun video.

resolution standard 512P

Resoluziun dal video: tscherna 512p u 1024p.

aspect_ratio standard 3:2

Proporziun dal video d'output; tscherna 3:2, 1:1 u 2:3.

standard 5s

Durada dal video generà.

Avanzà acceleration · num_inference_steps · seed · enable_safety_checker
acceleration standard regular

Nivel d'acceleraziun da la generaziun utilisà per augmentar la sveltezza.

standard 28

Dumber da pass utilisads per l'inferenza.

Semenza per la generaziun, tschernida casualmain sche ti na furneschas nagina valur.

POST /run/kandinsky5-pro/text-to-video?wait=20 calculaziun → $0,20
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/kandinsky5-pro/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Executar questa dumonda

Tia clav resta en quest browser: ella vegn tramessa mo al Doitong API e memorisada (localStorage) mo sch'ella scheccas Tiar a memoria. Obtegnair ina clav API

Davart Kandinsky5 Pro · Text to Video

Generescha video d’in `prompt` textual cun il model Pro. Tscherna `resolution` 512P u 1024P ed `aspect_ratio` 3:2, 1:1 u 2:3. `duration` ha il default 5s, `num_inference_steps` va fin a 50 (default 28), e `acceleration` è none u regular. Ina `seed` è opziunala.

Parameters

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
Instrucziuns textualas che guidan la generaziun video.
resolutionopziunal
Tipenum
Standard512P
512P1024P
Resoluziun dal video: tscherna 512p u 1024p.
aspect_ratioopziunal
Tipenum
Standard3:2
3:21:12:3
Proporziun dal video d'output; tscherna 3:2, 1:1 u 2:3.
durationopziunal
Tipstring
Standard5s
Durada dal video generà.
num_inference_stepsopziunal
Tipinteger
Standard28
1 – 50
Dumber da pass utilisads per l'inferenza.
accelerationopziunal
Tipenum
Standardregular
noneregular
Nivel d'acceleraziun da la generaziun utilisà per augmentar la sveltezza.
seedopziunal
Tipinteger | null
Semenza per la generaziun, tschernida casualmain sche ti na furneschas nagina valur.
enable_safety_checkeropziunal
Tipboolean
Standardtrue
La controlla po vegnir schluccada cun definir false, premess che l'appelant saja autorisà.
obligatori

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kandinsky5-pro/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
    },
    "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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tias datotecas, tia decisiunMintga outputs[].url è ina copia en nossa memorisaziun: conservada per adina (pajà per GB-mes) u 7 dis gratuitamain, tenor la configuraziun dal conto u ?storage=.
La medema structura per mintga modeltype, url, content_type, width, height e duration, tant per maletgs sco per video e audio. output è l'object da resultat dal model sez.
Champs da l'output
video
object {url, content_type, file_name, file_size} | nullDatoteca video producida da la generaziun.
seed
integerValur da seed applitgada durant la generaziun.

Dapli models: Text a video

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/kandinsky5-pro/text-to-video.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt