Saltar al cuntegna

T2V Turbo - Video Crafter

Integrar

ID dal model t2v-turbo
# 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/t2v-turbo?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,024 24 credits API Lantschar sin questa pagina

Obtegna ina clav API
Open model Text a video Svelt #turbo

Text-to-video svelt a partir d’in prompt, da 16 fin a 32 frame cun fps d’export configurabel

Open model · 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

Prompt utilisà sco basa per la generaziun dal maletg.

standard 16

Dumber total da frames da generar.

Avanzà num_inference_steps · guidance_scale · export_fps · seed · enable_safety_checker
standard 4

Dumber da pass da sampling.

standard 7.5

Valur da la scala da guidance.

standard 8

Frequenza da frames (FPS) per il video exportà.

Valur dal sem per la generaziun da nums casuals.

POST /run/t2v-turbo?wait=20 calculaziun → $0,024
# 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/t2v-turbo?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 T2V Turbo - Video Crafter

Generes in curt clip dad in `prompt` cun in sampler da paucs pass; `num_inference_steps` è 4 per standard (max 30). `num_frames` tanscha da 16 fin 32 e `export_fps` da 1 fin 24. `guidance_scale` tanscha da 0.1 fin 30 e `seed` da 0 fin 203279.

Parameters

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
Prompt utilisà sco basa per la generaziun dal maletg.
seedopziunal
Tipinteger | null
0 – 203 279
Valur dal sem per la generaziun da nums casuals.
num_inference_stepsopziunal
Tipinteger
Standard4
1 – 30
Dumber da pass da sampling.
guidance_scaleopziunal
Tipnumber
Standard7.5
0,1 – 30
Valur da la scala da guidance.
num_framesopziunal
Tipinteger
Standard16
16 – 32
Dumber total da frames da generar.
export_fpsopziunal
Tipinteger
Standard8
1 – 24
Frequenza da frames (FPS) per il video exportà.
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": "t2v-turbo",
  "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": 24,
    "usd": "0.024",
    "charged": 24,
    "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
    }
  },
  "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}URL che mussa al video generà.

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