Neidio i'r cynnwys

Hunyuan Video

Integreiddio

ID y model hunyuan-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/hunyuan-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"

Y cais hwn: $0.40 400 o gredydau API Ei redeg ar y dudalen hon

Cael allwedd API
Tencent Testun i Fideo hyd at 720p #motion

Cynhyrchu testun-i-fideo gydag allbwn 480p, 580p neu 720p a modd pro gyda mwy o gamau

Tencent · Fideo

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol

Anogiad a ddefnyddir fel sail ar gyfer cynhyrchu fideo.

aspect_ratio rhagosodedig 16:9

Cymhareb agwedd yr allbwn fideo.

resolution rhagosodedig 720p

Cydraniad yr allbwn fideo.

Uwch num_frames · seed · pro_mode · enable_safety_checker
num_frames rhagosodedig 129

Cyfrif fframiau'r allbwn a gynhyrchir.

Gwerth hadau ar gyfer cynhyrchu fideo.

POST /run/hunyuan-video?wait=20 dyfynbris → $0.40
# 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/hunyuan-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"

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â Hunyuan Video

Yn creu fideo o awgrym testun. Dewiswch `aspect_ratio` 16:9 neu 9:16, `resolution` 480p, 580p neu 720p, a `num_frames` o 129 neu 85. Mae `pro_mode` yn newid nifer y camau o'r rhagosodiad 35. Gellir gosod hedyn ar gyfer atgynyrchiadwyedd.

Paramedrau

EnwMath RhagosodedigCaniateir Disgrifiad
promptgofynnol
Mathstring
Anogiad a ddefnyddir fel sail ar gyfer cynhyrchu fideo.
seeddewisol
Mathinteger | null
Gwerth hadau ar gyfer cynhyrchu fideo.
pro_modedewisol
Mathboolean
Rhagosodedigfalse
Mae'r cynhyrchu yn defnyddio 35 cam yn rhagosodedig.
aspect_ratiodewisol
Mathenum
Rhagosodedig16:9
16:99:16
Cymhareb agwedd yr allbwn fideo.
resolutiondewisol
Mathenum
Rhagosodedig720p
480p580p720p
Cydraniad yr allbwn fideo.
num_framesdewisol
Mathenum
Rhagosodedig129
12985
Cyfrif fframiau'r allbwn a gynhyrchir.
enable_safety_checkerdewisol
Mathboolean
Rhagosodedigfalse
Switsh gwirio diogelwch y mae ei osodiad diffodd yn gofyn am awdurdodiad cyfrif. Heb yr awdurdodiad hwnnw, caiff pob cais ei wirio waeth beth fo'r gosodiad; mae true yn galluogi'r gwiriwr.
gofynnol

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "hunyuan-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": 400,
    "usd": "0.40",
    "charged": 400,
    "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"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
video
object {url, content_type, file_name, file_size}
seed
integerGwerth hadau a ddefnyddir wrth gynhyrchu fideo.

Mwy o fodelau: Testun i Fideo

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/hunyuan-video.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt