Saltar al cuntegna

Hunyuan Video V1.5 · Text to Video

Integrar

ID dal model hunyuan-video-v1.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/hunyuan-video-v1.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"

Questa dumonda: ≈$0,075 75 credits API · ≈ ₽8,06 Lantschar sin questa pagina

Obtegna ina clav API
Tencent Text a video #hunyuan-video#text-to-video

Conversió de text a vídeo de la versió 1.5 amb prompt negatiu, ampliació del prompt i fins a 121 fotogrames

Tencent · 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à per la generaziun da video.

aspect_ratio standard 16:9

Proporziun d'aspect dal video.

standard 480p

Resoluziun dal video.

Avanzà negative_prompt · num_inference_steps · num_frames · seed · enable_prompt_expansion · enable_safety_checker
standard

Prompt negativ che definescha il cuntegn da bandunar da la generaziun.

standard 28

Dumber da pass utilisads per l'inferenza.

standard 121

Dumber da frames per l'output generà.

Seed che controlla la casualitad per resultats reproducibels.

POST /run/hunyuan-video-v1.5/text-to-video?wait=20 calculaziun → $0,075
# 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/hunyuan-video-v1.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"

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 Hunyuan Video V1.5 · Text to Video

Genera un vídeo a partir d'un `prompt` i un `negative_prompt` opcional. La relació d'aspecte és 16:9 o 9:16, la resolució és 480p per defecte i `num_frames` arriba fins a 121. Els passos van d'1 a 50, amb 28 per defecte. `enable_prompt_expansion` està activat per defecte.

Parameters

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
Prompt utilisà per la generaziun da video.
negative_promptopziunal
Tipstring
Standard
Prompt negativ che definescha il cuntegn da bandunar da la generaziun.
num_inference_stepsopziunal
Tipinteger
Standard28
1 – 50
Dumber da pass utilisads per l'inferenza.
seedopziunal
Tipinteger | null
Seed che controlla la casualitad per resultats reproducibels.
aspect_ratioopziunal
Tipenum
Standard16:9
16:99:16
Proporziun d'aspect dal video.
resolutionopziunal
Tipstring
Standard480p
Resoluziun dal video.
num_framesopziunal
Tipinteger
Standard121
1 – 121
Dumber da frames per l'output generà.
enable_prompt_expansionopziunal
Tipboolean
Standardtrue
Expansiun dal prompt che megliera il prompt furnì sch'activada.
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": "hunyuan-video-v1.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": 75,
    "usd": "0.075",
    "charged": 75,
    "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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}Datoteca 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/hunyuan-video-v1.5/text-to-video.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt