Peke ki ngā ihirangi

Heygen v5 Digital Twin

Whakauru

id tauira heygen/avatar5/digital-twin
# 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/heygen/avatar5/digital-twin?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",
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

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

Ngā kōnae pēnei i te tauira: $ 1.00 1,000 whiwhinga API ka inea ō kōnae i mua i te whakahaere Whakahaerehia ki tēnei whārangi

Tikina he kī API
HeyGen Tukutahi Ngutu me ngā Avatar Putanga 4KTukutahi Ngututae atu ki 4k #avatar#digital-twin#talking-avatar#text-to-video

Kiritata matihiko kiritata V me te putanga 4k, WebM pūataata, papamuri, tohu wai me ngā tapanga SRT

HeyGen · Ataata

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

Kuputuhi kōrero mō te avatar; me tuku ina kore e tukuna a `audio_url`.

audio_url
Whakataka he kōnae,

Puna tukutahi ngutu, he URL kōnae ororongo HTTP(S), ka whakakapi i te kuputuhi-ki-te-kōrero ina tukuna. Kāore e whakamahia a `prompt` me `voice` i taua wā.

resolution taunoa 720p

Tatūkē taumira mō te putanga kua whakaputaina.

aspect_ratio taunoa 16:9

Kōwhiringa āwehenga āhuatanga ataata: mā te 'auto' ka tono ki a HeyGen kia pānui, kia pupuri hoki i te ōwehenga pūtake, ka whakamahi i te '16:9' ki te kore e taea. Ko ngā kōwhiringa ōwehenga tōtika ko '16:9', '9:16', '4:5', '5:4', me '1:1'.

Arā atu fit · output_format · avatar · voice · remove_background · caption · enable_safety_checker · background · watermark
fit taunoa cover

Kōwhiria te whakaraupapa o te avatar: ka whakakī a 'cover' i te anga putanga engari ka tapahia pea te avatar, ko 'contain' ka whakaatu i te avatar katoa engari ka tāpiri pea i ngā pae pango.

output_format taunoa mp4

Kōwhiringa ipu ataata, mā `webm` ka taea te pūataata mā te tango aunoa i te papamuri; i taua aratau, kāore he pānga o `background`.

taunoa Abigail Sofa Front

Ingoa tautuhi i tētahi avatar e āhei ana mō Avatar V.

taunoa Warm Pro Narrator

Kōwhiringa reo avatar mā te ingoa mō te kuputuhi-ki-te-kōrero; ka whai pānga anake ina kore he `audio_url`.

He paparanga papamuri ka taea te whakatakoto ki muri i te avatar, hāunga mō `output_format='webm'`: ka warewarehia tēnei tautuhinga e te putanga webm pūataata.

Atahanga kōwhiringa hei whakakikorua tohuwai ki te ataata kua whakaputaina.

POST /run/heygen/avatar5/digital-twin?wait=20 utu → $ 1.00
# 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/heygen/avatar5/digital-twin?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",
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

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

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Heygen v5 Digital Twin

Ka hanga ataata kiritata kōrero mai i te kuputuhi (`prompt` me `voice`) mai i `audio_url` rānei mō te tukutahi ngutu. Kōwhiria he `avatar` kua whakaingoatia, he aratau `fit` contain, cover rānei, me te taumira 720p, 1080p, 4k rānei. Ka taea e `output_format` te mp4, webm rānei; he pūataata te webm. Kei roto ko te whakakotahi papamuri, he paparua tohu wai me tētahi kōnae tapanga SRT taha.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
avatarkōwhiringa
Momostring | null
TaunoaAbigail Sofa Front
Ingoa tautuhi i tētahi avatar e āhei ana mō Avatar V.
promptkōwhiringa
Momostring | null
Kuputuhi kōrero mō te avatar; me tuku ina kore e tukuna a `audio_url`.
voicekōwhiringa
Momoenum
TaunoaWarm Pro Narrator
Warm Pro NarratorChill BrianIvyJohn DoeMonika SogamHope Archer BrittneyPatrickDavid CastlemoreMichael CAdam Stone JuniperCassidy Jessica Anne BogartArabella
+86 anōAndrewSpuds Oxley Grace ElderHelenCanyon RiversDerya - Lifelike - Excited 🤩Mellow MarcusJack Sterling - Broadcaster 🎙️Brenda - UGC - 1.mp4ReidReaganTerryJennyRadio RickDeniseTim in car - Excited 🤩IskanderThompsonDelicate Daisy - Excited 🤩KingstonGeorge UGC 1Bold BlakeJaneExpressive EvanMarianne - IAAaronModern Recipe Host - Voice 1WillowCute Chloe - Friendly 😊RafaelJune - LifelikeCrisp ChloeSlick SimonNassim - InformativeBaritone BenMaxwellEllie Faye - Excited 🤩MilaniFeisty Fiona - Excited 🤩Professor DeanRose - UGC - 1.mp4ShonaHudson WilderAnn - IAAlastair KensingtonOxleyChristinaAndrew Rizz PeytonGerardo - OutdoorChloe - LifelikeStephanieAnthony - IASignal - Voice 1LucaLisa - Voice 1T.W.TuckerJack Sullivan - Serious 😐WinterMireia - LifelikeGeorgiaStellaMasha - LifelikeCharming Charles - Friendly 😊SerenityAnnie - ExcitedRalphBethanyDominicMason FinnLeenaVeteran VictorTamaraNik PublicCalm ChloeSevikReillyRaulImposing IanRelaxed RayDexter - ProfessionalRelaxed RickEdwinRupert BlackwoodGinnyHope
Kōwhiringa reo avatar mā te ingoa mō te kuputuhi-ki-te-kōrero; ka whai pānga anake ina kore he `audio_url`.
audio_urlkōwhiringa audio
Momourl · audio
Puna tukutahi ngutu, he URL kōnae ororongo HTTP(S), ka whakakapi i te kuputuhi-ki-te-kōrero ina tukuna. Kāore e whakamahia a `prompt` me `voice` i taua wā.
fitkōwhiringa
Momoenum
Taunoacover
containcover
Kōwhiria te whakaraupapa o te avatar: ka whakakī a 'cover' i te anga putanga engari ka tapahia pea te avatar, ko 'contain' ka whakaatu i te avatar katoa engari ka tāpiri pea i ngā pae pango.
remove_backgroundkōwhiringa
Momoboolean
Taunoafalse
Tangohanga papamuri mō te avatar; e wātea ana mō ngā avatar tautoko i te matting anake.
backgroundkōwhiringa
Momoobject
He paparanga papamuri ka taea te whakatakoto ki muri i te avatar, hāunga mō `output_format='webm'`: ka warewarehia tēnei tautuhinga e te putanga webm pūataata.
background.typekōwhiringa
Momoenum
Taunoacolor
colorimage
Momo papamuri: ko `color` he tae hautekatekau totoka, ko `image` he URL atahanga.
background.valuekōwhiringa
Momostring
Taunoa#FFFFFF
Ihirangi papamuri: he tae hautekatekau ina ko te momo `color`, he URL HTTP(S) rānei ina ko te momo `image`.
watermarkkōwhiringa
Momoobject
Atahanga kōwhiringa hei whakakikorua tohuwai ki te ataata kua whakaputaina.
watermark.image_urle hiahiatia ana
Momourl · image
URL atahanga tohuwai mā HTTP(S), hei whakakikorua ki runga i te ataata.
watermark.scalekōwhiringa
Momonumber | null
≤ 2, > 0
Rahi o te tohuwai e pā ana ki te ataata, nui ake i te 0.0, tae atu ki te 2.0.
watermark.opacitykōwhiringa
Momonumber | null
0 – 1
Taumata pūataata o te tohuwai: ko 0.0 he tino pūataata, ko 1.0 he tino kore-pūataata.
watermark.placementkōwhiringa
Momoenum
top-lefttop-rightbottom-leftbottom-right
Tūnga o te tohuwai i roto i te ataata.
captionkōwhiringa
Momoboolean
Taunoafalse
Ka whakahaere i te whakaputanga o tētahi kōnae tapanga SRT motuhake e haere tahi ana me te ataata.
output_formatkōwhiringa
Momoenum
Taunoamp4
mp4webm
Kōwhiringa ipu ataata, mā `webm` ka taea te pūataata mā te tango aunoa i te papamuri; i taua aratau, kāore he pānga o `background`.
resolutionkōwhiringa
Momoenum
Taunoa720p
720p1080p4k
Tatūkē taumira mō te putanga kua whakaputaina.
aspect_ratiokōwhiringa
Momoenum
Taunoa16:9
16:99:164:55:41:1auto
Kōwhiringa āwehenga āhuatanga ataata: mā te 'auto' ka tono ki a HeyGen kia pānui, kia pupuri hoki i te ōwehenga pūtake, ka whakamahi i te '16:9' ki te kore e taea. Ko ngā kōwhiringa ōwehenga tōtika ko '16:9', '9:16', '4:5', '5:4', me '1:1'.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Ka taea te whakangāwari i te tātari mā te tautuhi false, mēnā he mana tō te kaiwhakatuwhera.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "heygen/avatar5/digital-twin",
  "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": 1000,
    "usd": "1.00",
    "charged": 1000,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  },
  "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
    },
    "caption_file": {
      "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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
video
object {url, content_type, file_name, file_size}Kōnae ataata i whakaputaina e Avatar V.
caption_file
object {url, content_type, file_name, file_size} | nullKōnae tapanga SRT i whakaputaina ina `caption=True`, mēnā ka tukuna e te ratonga.

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/heygen/avatar5/digital-twin.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt